
:root { font-family: var(--font-interface); color: var(--color-ink); background: var(--color-page); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; font-size: 15px; line-height: 1.55; background: radial-gradient(ellipse at 0 20%,#EEE5F7,transparent 60%),radial-gradient(ellipse at 100% 90%,#E3EFE6,transparent 50%),var(--color-page); -webkit-font-smoothing: antialiased; }
button,input { font: inherit; }
button { cursor: pointer; }
.auth-layout { max-width: 1100px; min-height: 100vh; min-height: 100svh; margin: auto; display: grid; grid-template-columns: minmax(0,1fr) 420px; align-items: center; gap: 64px; padding: 48px 32px; }
.auth-intro { min-width: 0; }
.auth-brand { width: 52px; height: 52px; border-radius: 16px; background: var(--color-brand); color: white; display: grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 32px; box-shadow: var(--shadow-control); }
.eyebrow { font-size: 12px; letter-spacing: .07em; font-weight: 700; color: var(--color-muted); }
.auth-intro h1 { font-size: clamp(34px,4.3vw,50px); line-height: 1.16; letter-spacing: -.025em; margin: 20px 0; }
.auth-intro>p { font-size: 16px; line-height: 1.7; max-width: 390px; color: var(--color-secondary); }
.auth-features { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; color: var(--color-secondary); font-size: 14px; }
.auth-card { min-width: 0; background: #FFFFFFF5; border: 1px solid var(--color-border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-panel); }
.auth-tabs { display: flex; gap: 4px; background: var(--color-surface-soft); padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; color: var(--color-secondary); padding: 10px 6px; border-radius: 9px; font-weight: 650; font-size: 14px; min-height: 40px; }
.auth-tabs button[aria-selected=true] { background: white; color: var(--color-brand-hover); box-shadow: var(--shadow-control); }
.auth-card h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.3; letter-spacing: -.02em; }
.auth-card>p { font-size: 14px; line-height: 1.6; color: var(--color-muted); margin: 0 0 24px; }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--color-secondary); }
input { width: 100%; padding: 12px 13px; min-height: 46px; border: 1px solid var(--color-border); background: #FCFAFE; border-radius: 10px; color: var(--color-ink); font-size: 15px; min-width: 0; }
input:focus { border-color: var(--color-brand); }
input::placeholder { color: var(--color-muted); opacity: 1; }
.auth-submit { min-height: 46px; padding: 12px; border: 1px solid var(--color-brand); border-radius: 11px; background: var(--color-brand); color: #FFFFFF; font-weight: 700; font-size: 15px; }
.auth-submit:hover { background: var(--color-brand-hover); }
.auth-submit:disabled { opacity: .6; cursor: wait; }
#auth-error { color: #943F48; background: #FAEAE8; border: 1px solid #E7BFC2; padding: 11px 12px; border-radius: 9px; font-size: 14px; line-height: 1.5; margin: 0; }
.password-hint { color: var(--color-muted); font-size: 13px; margin: -6px 0 0; }
.auth-card .auth-local { font-size: 12px; color: var(--color-muted); margin: 22px 0 0; text-align: center; }
@media(max-width:760px) {
  .auth-layout { grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 480px; padding: 28px 20px; }
  .auth-brand { margin-bottom: 18px; width: 44px; height: 44px; font-size: 25px; }
  .auth-intro h1 { font-size: 32px; margin: 14px 0; }
  .auth-intro>p { font-size: 15px; }
  .auth-features { display: none; }
  .auth-card { padding: 24px; }
  input { font-size: 16px; }
}
@media(max-width:380px) { .auth-layout { padding: 22px 14px; } .auth-card { padding: 20px; } .auth-card h2 { font-size: 23px; } }
.auth-secondary { display:block; width:100%; background:transparent; color:#705480; border:1px solid #e5dbea; border-radius:12px; padding:11px 14px; font:inherit; cursor:pointer; margin-top:10px; }
.auth-secondary:disabled { opacity:.5; cursor:default; }
#auth-code { font-size:24px; letter-spacing:.25em; text-align:center; }
#auth-details { display:flex; flex-direction:column; gap:16px; }
#auth-verification { display:flex; flex-direction:column; gap:14px; }
