/* Authentication views share the workspace appearance and font-size preferences. */
.auth-page {min-height:100svh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,7vw,7rem);max-width:1440px;margin:auto;padding:clamp(1.25rem,5vw,5rem)}
.auth-intro {align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:3rem;padding:2rem;border-radius:1.5rem;background:linear-gradient(145deg,var(--purple-soft),var(--canvas))}
.auth-intro .brand {font-size:1.5rem;gap:.6rem}
.auth-intro h1 {font-size:clamp(1.8rem,3.5vw,3.3rem);letter-spacing:-.04em;line-height:1.12;margin:1rem 0}
.auth-intro p {color:var(--muted-dark);line-height:1.8;font-size:.85rem}
.auth-eyebrow {font-size:.7rem;letter-spacing:.18em;font-weight:800;color:var(--accent)}
.auth-card {width:100%;max-width:29rem;margin:auto;background:var(--surface);border:1px solid var(--border-strong);border-radius:1.2rem;padding:clamp(1.25rem,3vw,2.5rem);box-shadow:var(--shadow)}
.auth-card h2,.auth-security-card h2 {font-size:1.25rem;line-height:1.4;margin-bottom:.6rem}
.auth-form {display:flex;flex-direction:column;gap:1rem;margin-top:1.4rem}
.auth-field {display:flex;flex-direction:column;gap:.45rem;font-size:.8rem;font-weight:650;min-width:0}
.auth-field input {width:100%;min-width:0;min-height:2.75rem;border:1px solid var(--border-strong);border-radius:.6rem;padding:.65rem .8rem;background:var(--canvas);color:var(--text);font:inherit;font-weight:400}
.auth-field input:focus,.auth-language select:focus {outline:2px solid var(--accent);outline-offset:2px}
.auth-field textarea {width:100%;min-height:6rem;resize:vertical;border:1px solid var(--border-strong);border-radius:.6rem;padding:.65rem .8rem;background:var(--canvas);color:var(--text);font:inherit}
.auth-field textarea:focus {outline:2px solid var(--accent);outline-offset:2px}
.auth-qr {margin:1.25rem 0;text-align:center}
.auth-qr img {display:block;width:min(100%,320px);height:auto;margin:auto;background:white;border-radius:0}
.auth-qr figcaption {font-size:.75rem;line-height:1.6;color:var(--muted-dark);margin-top:.6rem}
.auth-phrase-card {margin-top:1.5rem}
.auth-recovery-phrase {display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin:1.25rem 0;padding:0;list-style-position:inside}
.auth-recovery-phrase li {padding:.65rem;border:1px solid var(--border-strong);border-radius:.5rem;background:var(--canvas);font-size:.85rem}
.auth-field input[readonly] {font-family:monospace;font-size:.75rem;letter-spacing:.03em}
.auth-help {font-size:.75rem;line-height:1.75;color:var(--muted-dark)}
.auth-submit {height:auto;min-height:2.7rem;white-space:normal;padding:.7rem 1rem;width:100%;font-size:.85rem}
.auth-submit:disabled {opacity:.6;cursor:wait}
.auth-language {display:flex;align-items:center;justify-content:flex-end;gap:.5rem;color:var(--muted-dark);font-size:.7rem;margin-bottom:2rem}
.auth-language select {max-width:12rem;min-width:0;padding:.4rem;border:1px solid var(--border-strong);border-radius:.4rem;background:var(--surface);color:var(--text);font:inherit}
.auth-error,.auth-success {padding:.85rem 1rem;border-radius:.5rem;font-size:.8rem;line-height:1.6;margin:1rem 0;overflow-wrap:anywhere}
.auth-error {background:#fff0f0;color:#9d2630;border:1px solid #f4ccd1}
.auth-success {background:#e6f8ee;color:#17613c;border:1px solid #bedfcc}
.auth-security-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:1.5rem}
.auth-security-heading h1 {font-size:1.6rem}
.auth-security-heading p {margin:.5rem 0;color:var(--muted-dark);font-size:.8rem}
.auth-security-heading a {font-size:.8rem;color:var(--accent)}
.auth-security-card {padding:1.5rem}
.auth-security-card>p {line-height:1.75;font-size:.8rem;margin-top:.8rem}
.auth-security-card .auth-field {margin-top:1rem}
.auth-security-card .auth-form .auth-field {margin-top:0}
.auth-security-card .btn {margin-top:.75rem;height:auto;min-height:2.4rem;white-space:normal}
.recovery-codes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;padding:1rem 0}
.recovery-codes code {font-size:.7rem;overflow-wrap:anywhere;padding:.5rem;border:1px solid var(--border-strong);border-radius:.4rem;background:var(--canvas);user-select:all}
@media(max-width:900px) {.auth-page{grid-template-columns:1fr;max-width:35rem;gap:1.25rem}.auth-intro{padding:1.25rem;gap:1rem}.auth-intro h1{font-size:1.9rem}.auth-intro>p{display:none}.auth-card{max-width:none}.auth-security-grid{grid-template-columns:1fr}}
@media(max-width:420px) {.auth-page{padding:1rem}.auth-card{padding:1.25rem}.recovery-codes{grid-template-columns:1fr}}
