.full { width: 100%; }
.login-page { background: var(--paper); }
.login-shell { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 100vh; }

/* ---------- Left visual ---------- */
.login-visual {
  position: relative; background: #123d2e; color: #fff; overflow: hidden;
  display: flex; min-height: 100vh;
}
.visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 76%);
}
.visual-orb { position: absolute; border-radius: 50%; }
.orb-a { width: 560px; height: 560px; left: -180px; top: -210px; background: radial-gradient(circle, rgba(217,119,87,.18), transparent 66%); }
.orb-b { width: 640px; height: 640px; right: -300px; bottom: -300px; background: radial-gradient(circle, rgba(233,194,124,.14), transparent 66%); }
.visual-inner { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; max-width: 700px; margin: 0 auto; padding: 40px 56px 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand.light { color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: #e8d9b8; color: #123d2e; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-word { font-size: 18px; font-weight: 750; letter-spacing: .02em; line-height: 1.1; display: flex; flex-direction: column; }
.brand-word small { font-size: 9.5px; font-weight: 500; color: rgba(255,255,255,.42); letter-spacing: .14em; margin-top: 4px; }
.visual-copy { margin-top: auto; padding-top: 80px; }
.visual-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #d9b87a; display: flex; align-items: center; gap: 8px; }
.visual-kicker::before { content: ""; width: 26px; height: 1px; background: #d9b87a; opacity: .6; }
.visual-copy blockquote {
  font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.48; letter-spacing: -.02em; margin: 20px 0 18px; color: #f4efe3;
}
.visual-copy blockquote em { font-style: normal; color: #e9c27c; position: relative; }
.visual-copy blockquote em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 6px; background: rgba(217,119,87,.2); }
.visual-copy p { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,.48); }
.visual-stats { display: flex; gap: 0; margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.visual-stats > div { padding: 18px 28px 16px 0; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.1); }
.visual-stats > div:last-child { border-right: 0; margin-right: 0; }
.visual-stats b { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: #f4efe3; }
.visual-stats b small { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.5); }
.visual-stats span { display: block; font-size: 9px; color: rgba(255,255,255,.38); margin-top: 5px; letter-spacing: .04em; }
.visual-quote { margin-top: 36px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); border-radius: 14px; max-width: 460px; }
.visual-quote-mark { font-family: var(--serif); font-size: 30px; line-height: .5; color: rgba(233,194,124,.5); }
.visual-quote p { font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,.62); margin: 7px 0 13px; }
.visual-author { display: flex; align-items: center; gap: 9px; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; background: #d9b87a; color: #123d2e; display: grid; place-items: center; font-size: 10px; font-weight: 750; }
.visual-author b { display: block; font-size: 10px; }
.visual-author small { display: block; font-size: 8px; color: rgba(255,255,255,.35); }
.visual-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; font-size: 8.5px; color: rgba(255,255,255,.25); }

