/* Log in + create account: navy story panel beside a white form */
.auth { display: grid; grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.auth__story {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-8);
  padding: var(--s-10) clamp(24px, 3.4vw, 48px) var(--s-8); overflow: hidden; color: #fff;
  background: radial-gradient(80% 50% at 0% 100%, rgba(20, 146, 253, 0.22), transparent 70%), var(--navy);
}
.auth__story-text { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.auth__story-text h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.auth__story-text h2 span { display: block; }
.auth__story-text p { color: var(--muted-on-navy); font-size: var(--fs-16); max-width: 40ch; }
.stage--compact { min-height: 0; aspect-ratio: 1.55 / 1; border-radius: 18px; flex: none; }
.stage--compact .slab { --w: 24%; }
.stage--compact .slab--front { --w: 27%; }
.stage--compact .slab--left { transform: translate(-128%, -47%) rotateY(18deg) rotateZ(-7deg); }
.stage--compact .slab--right { transform: translate(28%, -47%) rotateY(-18deg) rotateZ(7deg); }
.auth__points { list-style: none; display: grid; gap: var(--s-3); font-size: var(--fs-15); color: #E6EEF7; }
.auth__points li { display: flex; align-items: center; gap: var(--s-3); }
.auth__points li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(54, 212, 249, 0.12); color: var(--light-blue); }
.auth__story-foot { display: flex; justify-content: space-between; margin-top: auto; font-size: var(--fs-12); color: var(--muted-on-navy); }

.auth__main { display: flex; flex-direction: column; padding: var(--s-6) clamp(16px, 5vw, 80px) var(--s-6); }
.auth__top { display: flex; justify-content: flex-end; min-height: 28px; font-size: var(--fs-14); color: var(--muted); }
.auth__top a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-left: 6px; }
.auth__top .i { width: 18px; height: 18px; }
.auth__form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 440px; margin: var(--s-8) auto; }
.auth__kicker { font-weight: 600; font-size: var(--fs-14); color: var(--link); }
.auth__title { margin-top: 6px; font-size: var(--fs-34); }
.auth__sub { margin-top: var(--s-2); color: var(--muted); }
.auth__form { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: var(--fs-14); }
.auth__alt { display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-14); color: var(--muted); text-align: center; }
.auth__alt button { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; }
.auth__alt button:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth__divider { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-2) 0; font-size: var(--fs-13); color: var(--muted); }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.auth__social .btn { min-height: 50px; }
.auth__social .i { width: 22px; height: 22px; }
.auth__help { text-align: center; font-size: var(--fs-13); color: var(--muted); }
.auth__done { display: grid; justify-items: start; gap: var(--s-4); }
.auth__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cyan-soft); color: var(--middle-blue); }

.code-input { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.5em; text-align: center; padding-left: calc(var(--s-4) + 0.25em); }

.auth-view { animation: view-in var(--t) var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__story { position: relative; height: auto; gap: var(--s-5); padding: var(--s-5) var(--s-4) var(--s-6); }
  .auth__story-text { margin-top: var(--s-2); }
  .auth__story-text h2 { font-size: 1.75rem; }
  .auth__story-text p { font-size: var(--fs-15); }
  .auth__story .stage, .auth__points, .auth__story-foot { display: none; }
  .auth__main { padding: var(--s-4) var(--s-4) var(--s-6); }
  .auth__form-wrap { margin: var(--s-4) auto var(--s-8); }
}
@media (max-width: 420px) {
  .auth__social { grid-template-columns: 1fr; }
}
