
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; min-height:100svh; padding:32px; display:grid; place-items:center; color:#3d2935; background:radial-gradient(ellipse at 0 0,#785269 0,transparent 50%),#26151f; font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif; }
.auth-shell { width:min(1320px,100%); min-height:min(820px,calc(100svh - 64px)); display:grid; grid-template-columns:1.15fr 1fr; background:#fdfbfc; border:1px solid #9a738a; border-radius:28px; overflow:hidden; box-shadow:0 30px 90px rgba(17,4,11,.35); }
.auth-story { position:relative; overflow:hidden; padding:46px 52px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(145deg,#692545,#4a172f 75%,#382030); color:#fff; }
.auth-story::before { content:''; position:absolute; width:650px; height:550px; right:-380px; top:-220px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.02); }
.auth-story::after { content:''; position:absolute; width:950px; height:380px; left:-100px; bottom:-260px; border-radius:50%; transform:rotate(-17deg); background:#98677f; box-shadow:0 -35px 0 rgba(219,174,200,.15); pointer-events:none; }
.auth-logo { position:relative; z-index:1; width:210px; height:105px; object-fit:contain; padding:6px 10px; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(23,5,14,.12); }
.auth-brand-caption { margin-top:18px; color:#e2bed2; font-size:9px; letter-spacing:.19em; font-weight:700; }
.auth-story-copy { position:relative; z-index:1; padding:40px 0; }
.auth-story h1 { margin:0 0 22px; font-size:clamp(36px,3.5vw,52px); line-height:1.1; letter-spacing:-.045em; font-weight:650; }
.auth-story h1 span { color:#e2bbd0; }
.auth-story p { font-size:15px; line-height:1.7; margin:0; color:#efdae6; max-width:380px; }
.auth-capabilities { display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; }
.auth-capabilities span { border:1px solid #a77993; padding:7px 10px; border-radius:20px; background:rgba(255,255,255,.04); color:#efdae6; font-size:9px; letter-spacing:.07em; }
.auth-story small { position:relative; z-index:1; color:#eed6e4; font-size:11px; line-height:1.6; display:block; padding-top:24px; }
.auth-wrapper { padding:54px clamp(28px,4vw,64px); width:100%; align-self:center; }
.auth-form-brand { display:none; width:150px; height:auto; margin-bottom:28px; }
.auth-access-mark { display:grid; place-items:center; width:52px; height:52px; border:1px solid #e4ccda; border-radius:16px; color:#722c50; background:#f0e1e9; margin-bottom:28px; }
.auth-access-mark svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.auth-kicker { font-size:10px; font-weight:750; letter-spacing:.15em;  color:#926a80; margin-bottom:12px; }
.auth-title { font-size:32px; line-height:1.18; letter-spacing:-.035em; font-weight:700; margin:0 0 15px; color:#442636; }
.auth-subtitle { font-size:14px; line-height:1.7; color:#7a6874; margin-bottom:32px; max-width:340px; }
.auth-error { color:#9c2929; background:#fff0f0; border:1px solid #e9bcbc; border-left:4px solid #bb4242; border-radius:10px; padding:14px; font-size:13px; line-height:1.6; margin-bottom:22px; }
label { display:block; font-size:13px; font-weight:650; margin-bottom:9px; color:#4d3844; }
input[type='password'],input[type='text']:not(.offscreen) { width:100%; min-height:54px; padding:14px 16px; background:#fff; color:#3d2935; border:1px solid #ceb9c7; border-radius:10px; font:16px/1.4 'Segoe UI',system-ui,sans-serif; box-shadow:0 2px 6px rgba(89,28,60,.025); }
input:focus-visible { outline:3px solid rgba(152,103,127,.24); outline-offset:2px; border-color:#98677f; }
button:focus-visible { outline:3px solid #98677f; outline-offset:4px; }
.toggle-row { margin-top:16px; display:flex; align-items:center; gap:9px; font-size:13px; font-weight:400; color:#7a6874; cursor:pointer; user-select:none; }
.toggle-row input { margin:0; width:16px; height:16px; accent-color:#591c3c; }
.auth-actions { margin-top:28px; }
.btn-primary { width:100%; min-height:54px; padding:14px 18px; border:1px solid #591c3c; border-radius:10px; color:#fff; background:linear-gradient(110deg,#591c3c,#793252); font:650 14px/1.5 'Segoe UI',system-ui,sans-serif; cursor:pointer; box-shadow:0 8px 18px rgba(89,28,60,.17); }
.btn-primary:hover { background:#48162f; box-shadow:0 9px 24px rgba(89,28,60,.2); }
.auth-hint { text-align:center; font-size:11px; line-height:1.7; color:#877782; margin-top:20px; }
.auth-footer { border-top:1px solid #e9dce4; margin-top:32px; padding-top:22px; color:#8a7582; font-size:10px; line-height:1.6; text-align:center; letter-spacing:.03em; }
.vh { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.offscreen { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
@media(max-width:900px) {
 body { padding:20px; } .auth-shell { min-height:calc(100svh - 40px); grid-template-columns:1fr 1fr; }
 .auth-story { padding:36px 30px; } .auth-wrapper { padding:40px 28px; } .auth-story h1 { font-size:37px; }
 .auth-logo { width:180px; height:90px; } .auth-title { font-size:28px; }
}
@media(max-width:650px) {
 body { padding:16px; background:linear-gradient(160deg,#6b2c4e,#2d1725); }
 .auth-shell { max-width:480px; min-height:auto; grid-template-columns:1fr; border-radius:22px; }
 .auth-story { padding:28px; } .auth-story::after { bottom:-340px; }
 .auth-logo { width:160px; height:80px; }
 .auth-story-copy { padding:28px 0 6px; }
 .auth-story h1 { font-size:31px; margin-bottom:14px; } .auth-story p { font-size:13px; }
 .auth-capabilities { margin-top:20px; } .auth-story small,.auth-brand-caption { display:none; }
 .auth-wrapper { padding:30px 28px; } .auth-access-mark { width:42px; height:42px; margin-bottom:22px; border-radius:12px; }
 .auth-title { font-size:28px; } .auth-subtitle { margin-bottom:26px; }
}
@media(max-width:360px) { body { padding:10px; } .auth-story,.auth-wrapper { padding:24px 20px; } }
.auth-brand { position:relative; z-index:1; }
