.auth-shell { min-height: 100dvh; background: #f4f7fa; }
.auth-header { max-width: 1280px; margin: auto; padding: 38px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-header .brand { padding: 0; color: var(--ink); }
.auth-layout { width: min(100%, 520px); min-height: calc(100dvh - 240px); display: grid; place-items: center; padding: 30px 24px; }
.auth-intro h1 { font-size: clamp(36px, 4vw, 58px); line-height: 1.15; letter-spacing: -2px; margin: 20px 0; }
.auth-intro > p { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 400px; }
.auth-intro > .eyebrow { color: var(--green); font-size: 13px; }
.auth-mark { font: 800 160px/1 'Manrope', sans-serif; letter-spacing: -12px; color: #273038; margin: 32px 0; }
.auth-mark span { color: #2997ff; }
.auth-intro > .auth-preview { font-size: 15px; }
.auth-intro { display: none; }
.auth-card { width: 100%; padding: 38px; border-radius: 18px; min-width: 0; }
.auth-card h2 { font-size: 30px; margin: 14px 0; line-height: 1.3; letter-spacing: -1px; }
.auth-card p { line-height: 1.65; }
.auth-description, .auth-switch, .auth-card form > small { color: var(--muted); }
.auth-card form { margin-top: 24px; }
.auth-card form label { font-size: 16px; margin-bottom: 10px; }
.auth-card a { color: #0c72e8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; justify-content: space-between; min-height: 50px; margin: 10px 0; font-size: 16px; }
.auth-switch { text-align: center; margin: 22px 0 0; font-size: 15px; }
.auth-error { color: #b52922; font-size: 15px; line-height: 1.6; margin: 16px 0; overflow-wrap: anywhere; }
.auth-error:empty { display: none; }
.field-error { display: block; color: #c74a43; font-size: 13px; font-weight: 500; line-height: 1.45; margin-top: 7px; }
.field-error:empty { display: none; }
.auth-card label.has-error input { border-color: #dc655d; box-shadow: 0 0 0 3px #dc655d22; }
.auth-card label.has-valid input { border-color: #388de9; }
.auth-card label.has-error input:focus { outline-color: #dc655d; }
.auth-footer { max-width: 1200px; margin: 30px auto 0; padding: 24px 40px; font-size: 14px; }
.signed-out #toast { left: 50%; }
button:disabled { opacity: .6; cursor: wait; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
dialog.wide { width: min(640px, calc(100% - 32px)); }
.session-row { display: flex; justify-content: space-between; align-items: start; gap: 16px; border-top: 1px solid var(--border); padding: 20px 0; }
.session-row > div { min-width: 0; }
.session-row small { color: var(--muted); font-size: 14px; line-height: 1.8; }
.session-agent { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; line-height: 1.6; margin: 10px 0; }
.session-row .button { flex-shrink: 0; }
.profile > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .auth-shell { background: #090d0f; }
[data-theme="dark"] .auth-card { background: #101416; border-color: #273038; }
[data-theme="dark"] .auth-card a { color: #83d8f4; }
[data-theme="dark"] .auth-error { color: #ffae9a; }
[data-theme="dark"] .field-error { color: #ffae9a; }
[data-theme="dark"] .auth-card label.has-error input { border-color: #ff8d85; box-shadow: 0 0 0 3px #ff8d8522; }
[data-theme="dark"] .auth-card label.has-valid input { border-color: #2997ff; }
@media (max-width: 850px) {
  .auth-layout { width: min(100%, 560px); min-height: auto; }
  .auth-header { max-width: 560px; padding: 30px 24px; }
  .auth-layout { padding: 12px 24px; }
  .auth-card { padding: 28px 24px; }
  .auth-header .brand { font-size: 27px; }
  .auth-header > button { font-size: 13px; }
  .auth-footer { max-width: 512px; padding: 24px; }
}
@media (max-width: 400px) {
  .auth-layout { padding-inline: 16px; }
  .auth-header { padding-inline: 20px; }
  .auth-card { padding-inline: 20px; }
  .session-row { flex-wrap: wrap; }
}
