body:has(input[type="password"]) {
  background:
    linear-gradient(135deg, rgba(15, 59, 42, .06), rgba(24, 59, 86, .08)),
    #f7f8f7;
}

body:has(input[type="password"])::before {
  content: "DeskBridge";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(220, 229, 223, .9);
  background: rgba(255, 255, 255, .92);
  color: #0f3b2a;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(18px);
}

body:has(input[type="password"])::after {
  content: "DeskBridge Ltd · Managed secure workspaces, mail and identity";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  background: #101815;
  color: #cbd5cf;
  font-size: .86rem;
}

body:has(input[type="password"]) > div:first-of-type {
  padding-top: 64px;
  padding-bottom: 44px;
}

body:has(input[type="password"]) form,
body:has(input[type="password"]) [class*="rounded"] {
  border-color: #dce5df;
}

body:has(input[type="password"]) button[type="submit"] {
  background: #8b0f0f;
  border-color: #8b0f0f;
}

body:has(input[type="password"]) button[type="submit"]:hover {
  background: #a31212;
  border-color: #a31212;
}

body:has(input[type="password"]) a {
  color: #0f3b2a;
}

@media (max-width: 700px) {
  body:has(input[type="password"])::before {
    min-height: 56px;
    font-size: 1rem;
  }

  body:has(input[type="password"])::after {
    position: static;
    min-height: 0;
    text-align: center;
  }

  body:has(input[type="password"]) > div:first-of-type {
    padding-top: 56px;
    padding-bottom: 0;
  }
}
