.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.auth-card {
  width: min(460px, 100%);
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  gap: 20px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  backdrop-filter: blur(8px);
}

.auth-card__header {
  text-align: center;
  display: grid;
  gap: 10px;
}

.auth-card__header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
}

.auth-card__header p {
  margin: 0;
  color: var(--muted);
}

.auth-card__brand-logo {
  width: min(210px, 65%);
  margin: 0 auto 8px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.auth-form__error {
  min-height: 1.25em;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.auth-form__submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.splash-screen[hidden] {
  display: none !important;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(45, 140, 255, 0.24), transparent 50%),
    radial-gradient(circle at 82% 80%, rgba(35, 123, 75, 0.24), transparent 48%),
    color-mix(in oklab, var(--bg) 88%, #02050d);
  animation: splashFadeIn 260ms ease-out;
}

.splash-screen.is-exiting {
  animation: splashFadeOut 420ms ease-in forwards;
}

.splash-screen__content {
  text-align: center;
  display: grid;
  gap: 14px;
  padding: 24px;
  transform: translateY(8px);
  animation: splashLift 450ms ease-out forwards;
}

.splash-screen__logo {
  width: min(190px, 46vw);
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.splash-screen__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.splash-screen__subtitle {
  margin: 0;
  color: var(--muted);
}

@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashFadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes splashLift {
  to { opacity: 1; transform: translateY(0); }
}
