/* Auth screens. */
.auth-wrap { padding-block: var(--s-16); }
.auth { display: grid; gap: var(--s-12); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) { .auth { grid-template-columns: 7fr 5fr; } }

.auth__card {
  padding: var(--s-8);
  border: 1px solid var(--surface-line); border-radius: var(--radius-lg);
  background: var(--surface-1); box-shadow: var(--shadow-card);
  max-width: 40rem;
}
.auth__h1 { font-size: var(--fs-h2); margin-bottom: var(--s-2); }
.auth__sub { color: var(--text-mid); margin-bottom: var(--s-6); }
.auth__submit { width: 100%; margin-top: var(--s-2); }
.auth__alt { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-mid); }
.auth__alt a { color: var(--accent-ink); font-weight: 600; }
.auth__legal { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-lo); }
.auth__legal a { color: var(--accent-ink); }

.auth__aside {
  padding: var(--s-6); border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg); background: var(--surface-0);
}
.auth__aside h2 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.auth__aside p { color: var(--text-mid); font-size: var(--fs-sm); }
.auth__aside-note { color: var(--text-lo); font-size: var(--fs-xs); margin-top: var(--s-4); }

/* --- Google sign-in ------------------------------------------------------
   Google's brand guidelines require their multicolour mark unaltered on a
   white or black button, so this deliberately sits outside the token palette. */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  width: 100%; padding: var(--s-3) var(--s-6);
  background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 600;
  text-decoration: none;
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; box-shadow: 0 1px 6px rgb(0 0 0 / 0.18); }
.btn-google svg { flex: 0 0 auto; }

.auth__or {
  display: flex; align-items: center; gap: var(--s-4);
  margin: var(--s-6) 0; color: var(--text-lo); font-size: var(--fs-sm);
}
.auth__or::before, .auth__or::after {
  content: ""; flex: 1; height: 1px; background: var(--surface-line);
}
.auth__forgot { text-align: right; margin: calc(var(--s-3) * -1) 0 var(--s-4); font-size: var(--fs-sm); }
.auth__forgot a { color: var(--accent-ink); }

/* ── OTP entry ──────────────────────────────────────────────────────────────
   The code is six characters the reader is copying from a notification, so it
   is set large, monospaced and widely tracked — at body size in a proportional
   face, 0/O and 1/l are a genuine mis-type risk. */
.auth__code {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: .5em;
  text-align: center;
  /* The trailing letter-space pushes the visual centre left; half of it back
     as padding re-centres the digits in the box. */
  padding-left: .5em;
}
.auth__code::placeholder { color: var(--text-lo); opacity: .35; letter-spacing: .5em; }

.auth__resend { margin-top: var(--s-4); }
.auth__linkBtn {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  font-size: var(--fs-sm); color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.auth__linkBtn:hover { color: var(--text-hi); }
