.login-page { min-height:100vh; }
.auth-main { min-height:calc(100vh - 120px); display:flex; align-items:center; }
.auth-section { width:100%; padding-top:145px; padding-bottom:65px; }
.auth-layout { display:grid; grid-template-columns:minmax(0,1.03fr) minmax(400px,.78fr); gap:62px; align-items:center; }
.auth-showcase h1 { margin:20px 0 18px; max-width:750px; font-size:clamp(45px,5.2vw,73px); line-height:.98; letter-spacing:-.055em; }
.auth-showcase h1 span { color:var(--primary); }
.auth-showcase > p { max-width:680px; color:var(--muted); font-size:15px; line-height:1.75; }
.access-highlights { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:30px 0 20px; }
.access-card { padding:16px; border-radius:20px; display:grid; gap:12px; min-height:155px; }
.access-icon { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; color:var(--primary); background:rgba(255,255,255,.58); box-shadow:inset 1px 1px 0 rgba(255,255,255,.85), 7px 7px 18px rgba(116,129,150,.13); }
.access-icon svg { width:20px; }
.access-card strong { display:block; font-size:12px; margin-bottom:5px; }
.access-card small { display:block; color:var(--muted); font-size:10px; line-height:1.55; }
.workspace-preview { border-radius:26px; padding:20px; max-width:680px; }
.workspace-head { display:flex; justify-content:space-between; gap:20px; align-items:center; padding-bottom:15px; border-bottom:1px solid rgba(133,149,171,.15); }
.workspace-head small { display:block; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.13em; margin-bottom:4px; }
.workspace-head strong { font-size:13px; }
.workspace-head > span { background:rgba(92,92,226,.1); color:var(--primary); font-size:9px; font-weight:800; padding:7px 10px; border-radius:999px; }
.workspace-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:14px; }
.workspace-stats > div { display:flex; align-items:center; gap:9px; border-radius:16px; padding:12px; background:rgba(255,255,255,.42); border:1px solid rgba(255,255,255,.65); }
.workspace-stats svg { width:17px; color:var(--primary); }
.workspace-stats strong, .workspace-stats small { display:block; }
.workspace-stats strong { font-size:13px; }
.workspace-stats small { font-size:8px; color:var(--muted); margin-top:2px; }
.workspace-action-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:10px; }
.workspace-action-row span { border-radius:13px; padding:9px; font-size:8px; color:#5c6877; background:rgba(239,243,248,.72); display:flex; align-items:center; justify-content:center; gap:5px; }
.workspace-action-row svg { width:13px; }

.auth-card { border-radius:32px; padding:30px; position:relative; overflow:hidden; box-shadow:0 26px 70px rgba(79,92,116,.16), inset 1px 1px 0 rgba(255,255,255,.9); }
.auth-card::before { content:""; position:absolute; width:190px; height:190px; border-radius:50%; background:rgba(92,92,226,.09); filter:blur(3px); right:-80px; top:-95px; }
.auth-card > * { position:relative; z-index:1; }
.auth-card-top { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.auth-logo { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; color:white; background:linear-gradient(145deg,#7373ef,#4d4dc4); box-shadow:9px 9px 22px rgba(83,83,183,.23), inset 1px 1px 0 rgba(255,255,255,.3); }
.auth-logo svg { width:22px; }
.auth-card-top small { display:block; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.12em; }
.auth-card-top h2 { margin:2px 0 0; font-size:29px; letter-spacing:-.04em; }
.login-method-tabs { display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:6px; border-radius:18px; background:rgba(222,229,238,.72); box-shadow:inset 5px 5px 12px rgba(154,167,185,.16), inset -5px -5px 12px rgba(255,255,255,.72); margin-bottom:22px; }
.method-tab { border:0; border-radius:13px; padding:11px 12px; font:inherit; font-size:10px; font-weight:700; color:#7a8798; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; transition:.2s ease; }
.method-tab svg { width:15px; }
.method-tab.active { color:var(--primary); background:rgba(255,255,255,.7); box-shadow:6px 6px 14px rgba(139,151,171,.14), inset 1px 1px 0 white; }
.method-panel[hidden] { display:none !important; }
.auth-notice { display:flex; gap:9px; align-items:flex-start; padding:11px 12px; border-radius:14px; margin-bottom:16px; font-size:9px; line-height:1.5; }
.auth-notice svg { width:16px; flex:0 0 auto; }
.auth-notice.error { background:rgba(239,68,68,.08); color:#b33d3d; border:1px solid rgba(239,68,68,.13); }
.auth-notice.success { background:rgba(34,197,94,.08); color:#27804a; border:1px solid rgba(34,197,94,.13); }
.auth-form { display:grid; gap:16px; }
.field-group { display:grid; gap:8px; }
.field-group > span { font-size:10px; font-weight:800; color:#516074; }
.field-group > small { color:#8a97a8; font-size:8px; line-height:1.45; }
.field-shell { min-height:50px; display:flex; align-items:center; gap:9px; border-radius:15px; padding:0 13px; background:#edf2f7; box-shadow:inset 5px 5px 12px rgba(166,178,194,.21), inset -6px -6px 14px rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.7); transition:.2s ease; }
.field-shell:focus-within { border-color:rgba(92,92,226,.2); box-shadow:inset 4px 4px 10px rgba(166,178,194,.18), inset -5px -5px 12px rgba(255,255,255,.88), 0 0 0 3px rgba(92,92,226,.05); }
.field-shell > svg { width:17px; color:#7d899a; flex:0 0 auto; }
.country-code { font-size:10px; font-weight:800; color:#59677a; padding-right:8px; border-right:1px solid rgba(129,145,165,.18); }
.field-shell input { border:0; outline:0; background:transparent; width:100%; min-width:0; color:#2f3b4a; font:inherit; font-size:11px; }
.field-shell input::placeholder { color:#9ba6b4; }
.password-toggle { width:30px; height:30px; border:0; border-radius:10px; cursor:pointer; background:transparent; color:#7b8797; display:grid; place-items:center; }
.password-toggle:hover { background:rgba(255,255,255,.7); color:var(--primary); }
.password-toggle svg { width:16px; }
.auth-options { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-top:-2px; }
.auth-options a { font-size:9px; color:var(--primary); font-weight:700; }
.remember-control { display:flex; align-items:center; gap:7px; cursor:pointer; }
.remember-control input { position:absolute; opacity:0; pointer-events:none; }
.custom-check { width:17px; height:17px; border-radius:6px; display:grid; place-items:center; background:#e8edf3; box-shadow:inset 3px 3px 6px rgba(152,166,185,.22), inset -3px -3px 6px white; color:transparent; }
.custom-check svg { width:11px; }
.remember-control input:checked + .custom-check { background:var(--primary); color:white; box-shadow:none; }
.remember-control em { font-style:normal; font-size:9px; color:#697789; }
.login-submit { margin-top:2px; }
.secure-strip { display:flex; gap:8px; align-items:flex-start; margin-top:13px; padding:10px 12px; border-radius:13px; background:rgba(92,92,226,.05); color:#738095; font-size:8px; line-height:1.45; }
.secure-strip svg { width:14px; color:var(--primary); flex:0 0 auto; }
.auth-divider { display:flex; align-items:center; gap:10px; color:#94a0ae; font-size:8px; margin:20px 0 13px; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; flex:1; background:rgba(126,142,164,.15); }
.phase-note { display:flex; gap:7px; align-items:flex-start; color:#8794a4; font-size:8px; line-height:1.5; margin:18px 0 0; padding-top:16px; border-top:1px solid rgba(130,146,166,.14); }
.phase-note svg { width:14px; flex:0 0 auto; }

.qr-login-wrap { text-align:center; padding:6px 4px 2px; }
.qr-preview { width:182px; height:182px; margin:2px auto 18px; border-radius:24px; padding:21px; position:relative; background:rgba(255,255,255,.78); box-shadow:10px 10px 25px rgba(128,141,161,.17), inset 1px 1px 0 white; }
.qr-grid { width:100%; height:100%; display:grid; grid-template-columns:repeat(9,1fr); gap:3px; }
.qr-grid span { border-radius:2px; background:transparent; }
.qr-grid span.on { background:#303b4c; }
.qr-center { position:absolute; inset:0; margin:auto; width:39px; height:39px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(145deg,#6d6de5,#5050c7); color:white; border:5px solid white; box-shadow:0 5px 18px rgba(78,78,175,.26); }
.qr-center svg { width:16px; }
.qr-corners::before,.qr-corners::after { content:""; position:absolute; width:39px; height:39px; border:6px solid #303b4c; border-radius:8px; top:19px; }
.qr-corners::before { left:19px; }
.qr-corners::after { right:19px; }
.qr-login-wrap h3 { margin:0 0 7px; font-size:18px; letter-spacing:-.03em; }
.qr-login-wrap > p { margin:0 auto; max-width:420px; color:var(--muted); font-size:9px; line-height:1.65; }
.qr-steps { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin:18px 0 14px; }
.qr-steps span { display:flex; align-items:center; gap:5px; padding:8px 9px; border-radius:12px; background:rgba(236,241,246,.82); font-size:8px; color:#657387; }
.qr-steps b { width:17px; height:17px; border-radius:6px; display:grid; place-items:center; background:rgba(92,92,226,.1); color:var(--primary); }
.qr-steps > svg { width:13px; color:#9aa5b2; }
.qr-security { display:flex; justify-content:center; align-items:center; gap:7px; border-radius:13px; padding:10px; background:rgba(34,197,94,.06); color:#5f7d69; font-size:8px; }
.qr-security svg { width:14px; }
.auth-footer { padding-top:0; }
.auth-footer .footer-card { padding:18px 25px; }
.auth-footer-bottom { margin:0; padding:0; border-top:0; }
.auth-footer-bottom a { color:inherit; }
.mini-toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); background:#2f3a49; color:white; padding:10px 14px; border-radius:12px; font-size:9px; z-index:120; opacity:0; pointer-events:none; transition:.24s ease; box-shadow:0 12px 30px rgba(34,44,58,.24); }
.mini-toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width:1050px) {
    .auth-layout { grid-template-columns:1fr; gap:38px; }
    .auth-showcase { max-width:820px; }
    .auth-card { max-width:590px; width:100%; }
}
@media (max-width:700px) {
    .auth-section { padding-top:118px; }
    .access-highlights { grid-template-columns:1fr; }
    .access-card { min-height:0; grid-template-columns:auto 1fr; align-items:start; }
    .workspace-preview { display:none; }
    .auth-card { padding:24px 18px; border-radius:25px; }
    .auth-showcase h1 { font-size:clamp(40px,12vw,58px); }
    .auth-options { align-items:flex-start; }
}
@media (max-width:430px) {
    .login-method-tabs { grid-template-columns:1fr; }
    .auth-showcase > p { font-size:13px; }
    .auth-card-top h2 { font-size:25px; }
    .qr-preview { width:164px; height:164px; }
    .qr-steps > svg { display:none; }
    .auth-footer-bottom { font-size:8px; }
}
