body.login {
  min-height: 100vh;
  color-scheme: light dark;
  background: #f5f5f5;
}

body.login .content-wrapper.sso-login {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem;
  z-index: 9999;
}

.sso-login__card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2.5rem 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  color: #262626;
  text-align: center;
}

.sso-login__logo {
  display: block;
  width: auto;
  height: 48px;
  margin: 0 auto 1.75rem;
}

.sso-login__title {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #262626;
}

.sso-login__subtitle {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: #767676;
}

.sso-login__error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fff1f1;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  color: #b91c1c;
  text-align: left;
  font-size: 0.9rem;
}

.sso-login__error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.sso-login__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.8125rem 1.25rem;
  background: #007d7e;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.sso-login__button:hover,
.sso-login__button:focus-visible {
  background: #005f60;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.sso-login__button:focus-visible {
  outline: 2px solid #005f60;
  outline-offset: 2px;
}

.sso-login__button:active {
  transform: translateY(0);
}

.sso-login__button svg {
  flex-shrink: 0;
}

.sso-login__switch {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #767676;
}

.sso-login__switch a {
  color: #007d7e;
  font-weight: 600;
  text-decoration: none;
}

.sso-login__switch a:hover,
.sso-login__switch a:focus-visible {
  text-decoration: underline;
}

.sso-login__divider {
  margin: 1.75rem 0 1rem;
  border: 0;
  border-top: 1px solid #e5e5e5;
}

.sso-login__footer {
  margin: 0;
  font-size: 0.8125rem;
  color: #767676;
}

@media (prefers-color-scheme: dark) {
  body.login {
    background:
      radial-gradient(circle at top, rgba(0, 125, 126, 0.22), transparent 38%),
      var(--w-color-surface-page, #0f1419);
  }

  .sso-login__card {
    background: var(--w-color-surface-menus, #1f2937);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
  }

  .sso-login__logo {
    filter: brightness(0) invert(1);
  }

  .sso-login__title {
    color: #f9fafb;
  }

  .sso-login__subtitle,
  .sso-login__switch,
  .sso-login__footer {
    color: #cbd5e1;
  }

  .sso-login__switch a {
    color: #5ed7d8;
  }

  .sso-login__divider {
    border-top-color: rgba(148, 163, 184, 0.28);
  }

  .sso-login__error {
    background: rgba(185, 28, 28, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
  }
}
