/* Sign-in and first run: a British Racing Green panel beside a calm form. */

.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr); background: var(--bg); }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px 44px 40px; color: var(--ivory);
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(179, 146, 86, 0.16), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(46, 125, 84, 0.35), transparent 60%),
    var(--brg);
}
.auth-art::after { /* a fine coachline, like the pinstripe on a classic racing car */
  content: ""; position: absolute; left: 44px; right: 44px; bottom: 112px; height: 1px;
  background: linear-gradient(90deg, rgba(179, 146, 86, 0.65), rgba(179, 146, 86, 0.08));
}
.auth-art-copy { display: grid; gap: 16px; max-width: 460px; }
.auth-art-title { font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.auth-art-sub { color: rgba(244, 241, 230, 0.74); line-height: 1.55; max-width: 38ch; }
.auth-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-marks .pglyph { background: rgba(244, 241, 230, 0.08); color: rgba(244, 241, 230, 0.86); box-shadow: inset 0 0 0 1px rgba(244, 241, 230, 0.14); }

.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 22px; }
.auth-head { display: grid; gap: 10px; }
.auth-head h1 { font-size: 2.25rem; }
.step-pill { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.form-error {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--danger-soft); color: var(--text); font-size: 0.875rem; line-height: 1.45; animation: fadeIn var(--t) ease both;
}
.form-error > .ic { color: var(--danger); margin-top: 1px; }
.form-error:empty { display: none; }
.auth .input-wrap > .reveal { right: 6px; color: var(--text-3); }
.auth .input-wrap > .reveal:hover { color: var(--text); }

.secret { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-strong); }
.secret-key { flex: 1; min-width: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: 0.08em; word-spacing: 0.2em; line-height: 1.55; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 22px 20px 26px; gap: 18px; padding-top: calc(22px + env(safe-area-inset-top)); }
  .auth-art::after, .auth-art-sub, .auth-marks { display: none; }
  .auth-art-title { font-size: 1.375rem; max-width: 22ch; }
  .auth-main { place-items: start center; padding: 28px 18px 40px; }
  .auth-head h1 { font-size: 1.875rem; }
  .secret { flex-wrap: wrap; padding: 14px 16px; }
  .secret-key { flex-basis: 100%; }
  .secret .btn { flex: 1 1 auto; }
}
.steps.from-3 { counter-reset: step 2; }
