.auth-page { padding: 16px; background: var(--paper); }
.auth-page ::selection { color: var(--white); background: var(--pine-800); }
.auth-shell { min-height: calc(100svh - 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); }
.auth-content { min-width: 0; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 40px; }
.auth-header .brand { color: var(--pine-950); }
.auth-home-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; color: var(--muted); }
.auth-main { display: flex; align-items: center; flex: 1; padding: 48px clamp(24px, 5vw, 88px); }
.auth-form-panel { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-form-panel h1 { max-width: none; margin-bottom: 20px; font-size: clamp(2.5rem, 3.4vw, 3.5rem); line-height: 1.04; }
.auth-lead { color: var(--muted); margin-bottom: 32px; }
.auth-form { display: grid; gap: 24px; }
.auth-field label { display: block; margin-bottom: 8px; font-weight: 600; }
.auth-field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 0; background: var(--white); color: var(--ink); caret-color: var(--pine-900); }
.auth-field input:hover { border-color: var(--pine-800); }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; }
.auth-switch { margin: 28px 0 0; text-align: center; }
.auth-switch a, .auth-alternative { color: var(--pine-900); font-weight: 600; }
.auth-help, .auth-field-help { color: var(--muted); font-size: .88rem; }
.auth-help { margin: 24px 0 0; }
.auth-field-help { margin: 8px 0 0; }
.auth-footer { padding: 24px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: .8rem; }
.auth-footer p { margin: 0; }
.auth-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.auth-image { position: relative; min-width: 0; margin: 0; background: var(--pine-950); color: var(--white); }
.auth-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.auth-image figcaption { position: absolute; inset: auto 0 0; padding: 32px 40px; background: var(--pine-950); color: var(--paper); font: 400 clamp(1.6rem, 2.5vw, 2.5rem)/1.08 var(--font-heading); }
.auth-image figcaption span { display: block; margin-top: 16px; color: var(--paper); font: .78rem/1.5 var(--font-body); }
.auth-notice { margin: 24px 0; padding: 24px 0; border-block: 1px solid var(--line-strong); }
.auth-notice h2 { font-size: 1.8rem; max-width: none; margin-bottom: 12px; }
.auth-notice p { margin-bottom: 0; }
.auth-error, .auth-form .errorlist { color: var(--error); }
.auth-form .errorlist, .auth-error .errorlist { padding-left: 20px; margin: 8px 0 0; }
.auth-alternative { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 16px; text-align: center; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 24px; padding-left: 20px; color: var(--muted); font-size: .88rem; }
.auth-shell--register .auth-form-panel { max-width: 440px; }
.auth-shell--register .auth-image { position: sticky; top: 16px; height: calc(100svh - 32px); }
.auth-check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.auth-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--pine-900); }
@media (max-width: 1000px) { .auth-header, .auth-footer { padding-inline: 24px; } .auth-main { padding-inline: 32px; } }
@media (max-width: 760px) {
  .auth-page { padding: 0; }
  .auth-shell { display: block; min-height: 100svh; border: 0; }
  .auth-content { min-height: 100svh; }
  .auth-header { padding: 24px; gap: 16px; }
  .auth-main { padding: 40px 24px; }
  .auth-footer { padding: 16px 24px; }
  .auth-image { display: none; }
  .auth-form-panel h1 { font-size: 2.75rem; }
}
