:root { color-scheme:dark; --bg:#0b0d0d; --panel:#131817; --ink:#eee9dd; --muted:#aaa89e; --line:#343b37; --gold:#c8aa6a; --danger:#e6a29a; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--gold); }
.account-shell { width:min(560px,100%); margin:auto; padding:32px 20px 72px; }
.back-link { display:inline-flex; gap:8px; align-items:center; color:var(--muted); text-decoration:none; font-size:.9rem; }
.back-link:hover { color:var(--ink); }
.auth-card { margin-top:28px; padding:clamp(24px,5vw,38px); border:1px solid var(--line); border-radius:18px; background:rgba(19,24,23,.94); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.auth-card h1 { margin:0; font:400 clamp(1.8rem,5vw,2.4rem)/1.15 Georgia,serif; }
.intro { margin:9px 0 28px; color:var(--muted); line-height:1.55; }
.field { margin-top:18px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
label { display:block; margin-bottom:7px; font-size:.88rem; font-weight:650; }
.optional { color:var(--muted); font-weight:400; }
input, textarea { width:100%; min-height:46px; padding:11px 13px; color:var(--ink); background:#0d1110; border:1px solid #424944; border-radius:9px; font:inherit; }
textarea { min-height:125px; resize:vertical; line-height:1.5; }
input:focus, textarea:focus { border-color:var(--gold); outline:3px solid rgba(200,170,106,.15); }
.hint { display:block; margin-top:6px; color:var(--muted); font-size:.77rem; line-height:1.4; }
.password-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:stretch; }
.generate-password { min-height:46px; padding:10px 14px; border:1px solid #59615b; border-radius:8px; color:var(--ink); background:rgba(255,255,255,.035); font:650 .82rem/1.2 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; cursor:pointer; white-space:nowrap; }
.generate-password:hover, .generate-password:focus-visible { border-color:var(--gold); background:rgba(200,170,106,.1); outline:none; }
.password-wrap { position:relative; }
.password-wrap input { height:100%; padding-right:48px; }
.password-toggle { position:absolute; top:50%; right:8px; transform:translateY(-50%); display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; }
.password-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.password-toggle:hover, .password-toggle:focus-visible { color:var(--ink); outline:none; }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:46px; padding:11px 18px; border:1px solid var(--gold); border-radius:8px; color:#101210; background:var(--gold); font-family:inherit; font-size:.9rem; font-weight:700; line-height:1; cursor:pointer; text-decoration:none; }
.button:hover { filter:brightness(1.08); }
.button-secondary { color:var(--ink); background:transparent; border-color:var(--line); }
.submit { width:100%; margin-top:24px; }
.switch { margin:22px 0 0; color:var(--muted); text-align:center; font-size:.9rem; }
.alert { margin:0 0 20px; padding:12px 14px; border:1px solid #754b47; border-radius:9px; color:#f3cbc6; background:#2b1918; line-height:1.45; }
.success { border-color:#46644e; color:#cbe5d1; background:#142219; }
.profile-head { display:flex; align-items:center; gap:16px; margin:20px 0 26px; }
.avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; border:1px solid var(--gold); background:#0d1110; }
.avatar-fallback { display:grid; place-items:center; color:var(--gold); font:500 1.4rem Georgia,serif; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
@media (max-width:520px) { .field-row { grid-template-columns:1fr; gap:0; } .account-shell { padding-top:22px; } .generate-password { padding-inline:11px; } }
