/* Login, register and password-recovery pages. Builds on the tokens and controls in app.css. */
body.auth { min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--hero); color: #fff; padding: 48px clamp(32px, 5vw, 64px); display: flex; flex-direction: column;
             justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px; pointer-events: none;
                     background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%); }
.auth-side > * { position: relative; }
.auth-side .brand-line { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; }
.auth-side .logo { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.auth-side h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; max-width: 16ch; }
.auth-side p { opacity: .9; max-width: 42ch; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 44ch; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li span:first-child { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; }
.auth-side small { opacity: .75; }

.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(420px, 100%); }
.auth-brand { display: none; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; margin-bottom: 28px; }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.2; }
.auth-card > .s { margin-bottom: 8px; }

.btn.block { width: 100%; margin-top: 22px; padding: 12px; font-size: 15px; }
.btn[disabled] { opacity: .75; cursor: progress; filter: none; transform: none; }
.btn .spinner { width: 16px; height: 16px; border-color: rgba(255, 255, 255, .45); border-top-color: #fff; }

.alert { border-radius: 12px; padding: 11px 13px; font-size: 14px; margin-top: 18px; line-height: 1.45;
         background: color-mix(in srgb, var(--st-bad) 10%, var(--surface)); color: var(--neg);
         border: 1px solid color-mix(in srgb, var(--st-bad) 35%, transparent); }
.alert[data-kind=ok] { background: color-mix(in srgb, var(--st-good) 10%, var(--surface)); color: var(--pos);
                       border-color: color-mix(in srgb, var(--st-good) 35%, transparent); }
.alert[data-kind=info] { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.alert a { color: inherit; font-weight: 700; }
.ferr { color: var(--neg); font-size: 12px; font-weight: 600; margin: 6px 0 0; }
input[aria-invalid=true] { border-color: var(--neg); }
input[aria-invalid=true]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-bad) 22%, transparent); }

.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 13px; }
.link:hover { text-decoration: underline; }
.alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.alt .link { font-size: 14px; }

.meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0); background: var(--st-bad); transition: width .3s, background .3s; }
.meter-lbl { font-size: 12px; color: var(--text-2); margin-top: 4px; min-height: 18px; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-brand { display: flex; }
}
