:root { --auth-ink:#172033; --auth-muted:#667085; --auth-line:rgba(23,32,51,.12); --auth-accent:#6e65d8; --auth-bg:#f4f3ef; }
.account-chip { position:relative; z-index:1; width:fit-content; min-height:38px; max-width:min(280px,calc(100vw - 36px)); margin:24px 24px 0 auto; padding:0 16px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(23,32,51,.12); border-radius:999px; background:rgba(255,255,255,.88); color:#172033; box-shadow:0 10px 32px rgba(38,43,66,.12); backdrop-filter:blur(14px); font:600 12px/1 Inter,Arial,sans-serif; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-chip:hover,.account-chip:focus-visible { transform:translateY(-1px); box-shadow:0 14px 36px rgba(38,43,66,.17); }
.account-page { min-height:100vh; margin:0; color:var(--auth-ink); background:radial-gradient(circle at 12% 8%,rgba(160,150,239,.22),transparent 36%),linear-gradient(145deg,#f8f7f2,#efeff7); font-family:Inter,Arial,sans-serif; }
.account-shell { width:min(1120px,calc(100% - 32px)); margin:0 auto; padding:28px 0 70px; }
.account-header { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.account-brand { display:inline-flex; align-items:center; gap:12px; color:inherit; text-decoration:none; font-size:12px; font-weight:700; letter-spacing:.08em; }
.account-header>a:last-child { color:var(--auth-muted); font-size:13px; text-decoration:none; }
.account-layout { margin-top:42px; display:grid; grid-template-columns:minmax(280px,.78fr) minmax(360px,1.22fr); gap:clamp(28px,6vw,84px); align-items:start; }
.account-intro { padding:clamp(24px,5vw,58px) 0; }
.account-kicker { margin:0 0 18px; color:var(--auth-accent); font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.account-intro h1 { max-width:620px; margin:0; font-family:"Cormorant Garamond",Georgia,serif; font-size:clamp(58px,8vw,100px); font-weight:500; line-height:.82; letter-spacing:-.045em; }
.account-intro>p:last-child { max-width:520px; margin:28px 0 0; color:var(--auth-muted); font-size:16px; line-height:1.65; }
.auth-card { padding:clamp(24px,4vw,42px); border:1px solid var(--auth-line); border-radius:30px; background:rgba(255,255,255,.86); box-shadow:0 28px 80px rgba(56,62,93,.12); backdrop-filter:blur(18px); }
.auth-loading,.auth-config-missing { margin:0; color:var(--auth-muted); line-height:1.6; }
.auth-config-missing h2,.auth-session h2 { margin:0 0 12px; font-family:"Cormorant Garamond",Georgia,serif; font-size:38px; font-weight:500; }
.auth-config-missing a { color:var(--auth-accent); }
.auth-tabs { display:flex; gap:8px; padding:5px; border-radius:999px; background:#f1f0f5; }
.auth-tabs button { flex:1; min-height:42px; border:0; border-radius:999px; background:transparent; color:var(--auth-muted); cursor:pointer; font:600 12px/1 Inter,Arial,sans-serif; }
.auth-tabs button[aria-selected="true"] { background:#fff; color:var(--auth-ink); box-shadow:0 6px 18px rgba(38,43,66,.1); }
.auth-panel { margin-top:28px; }
.auth-panel[hidden],.auth-session[hidden],.auth-config-missing[hidden],.auth-loading[hidden] { display:none!important; }
.auth-panel h2 { margin:0; font-size:23px; }
.auth-panel>p { margin:10px 0 24px; color:var(--auth-muted); font-size:13px; line-height:1.55; }
.auth-form { display:grid; gap:16px; }
.auth-form label { display:grid; gap:7px; color:#3b4354; font-size:12px; font-weight:600; }
.auth-form input { width:100%; min-height:48px; padding:0 14px; border:1px solid var(--auth-line); border-radius:13px; background:#fff; color:var(--auth-ink); font:400 15px/1 Inter,Arial,sans-serif; }
.auth-form input:focus { outline:3px solid rgba(110,101,216,.16); border-color:var(--auth-accent); }
.auth-primary,.auth-secondary { min-height:48px; border-radius:999px; cursor:pointer; font:700 12px/1 Inter,Arial,sans-serif; }
.auth-primary { border:0; background:#172033; color:#fff; }
.auth-primary:hover,.auth-primary:focus-visible { background:#293451; }
.auth-secondary { border:1px solid var(--auth-line); background:#fff; color:var(--auth-ink); }
.auth-link { width:fit-content; padding:0; border:0; background:none; color:var(--auth-accent); cursor:pointer; font:600 12px/1.4 Inter,Arial,sans-serif; text-decoration:underline; text-underline-offset:3px; }
.auth-status { min-height:22px; margin:18px 0 0; color:var(--auth-muted); font-size:13px; line-height:1.5; }
.auth-status[data-kind="error"] { color:#b42318; }
.auth-status[data-kind="success"] { color:#087a55; }
.auth-session dl { margin:24px 0; display:grid; gap:12px; }
.auth-session dl div { display:grid; gap:4px; }
.auth-session dt { color:var(--auth-muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.auth-session dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:800px) { .account-layout { grid-template-columns:1fr; margin-top:24px; }.account-intro { padding:22px 0 0; }.account-intro h1 { font-size:62px; }.account-chip { margin:16px 16px 0 auto; }.auth-card { border-radius:24px; } }
@media (prefers-reduced-motion:reduce) { .account-chip { transition:none; } }
