.auth-page { min-height: 100vh; overflow-x: hidden; background: #0d111a; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; padding: 42px clamp(38px, 6vw, 94px); overflow: hidden; background: radial-gradient(circle at 18% 75%, rgba(24,197,138,.15), transparent 28%), radial-gradient(circle at 88% 10%, rgba(76,141,255,.12), transparent 32%), linear-gradient(145deg, #131a29, #0d131e); }
.auth-brand-panel::after { content: ""; position: absolute; right: -120px; bottom: -180px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.055); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.auth-logo { position: relative; z-index: 2; align-self: flex-start; }
.auth-brand-copy { position: relative; z-index: 2; max-width: 650px; margin: auto 0 32px; }
.auth-brand-copy h1 { margin: 16px 0 20px; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.06em; }
.auth-brand-copy p { max-width: 570px; color: #9eabba; font-size: 17px; line-height: 1.75; }
.auth-proof { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.auth-proof li { display: flex; align-items: center; gap: 7px; }
.auth-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24,197,138,.1); }
.auth-mini-terminal { position: relative; z-index: 2; width: min(450px, 86%); margin: 0 0 38px; padding: 18px 18px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,21,33,.68); box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.auth-mini-terminal > div { display: flex; align-items: center; justify-content: space-between; }
.auth-mini-terminal span { color: #8fb6ff; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.auth-mini-terminal strong { font-size: 17px; }
.auth-mini-terminal svg { width: 100%; height: 90px; }
.auth-mini-terminal path { fill: none; stroke: var(--green-bright); stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.signup-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 620px; margin: 0 0 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.signup-stats div { display: flex; flex-direction: column; padding: 15px; background: rgba(14,20,31,.72); }
.signup-stats strong { color: var(--green-bright); font-size: 21px; }
.signup-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }

.auth-form-panel { display: grid; place-items: center; padding: 40px 7vw; background: var(--bg); }
.auth-form-wrap { width: min(100%, 430px); }
.auth-form-wrap--signup { width: min(100%, 540px); }
.auth-mobile-logo { display: none; margin-bottom: 42px; }
.auth-form-wrap h2 { margin: 12px 0 8px; font-size: 34px; line-height: 1.15; }
.form-intro { margin-bottom: 28px; color: var(--muted); }
.auth-form-wrap form { display: grid; gap: 17px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 37px; height: 37px; display: grid; place-items: center; padding: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.form-errors { display: grid; gap: 5px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(255,94,103,.26); border-radius: 10px; color: #ffb0b5; background: var(--red-soft); font-size: 12px; }
.auth-switch { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--green-bright); font-weight: 750; }
.auth-disclaimer { display: flex; gap: 8px; margin: 22px 0 0; padding: 11px 12px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; }
.auth-disclaimer svg { flex: 0 0 auto; color: #7699cf; }

.installer-shell { grid-template-columns: minmax(360px, .72fr) minmax(620px, 1.28fr); }
.installer-form-wrap { width: min(100%, 760px); }
.installer-form-wrap form { gap: 15px; }
.installer-form-wrap .field-grid--3 { grid-template-columns: 1fr 120px 1.4fr; }
.installer-form-wrap .field--wide { min-width: 0; }
.form-rule { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid var(--line); }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: #06251a; background: var(--green-bright); font-size: 30px; font-weight: 900; box-shadow: 0 0 0 10px rgba(24,197,138,.1); }
.installer-form-wrap > .button { margin-top: 10px; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 34px 22px; }
  .auth-mobile-logo { display: inline-flex; }
  .installer-shell .auth-brand-panel { display: none; }
  .installer-shell { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .auth-form-panel { align-items: start; padding-top: 26px; }
  .auth-mobile-logo { margin-bottom: 54px; }
  .auth-form-wrap h2 { font-size: 29px; }
  .installer-form-wrap .field-grid--3 { grid-template-columns: 1fr; }
}

/* 4.3.1 password recovery */
.recovery-shell .auth-brand-copy { margin-bottom: 64px; }
.recovery-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(25,34,49,.92), rgba(14,20,31,.98)); box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.recovery-card .form-intro strong { color: var(--text); }
.auth-status { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.55; }
.auth-status--success { color: #a9f4d7; border-color: rgba(24,197,138,.35); background: rgba(24,197,138,.09); }
.auth-status--error { color: #ffb5ba; border-color: rgba(255,94,103,.35); background: rgba(255,94,103,.09); }
@media (max-width: 980px) { .recovery-card { padding: 24px; } }
