body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--ld-bg, #050505);
  color: var(--ld-text, #f4f6f8);
}

.auth-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(0, 229, 192, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(80, 120, 180, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.auth-shell > * {
  position: relative;
  z-index: 1;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--ld-line, rgba(244, 246, 248, 0.1));
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 4vw, 2rem);
}

.auth-card-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-panel {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--ld-surface, #0f1216);
  border: 1px solid var(--ld-line, rgba(244, 246, 248, 0.1));
}

.auth-panel-corners::before,
.auth-panel-corners::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ld-accent, #00e5c0);
  opacity: 0.7;
  pointer-events: none;
}

.auth-panel-corners::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.auth-panel-corners::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.auth-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--ld-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ld-accent, #00e5c0);
}

.auth-title {
  margin: 0 0 0.35rem;
  font-family: var(--ld-display, system-ui, sans-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--ld-muted, #8b95a5);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--ld-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-muted, #8b95a5);
}

.auth-input {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ld-line, rgba(244, 246, 248, 0.12));
  border-radius: 0;
  background: #0a0c10;
  color: var(--ld-text, #f4f6f8);
  font-family: var(--ld-display, system-ui, sans-serif);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  border-color: var(--ld-accent, #00e5c0);
  box-shadow: 0 0 0 1px rgba(0, 229, 192, 0.25);
}

.auth-input.is-invalid {
  border-color: #ff4d5e;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-error {
  margin-top: 0.35rem;
  color: #ff4d5e;
  font-size: 0.8rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  font-size: 0.88rem;
  color: var(--ld-muted, #8b95a5);
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--ld-accent, #00e5c0);
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 77, 94, 0.35);
  background: rgba(255, 77, 94, 0.08);
  color: #ff8a95;
  font-size: 0.85rem;
}

.auth-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-alert-ok {
  border-color: rgba(0, 229, 192, 0.35);
  background: rgba(0, 229, 192, 0.08);
  color: var(--ld-accent, #00e5c0);
}

.auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.auth-footer-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ld-line, rgba(244, 246, 248, 0.1));
  text-align: center;
  font-size: 0.88rem;
  color: var(--ld-muted, #8b95a5);
}

.auth-footer-links a {
  color: var(--ld-accent, #00e5c0);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-muted-link {
  display: inline-block;
  margin-top: 0.75rem;
  text-align: center;
  width: 100%;
  font-family: var(--ld-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted, #8b95a5);
  text-decoration: none;
}

.auth-muted-link:hover {
  color: var(--ld-accent, #00e5c0);
}

.auth-page-footer {
  padding: 1rem clamp(1rem, 4vw, 2.25rem) 1.35rem;
  border-top: 1px solid var(--ld-line, rgba(244, 246, 248, 0.1));
  font-family: var(--ld-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ld-muted, #8b95a5);
  text-align: center;
}

.auth-page-footer a {
  color: var(--ld-accent, #00e5c0);
  text-decoration: none;
}

@media (max-width: 480px) {
  .auth-panel {
    padding: 1.35rem 1.1rem 1.25rem;
  }

  .auth-title {
    font-size: 1.4rem;
  }
}