/* ---------- Right login ---------- */
.login-main { display: flex; flex-direction: column; padding: 28px 48px 22px; min-height: 100vh; }
.login-top { display: flex; align-items: center; justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.back-link:hover { color: var(--green); }
.login-help { font-size: 11px; color: var(--muted); }
.login-help a { color: var(--green); font-weight: 600; }
.login-card { width: min(420px, 100%); margin: auto; padding: 26px 0 18px; }
.login-heading .login-eyebrow { font-size: 8.5px; font-weight: 750; letter-spacing: .2em; color: #a29784; }
.login-heading h1 { font-size: 34px; letter-spacing: -.04em; font-weight: 730; margin: 8px 0 5px; }
.login-heading p { font-size: 12px; color: var(--muted); }
.demo-accounts { margin: 26px 0 22px; padding: 14px; background: #fbf8f0; border: 1px solid var(--line); border-radius: 13px; }
.demo-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #9b9488; text-transform: uppercase; margin-bottom: 9px; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo-account {
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 8px 7px; display: flex; align-items: center; gap: 7px; text-align: left;
  transition: .2s;
}
.demo-account:hover { background: #fffdf8; border-color: var(--line); }
.demo-account.active { background: #fffdf8; border-color: #cdd9ce; box-shadow: 0 2px 6px rgba(30,42,36,.04); }
.demo-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.demo-avatar.principal { background: #1e5b45; }
.demo-avatar.teacher { background: #d97757; }
.demo-avatar.finance { background: #c39843; }
.demo-account b { display: block; font-size: 10px; line-height: 1.3; }
.demo-account small { display: block; font-size: 8px; color: var(--muted); margin-top: 1px; }
#loginForm { display: flex; flex-direction: column; gap: 14px; }
.field > label { font-size: 11.5px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ba49d; pointer-events: none; }
.input-icon .input { padding-left: 37px; height: 43px; background: #fffdf8; }
.input-icon .input:focus { background: #fff; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #9ba49d; display: grid; place-items: center; border-radius: 6px; }
.password-toggle:hover { background: var(--paper-2); color: var(--ink); }
.login-row { display: flex; align-items: center; justify-content: space-between; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); cursor: pointer; }
.check input { width: 13px; height: 13px; accent-color: var(--green); }
.forgot { border: 0; background: transparent; font-size: 10.5px; color: var(--green); }
.forgot:hover { text-decoration: underline; }
.login-error { display: none; font-size: 11px; color: var(--red); background: var(--red-soft); border-radius: 7px; padding: 8px 10px; }
.login-error.show { display: block; }
.login-submit { margin-top: 2px; height: 46px; justify-content: space-between; padding: 0 17px; }
.login-submit.loading { opacity: .7; pointer-events: none; }
.login-submit.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-divider span { font-size: 9px; color: #a3aaa4; }
.wecom-btn { height: 42px; color: #4d5a52; background: transparent; }
.wecom-btn:hover { background: #fffdf8; border-color: #cfc6b6; }
.login-hint { display: flex; gap: 8px; margin-top: 20px; padding: 11px 12px; background: #f4f1e8; border-radius: 9px; }
.hint-icon { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #b7b3a7; color: #918b7f; display: grid; place-items: center; font-size: 8px; font-family: var(--serif); flex: none; margin-top: 1px; }
.login-hint p { font-size: 9.5px; line-height: 1.75; color: #8d948d; }
.login-security { display: flex; justify-content: center; gap: 20px; margin-top: auto; padding-top: 18px; }
.login-security span { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: #a0a8a1; }
.login-security svg { color: #97a499; }

@media (max-width: 1050px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-main { padding: 24px 28px 18px; }
}
@media (max-width: 560px) {
  .login-main { padding: 20px 18px 16px; }
  .login-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .login-card { margin: 26px auto 0; }
  .login-heading h1 { font-size: 30px; }
  .demo-buttons { gap: 3px; }
  .demo-account { flex-direction: column; text-align: center; gap: 4px; padding: 8px 3px; }
  .login-security { gap: 10px; flex-wrap: wrap; }
}
.login-alt { display: flex; gap: 8px; margin-top: 12px; }
.login-alt .btn { flex: 1; height: 38px; font-size: 12px; }
.sms-panel { margin-top: 12px; padding: 14px; border: 1px solid #e8e2d5; border-radius: 10px; background: #fbf8f0; }
.sms-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sms-panel-head b { font-size: 13px; color: #2d4236; }
.sms-panel-head span { font-size: 10px; color: #9aa39c; }
.sms-panel .field { margin-bottom: 9px; }
.sms-panel .field label { font-size: 10px; }
.sms-code-row { display: flex; gap: 8px; }
.sms-code-row .input { flex: 1; min-width: 0; }
.sms-code-row .btn { flex: none; height: 40px; font-size: 11px; white-space: nowrap; }
.sms-panel .login-submit { margin-top: 4px; height: 42px; font-size: 12px; }
.sms-hint { margin-top: 8px; font-size: 10px; line-height: 1.7; color: #9aa39c; word-break: break-all; }
.sms-hint b { color: #1e5b45; font-size: 13px; }
.wechat-qr-mask { position: fixed; inset: 0; z-index: 1000; background: rgba(12,28,21,.62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wechat-qr-mask[hidden] { display: none; }
.wechat-qr-card { position: relative; width: 320px; max-width: 92vw; background: #fffdf8; border-radius: 18px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.wechat-qr-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: #9aa39c; font-size: 25px; line-height: 1; cursor: pointer; }
.wechat-qr-title { font-size: 18px; font-weight: 700; color: #23362a; }
.wechat-qr-sub { margin-top: 5px; font-size: 11px; color: #8b958d; line-height: 1.6; }
#wechatQrCanvas { display: block; width: 220px; height: 220px; margin: 16px auto 10px; border: 1px solid #eee7da; border-radius: 8px; background: #fff; }
.wechat-qr-status { font-size: 11px; color: #1e5b45; min-height: 18px; }
.wechat-qr-note { margin-top: 8px; font-size: 9.5px; line-height: 1.65; color: #9aa39c; }
.login-tabs { display:flex; gap:4px; padding:4px; margin: 4px 0 18px; background:#f1ece1; border-radius:12px; }
.login-tab { flex:1; height:42px; border:0; border-radius:9px; background:transparent; color:#7b857e; font-size:13px; font-weight:600; cursor:pointer; }
.login-tab.active { background:#fffdf8; color:#1e5b45; box-shadow:0 2px 8px rgba(30,42,36,.08); }
.login-pane[hidden] { display:none; }
.sms-panel { border:0; padding:0; background:transparent; }
.login-wechat { margin-top:18px; text-align:center; }
.login-wechat-btn { width:100%; height:44px; border:1px solid #d9e4db; border-radius:10px; background:#f5faf6; color:#1e5b45; font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; }
.login-wechat-btn:hover { background:#edf6ef; border-color:#b9d3c1; }
.wechat-mark { width:22px; height:22px; border-radius:50%; background:#1aad19; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.login-wechat-hint { margin-top:7px; font-size:10px; color:#9aa39c; }
