:root { color-scheme: dark; --auth-bg:#101011; --auth-panel:#19191d; --auth-line:#373741; --auth-text:#f1f0f3; --auth-muted:#a3a3ad; --auth-accent:#83cfa0; accent-color:var(--auth-accent); }
[hidden] { display: none !important; }
.auth-dialog { width:min(430px,calc(100vw - 32px)); padding:30px; border:1px solid #42424c; border-radius:7px; background:var(--auth-panel); color:var(--auth-text); box-shadow:0 24px 80px #000b; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; }
.auth-dialog::backdrop { background:#000b; }
.auth-dialog h2,.identity-card h1 { font:400 35px/.98 Georgia,serif; letter-spacing:-.045em; margin:10px 0 15px; }
.auth-dialog p,.identity-card p { color:var(--auth-muted); font-size:13px; line-height:1.6; }
.auth-overline { font-size:10px; font-weight:700; letter-spacing:.16em; color:#9699aa; text-transform:uppercase; }
.auth-heading { display:flex; justify-content:space-between; align-items:start; gap:10px; }
.auth-close { border:0; background:transparent; color:#b5b5c0; font-size:24px; line-height:1; cursor:pointer; }
.auth-tabs { display:flex; gap:20px; border-bottom:1px solid var(--auth-line); margin:20px 0; }
.auth-tabs button { border:0; border-bottom:2px solid transparent; padding:9px 2px; background:transparent; color:var(--auth-muted); cursor:pointer; font:inherit; }
.auth-tabs button.active { color:#fff; border-bottom-color:var(--auth-accent); }
.auth-label { display:block; margin:14px 0 7px; color:#c8c8d0; font-size:12px; }
.auth-input { width:100%; box-sizing:border-box; min-height:43px; padding:10px 12px; border:1px solid #45454f; border-radius:4px; background:#222226; color:#f3f3f5; font:inherit; }
.auth-input:focus-visible,.auth-dialog button:focus-visible,.identity-card button:focus-visible,.identity-card a:focus-visible { outline:2px solid #b2eec9; outline-offset:2px; }
.auth-primary { min-height:44px; padding:10px 16px; border:1px solid #40865a; border-radius:4px; background:#226b3d; color:white; font-weight:650; cursor:pointer; }
.auth-primary:hover { background:#297747; }
.auth-primary:disabled { opacity:.55; cursor:not-allowed; }
.auth-submit { width:100%; margin-top:22px; }
.auth-message { min-height:20px; margin:12px 0 0; color:#f0bcb5 !important; overflow-wrap:anywhere; }
.identity-page { margin:0; min-width:320px; background:#101011; color:var(--auth-text); font:14px/1.5 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; }
.identity-shell { max-width:1200px; margin:auto; padding:0 6%; }
.identity-header { height:84px; border-bottom:1px solid #303035; display:flex; align-items:center; justify-content:space-between; }
.identity-brand { color:#f1f0f3; text-decoration:none; font-weight:700; font-size:20px; letter-spacing:-.06em; }
.identity-brand span,.auth-accent { color:var(--auth-accent); }
.identity-header-note { color:#85858f; font-size:10px; letter-spacing:.14em; text-transform:uppercase; }
.identity-main { min-height:calc(100vh - 84px); display:grid; place-items:center; padding:56px 0; box-sizing:border-box; }
.identity-card { width:min(460px,100%); box-sizing:border-box; padding:32px; background:#18181b; border:1px solid #38383e; border-radius:6px; }
.identity-card form { margin-top:24px; }
.avatar-edit { display:flex; align-items:center; gap:16px; margin:24px 0 4px; }
.avatar-preview { width:66px; height:66px; border-radius:50%; display:grid; place-items:center; background:#395744; color:#e9faef; font-weight:700; font-size:21px; overflow:hidden; flex:none; }
.avatar-preview img { width:100%; height:100%; object-fit:cover; }
.upload-label { color:#c4f2d5; font-size:12px; cursor:pointer; }
.upload-label input { max-width:180px; display:block; margin-top:8px; color:#a3a3ad; font-size:10px; }
.auth-hint { color:#91919c; font-size:11px; line-height:1.5; margin:7px 0 0; }
@media(max-width:600px) { .identity-header{height:68px}.identity-header-note{display:none}.identity-main{min-height:calc(100vh - 68px);padding:28px 0}.identity-card{padding:23px}.auth-dialog{padding:23px} }
