/* Auth / guest surfaces */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.18), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.16), transparent 38%),
    linear-gradient(165deg, #F8FAFC 0%, #EFF6FF 48%, #F0FDFA 100%);
}

[data-theme="dark"] .auth-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.16), transparent 38%),
    linear-gradient(165deg, #0B1220 0%, #0F172A 55%, #042F2E 100%);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-shell {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
}

.auth-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-hero .lm-brand {
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  line-height: 1;
  margin: 0.35rem 0 0.75rem;
}

.auth-hero p {
  margin: 0;
  color: var(--lm-text-muted);
  line-height: 1.55;
  font-size: 1.02rem;
  text-wrap: balance;
  max-width: 22rem;
  margin-inline: auto;
}

.auth-lumi {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  animation: lm-float 4.5s ease-in-out infinite;
}

.auth-card {
  border-radius: calc(var(--lm-radius) + 0.25rem);
  padding: 1.75rem 1.5rem;
}

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  margin: 0 0 1.4rem;
  color: var(--lm-text-muted);
  font-size: 0.95rem;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.925rem;
  color: var(--lm-text-muted);
}

.auth-footer a {
  color: var(--lm-primary);
  font-weight: 600;
}

.auth-footer-extra {
  margin-top: 0.85rem;
  font-size: 0.875rem;
}

.auth-theme-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lm-border);
  background: var(--lm-bg-elevated);
  backdrop-filter: blur(10px);
  color: var(--lm-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--lm-ease);
}

.auth-theme-toggle:hover {
  transform: translateY(-1px);
}

.lm-password {
  position: relative;
}

.lm-password .lm-input {
  padding-right: 3rem;
}

.lm-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--lm-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s var(--lm-ease), background 0.2s var(--lm-ease);
}

.lm-password-toggle:hover {
  color: var(--lm-primary);
  background: var(--lm-primary-soft);
}

.lm-password-toggle[aria-pressed="true"] {
  color: var(--lm-primary);
}

.lm-password-toggle:focus-visible {
  outline: 2px solid var(--lm-primary);
  outline-offset: 2px;
}
