/* Fikrtna Drama — Sign in, Create account, Reset password.
   Split screen: a script page set over a still (the scene), and the form (the slate). */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; }
.auth-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: auth-drift 30s ease-in-out infinite alternate; }
@keyframes auth-drift { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.auth-art-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 12, .25), rgba(11, 11, 12, .55) 70%, var(--ink-bg)), linear-gradient(0deg, rgba(11, 11, 12, .85), transparent 55%); }
.auth-logo { position: absolute; top: 36px; left: 40px; }
.auth-logo img { height: 66px; width: auto; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .6)); }

.auth-page { /* a screenplay page, Courier-ish via Plex Mono */
  position: absolute; left: 40px; bottom: 44px; width: min(460px, calc(100% - 80px));
  padding: 30px 34px 28px; border-radius: 4px;
  background: rgba(255, 255, 255, .94); color: #232326;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform: rotate(-1.6deg);
}
.auth-page::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 18px; width: 0; border-left: 2px dotted rgba(33, 33, 36, .2); }
.auth-slug { font-weight: 500; letter-spacing: .04em; }
.auth-action { margin-top: 12px; }
.auth-char { margin-top: 16px; text-align: center; letter-spacing: .08em; }
.auth-line { max-width: 30ch; margin: 2px auto 0; text-align: center; }
.auth-line-ar { margin-top: 6px; text-align: center; font-family: var(--font-arabic); font-size: 15px; }
.auth-cut { margin-top: 14px; text-align: right; font-weight: 500; }

.auth-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 28px clamp(24px, 5vw, 72px) 28px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.auth-top .nav-brand img { height: 38px; }
.auth-top-links { display: flex; gap: 22px; }
.auth-top-links a { color: var(--fg-muted); font-size: 14.5px; font-weight: 500; }
.auth-top-links a:hover { color: var(--gold); }
.page-auth .auth-art .auth-logo { display: none; } /* top bar carries the brand on the form side */

.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 48px 0; }
.auth-h { margin: 16px 0 12px; font-size: clamp(42px, 4.6vw, 64px); }
.auth-sub { margin-bottom: 26px; color: var(--fg-muted); font-size: 15.5px; }
.auth-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -8px 0 26px; padding: 0; list-style: none; color: var(--fg-2); font-size: 14px; }
.auth-perks li { display: inline-flex; align-items: center; gap: 7px; }
.auth-perks .icon { color: var(--gold); }
.auth-legal { color: var(--fg-faint); font-size: 13px; text-align: center; }

.pw { position: relative; }
.pw .inp { padding-right: 56px; }
.pw-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 42px; height: 40px; border: 0; border-radius: 9px; background: none; color: var(--fg-subtle); cursor: pointer; transform: translateY(-50%); }
.pw-eye:hover { background: var(--ink-raised); color: var(--fg); }
.pw-hide, .pw-eye[aria-pressed="true"] .pw-show { display: none; }
.pw-eye[aria-pressed="true"] .pw-hide { display: inline; }

.meter-pw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter-pw span { height: 3px; border-radius: 3px; background: rgba(254, 254, 254, .1); transition: background var(--dur-2); }
.fld[data-strength="1"] .meter-pw span:nth-child(-n+1) { background: var(--danger); }
.fld[data-strength="2"] .meter-pw span:nth-child(-n+2) { background: var(--tint-ember); }
.fld[data-strength="3"] .meter-pw span:nth-child(-n+3) { background: var(--gold); }
.fld[data-strength="4"] .meter-pw span { background: var(--ok); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; color: var(--fg-subtle); font-size: 13px; }
.pw-rules li::before { content: "○"; margin-right: 6px; color: var(--fg-faint); }
.pw-rules li.is-met { color: #BDF0DA; }
.pw-rules li.is-met::before { content: "●"; color: var(--ok); }
.fld-caps { color: var(--gold); }

.form-go { position: relative; width: 100%; margin-top: 6px; }
.spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(33, 33, 36, .3); border-top-color: var(--gold-ink); border-radius: 50%; animation: spin .8s linear infinite; }
.form-go.is-busy .spin { display: inline-block; }
.form-go.is-busy .form-go-t::after { content: "…"; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-demo { margin-top: 16px; color: var(--fg-faint); font-size: 11.5px; line-height: 1.6; }

.sent { outline: none; }
.sent-ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--gold-wash); color: var(--gold); }
.sent-acts { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { position: relative; height: 300px; }
  .auth-page { left: 20px; right: 20px; bottom: 24px; width: auto; max-width: 440px; padding: 18px 22px; font-size: 12px; }
  .auth-page .auth-action, .auth-page .auth-cut { display: none; }
  .auth-main { order: -1; min-height: 0; padding-bottom: 40px; }
  .auth-box { padding: 36px 0 12px; margin: 0 auto; }
  .auth-legal { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .auth-art > img, .spin { animation: none; } }

/* Two-step sign-in challenge — same slate as the sign-in form, plus a timecode strip */
.auth-step[hidden] { display: none; }
.tfa { outline: none; }
.tfa-slate { display: grid; grid-template-columns: auto auto 1fr; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 11, 12, .45); overflow: hidden; }
.tfa-slate > span { display: grid; gap: 4px; padding: 11px 16px; border-right: 1px solid var(--line-soft); }
.tfa-slate > span:last-child { border-right: 0; min-width: 0; }
.tfa-slate small { color: var(--fg-faint); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.tfa-slate b { color: var(--fg); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfa-slate-acct b { font-size: 13.5px; color: var(--fg-muted); padding-top: 3px; }
.tfa.is-late [data-tfa-clock] { color: var(--gold); }
.tfa.is-dead .tfa-slate b[data-tfa-clock] { color: var(--danger-soft); }
.tfa.is-dead .tfa-code, .tfa.is-dead .tfa-rec { opacity: .45; }
.tfa-alt { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.tfa-alt [data-tfa-restart] { color: var(--fg-subtle); }
.tfa-alt [data-tfa-restart].is-primary { color: var(--gold); font-weight: 600; }
.tfa.is-ok .form-go { background: var(--ok); }

/* "Continue with Google" — Google's own white button, then a quiet divider before the email form */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFFFF; color: #1F1F1F; font: 600 15.5px var(--font-body); transition: background var(--dur-1); }
.gbtn:hover { background: #F2F2F2; }
.gor { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--fg-faint); font-size: 13.5px; }
.gor::before, .gor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
