.login-page { min-height: 100svh; }
.login-shell { width: min(1080px, calc(100% - 32px)); min-height: 100svh; margin: 0 auto; padding: 32px 0 24px; display: grid; align-content: center; gap: 18px; }
.login-back { width: max-content; color: #5f7486; text-decoration: none; font-size: 13px; font-weight: 650; transition: color .2s ease, transform .2s ease; }
.login-back:hover { color: var(--blue); transform: translateX(-2px); }
.login-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); min-height: 610px; overflow: hidden; border: 1px solid rgba(18,68,102,.13); border-radius: 30px; background: rgba(255,255,255,.82); box-shadow: 0 30px 90px rgba(30,70,100,.15); backdrop-filter: blur(18px); }
.login-intro { position: relative; padding: clamp(46px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: linear-gradient(145deg, rgba(240,251,248,.94), rgba(240,247,253,.86)); }
.login-intro::after { content:""; position:absolute; width:340px; height:340px; right:-160px; bottom:-170px; border:1px solid rgba(10,145,139,.12); border-radius:50%; box-shadow:0 0 0 54px rgba(11,91,156,.03),0 0 0 108px rgba(10,145,139,.025); }
.login-brand { width: 200px; height: auto; margin: 0 0 42px; filter: drop-shadow(0 14px 24px rgba(14,79,126,.10)); }
.login-intro h1 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.16; letter-spacing: -.045em; }
.login-intro > p:not(.section-kicker) { max-width: 510px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.82; }
.workspace-note { position: relative; z-index: 1; display: flex; margin-top: 34px; padding: 17px 18px; border: 1px solid rgba(18,68,102,.10); border-radius: 17px; background: rgba(255,255,255,.64); }
.workspace-note strong,.workspace-note span { display:block; }
.workspace-note strong { margin: 1px 0 4px; font-size: 14px; }
.workspace-note div span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-panel { display: grid; place-items: center; padding: 46px 38px; background: rgba(255,255,255,.74); }
.auth-view { width: min(100%, 350px); text-align: center; }
.auth-heading { display:flex; align-items:center; gap:13px; margin-bottom:24px; text-align:left; }
.auth-school-seal { width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; display: block; border-radius: 50%; }
.auth-school-seal img { display: block; width: auto; max-width: none; height: 38px; object-fit: contain; }
.auth-heading strong,.auth-heading span { display:block; }
.auth-heading strong { font-size: 15px; line-height:1.45; }
.auth-heading span { margin-top:3px; color:var(--muted); font-size:12px; }
.qr-stage { position:relative; width:244px; height:244px; margin:0 auto 16px; display:grid; place-items:center; border:1px solid rgba(18,68,102,.12); border-radius:22px; background:#fff; box-shadow:0 14px 38px rgba(29,68,97,.10); overflow:hidden; }
.qr-stage::before,.qr-stage::after { content:""; position:absolute; width:26px; height:26px; border-color:rgba(10,145,139,.62); pointer-events:none; }
.qr-stage::before { left:12px; top:12px; border-left:2px solid; border-top:2px solid; border-radius:5px 0 0; }
.qr-stage::after { right:12px; bottom:12px; border-right:2px solid; border-bottom:2px solid; border-radius:0 0 5px; }
#qr-image { width:215px; height:215px; object-fit:contain; }
.qr-placeholder { color:var(--muted); font-size:12px; }
.qr-placeholder span { display:block; width:34px; height:34px; margin:0 auto 12px; border:3px solid rgba(11,91,156,.14); border-top-color:var(--green); border-radius:50%; animation:qr-spin .9s linear infinite; }
.qr-placeholder p { margin:0; }
.refresh-qr { position:absolute; inset:0; width:100%; border:0; color:#fff; background:rgba(16,37,60,.78); font:650 14px/1.4 inherit; cursor:pointer; backdrop-filter:blur(4px); }
.auth-status { display:flex; align-items:center; justify-content:center; gap:8px; min-height:24px; color:#536b7d; font-size:13px; }
.auth-status i { width:8px; height:8px; border-radius:50%; background:#d0a44b; box-shadow:0 0 0 5px rgba(208,164,75,.11); }
.auth-status.scanned i { background:var(--blue); box-shadow:0 0 0 5px rgba(11,91,156,.10); }
.auth-status.success i { background:var(--green); box-shadow:0 0 0 5px rgba(10,145,139,.11); }
.auth-status.error i { background:#b8515b; box-shadow:0 0 0 5px rgba(184,81,91,.10); }
.auth-divider { display:flex; align-items:center; gap:12px; margin:21px 0 16px; color:#98a5b1; font-size:11px; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; flex:1; background:rgba(18,68,102,.10); }
.guest-button { width:100%; min-height:46px; border:1px solid rgba(18,68,102,.16); border-radius:14px; color:var(--ink); background:rgba(248,251,253,.92); font:700 14px/1 inherit; cursor:pointer; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.guest-button:hover { transform:translateY(-1px); border-color:rgba(11,91,156,.28); box-shadow:0 8px 22px rgba(27,69,100,.09); }
.guest-button:disabled { opacity:.62; cursor:wait; }
.guest-help { margin:10px 0 0; color:#82909d; font-size:11px; line-height:1.6; }
.success-view { animation:success-in .42s cubic-bezier(.2,.8,.2,1) both; }
.success-check { width:70px; height:70px; margin:0 auto 24px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--green),var(--blue)); box-shadow:0 16px 34px rgba(4,108,130,.22); font-size:32px; }
.success-view p { margin:0 0 18px; color:var(--muted); font-size:13px; }
.success-view strong { display:block; font-size:30px; letter-spacing:.02em; }
.success-view span { display:block; margin-top:9px; color:#52697c; font-size:14px; }
.success-view small { display:block; margin-top:32px; color:#8a98a5; font-size:12px; }
.login-privacy { margin:0; color:rgba(42,74,96,.62); text-align:center; font-size:11px; line-height:1.6; }
@keyframes qr-spin { to { transform:rotate(360deg); } }
@keyframes success-in { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
@media (max-width:840px) { .login-shell { padding:18px 0; align-content:start; } .login-card { grid-template-columns:1fr; } .login-intro { padding:36px 30px; } .login-brand { width:160px; margin-bottom:28px; } .workspace-note { margin-top:24px; } .auth-panel { padding:38px 24px 42px; } }
@media (max-width:480px) { .login-shell { width:min(100% - 18px,1080px); } .login-card { border-radius:23px; } .login-intro { padding:30px 22px; } .login-intro h1 { font-size:34px; } .auth-panel { padding:32px 16px 38px; } .qr-stage { width:226px; height:226px; } #qr-image { width:199px; height:199px; } }
@media (prefers-reduced-motion:reduce) { .qr-placeholder span { animation-duration:1.8s; } }
