:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#172844;background:#f5f7fb;font-synthesis:none;--navy:#113269;--navy2:#082651;--gold:#e9b22c;--line:#e0e7f0;--muted:#65738b;--white:#fff;--green:#17805b;--red:#bd3646;--shadow:0 15px 36px rgba(15,47,93,.07)}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--navy)}.hidden{display:none!important}.loading{height:90vh;display:grid;place-content:center;text-align:center;color:var(--muted);gap:12px}.spinner{width:36px;height:36px;border:3px solid #d7e1ed;border-top-color:var(--navy);border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}
.shell{max-width:1260px;margin:0 auto;padding:0 24px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:83px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:56px;height:56px;object-fit:contain}.brand b{display:block;font-size:19px;letter-spacing:.1px;color:var(--navy)}.brand small{display:block;color:var(--muted);font-size:11px;max-width:420px;line-height:1.4}.top-actions{display:flex;align-items:center;gap:8px}.identity{font-size:13px;color:#4c5a6e}.page{padding:32px 0 58px}.footer{color:#7e889b;font-size:12px;text-align:center;padding:28px 12px 35px}.footer strong{color:#4b628b}
.btn{border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;padding:11px 17px;background:#f0f4fa;color:#1b3760;min-height:43px;transition:background .15s}.btn:hover{filter:brightness(.985)}.btn.primary{background:var(--navy);color:#fff}.btn.gold{background:var(--gold);color:#212c40}.btn.line{background:#fff;border-color:#d8e1ec;color:var(--navy)}.btn.danger{color:#b52d42;background:#fff0f2}.btn.sm{font-size:12px;padding:7px 11px;min-height:32px}.btn.full{width:100%}.btn.ghost{background:transparent;color:var(--navy)}
.card{background:#fff;border:1px solid #e3e9f0;border-radius:17px;padding:24px;box-shadow:var(--shadow)}.card.tight{padding:19px}.card h2,.card h3{margin-top:0}.muted{color:var(--muted)}.small{font-size:13px}.xs{font-size:11px}.badge{display:inline-block;padding:5px 10px;font-size:12px;border-radius:30px;background:#edf3ff;color:var(--navy);font-weight:650}.badge.good{background:#e6f7ee;color:#1b7f54}.badge.bad{background:#ffedf0;color:#ad3247}.badge.gold{background:#fff6dd;color:#98710c}.section-title{font-size:22px;font-weight:800;color:#152f57;letter-spacing:-.3px;margin:0 0 8px}.subtitle{margin:0;color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:800;color:#4f739c;margin-bottom:8px}.divider{height:1px;background:var(--line);margin:20px 0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:16px}.gap8{gap:8px}.mb0{margin-bottom:0}.mb12{margin-bottom:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.space{height:20px}
input,select,textarea{background:#fff;border:1px solid #cfd9e6;border-radius:10px;padding:11px 12px;width:100%;color:#21334d;outline-color:#315b95;min-height:44px}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:650;margin-bottom:6px;color:#344765}.field{margin-bottom:15px}.error{background:#fff0f2;border:1px solid #ffd2d9;color:#a63247;border-radius:10px;padding:11px;font-size:13px}.help{background:#eff5ff;border:1px solid #d9e6fb;color:#294f83;padding:13px 16px;border-radius:11px;line-height:1.65;font-size:13px}.hint{color:#78879b;font-size:12px}.toast{position:fixed;bottom:25px;right:25px;z-index:999;padding:13px 18px;border-radius:12px;background:#133662;color:#fff;box-shadow:0 18px 35px #10294c50;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:min(420px,90vw)}.toast.visible{opacity:1}
/* Trang dang nhap: logo noi bat, khong co tieu de va slogan o cot trai. */
.auth-bg{min-height:100vh;background:radial-gradient(circle at 12% 26%,#244a81 0,#0d2d5c 60%,#092347 100%);padding:32px 18px;display:flex;align-items:center;justify-content:center}
.auth-wrap{max-width:1120px;width:100%;display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:44px;align-items:center}
.auth-hero{min-width:0;padding:18px;display:flex;align-items:center;justify-content:center}
.auth-logo-panel{display:flex;align-items:center;justify-content:center;width:min(100%,440px);aspect-ratio:1/1;padding:24px;border-radius:28px;background:linear-gradient(145deg,#fff 0%,#f0f5fd 100%);border:1px solid rgba(255,255,255,.75);box-shadow:0 26px 70px rgba(2,17,40,.28),0 3px 14px rgba(10,42,85,.12)}
.auth-hero .auth-logo{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 15px rgba(5,32,75,.10))}
.auth-card{padding:35px 32px}
.auth-card h2{font-size:24px;margin:0 0 9px;color:#19396a}
.auth-card p{line-height:1.6}
.auth-card .btn{margin-top:6px}
.auth-note{margin-top:16px;color:#8b98a8;font-size:12px;line-height:1.6}
.welcome{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:26px}.welcome h1{font-size:30px;letter-spacing:-.8px;margin:0 0 6px}.metric{font-size:29px;font-weight:850;color:var(--navy);line-height:1.2}.metric-card p{font-size:12px;color:var(--muted);margin:7px 0 0}.course{position:relative;overflow:hidden}.course:before{content:'';position:absolute;height:5px;top:0;left:0;right:0;background:linear-gradient(90deg,var(--navy),#4d75bb,var(--gold))}.course-icon{width:45px;height:45px;background:#e9f1fd;border-radius:13px;display:grid;place-items:center;font-size:24px;margin-bottom:14px}.course h3{font-size:18px;line-height:1.35;margin:0 0 10px}.course p{line-height:1.55;color:var(--muted);font-size:13px;min-height:41px}.course-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.tablewrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;color:#64738b;font-size:12px;font-weight:750;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:12px 10px;border-bottom:1px solid #eef1f6;vertical-align:middle}.table tbody tr:hover{background:#fbfdff}.table small{color:#8491a1}.table .btn{white-space:nowrap}.pill{padding:4px 8px;border-radius:20px;font-size:11px;background:#ecf2ff;color:#24466f}
.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:19px;align-items:start}.exam-panel{position:sticky;top:102px}.exam-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.exam-head h1{font-size:19px;margin:2px 0}.timer{display:flex;align-items:center;gap:6px;background:#eaf1fd;color:#1a4579;border-radius:11px;padding:9px 13px;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.timer.urgent{background:#ffedf0;color:#b32642}.progress{background:#e9eef5;height:8px;border-radius:20px;overflow:hidden;margin:17px 0 22px}.progress div{background:linear-gradient(90deg,#103875,#d4a127);height:100%;border-radius:20px;transition:width .2s}.stem{font-size:19px;line-height:1.6;font-weight:690;white-space:pre-wrap;margin:12px 0 22px}.answer{display:flex;gap:13px;align-items:flex-start;border:1px solid #dce5ee;padding:15px;border-radius:12px;margin:10px 0;cursor:pointer;line-height:1.55;background:#fff;transition:background .12s,border .12s;font-size:15px}.answer:hover{border-color:#92b0d4;background:#f8fbff}.answer.selected{background:#eef5ff;border:2px solid #2863a1;padding:14px}.answer.correct{border-color:#3ba97d;background:#effaf4}.answer.wrong{border-color:#df5c70;background:#fff0f3}.answer .letter{flex:0 0 31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#edf1f8;font-weight:750;color:#315583}.answer.selected .letter{background:#204f8b;color:#fff}.question-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:15px 0}.number{border:1px solid #dbe3ef;background:#fff;border-radius:9px;min-height:40px;font-size:13px;font-weight:700;color:#45607e}.number.done{background:#dceafc;color:#0e4c92;border-color:#92b5e4}.number.flag{box-shadow:inset 0 -4px #dba82b}.number.current{outline:2px solid var(--navy);outline-offset:1px}.nav-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#768498}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;background:#dceafc;vertical-align:middle}.dot.blank{background:#fff;border:1px solid #cbd6e4}.dot.flag{background:#e8b436}.exam-actions{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.explanation{background:#f0f6ff;border:1px solid #c9def7;border-radius:12px;padding:15px;margin-top:17px;line-height:1.6;font-size:14px}
.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid #dae3ed;padding-bottom:10px}.tab{padding:9px 14px;background:#f3f6fa;border-radius:9px;color:#506782;border:0;font-weight:700;font-size:13px}.tab.active{background:var(--navy);color:#fff}.actionbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0 17px}.actionbar .field{margin:0}.actionbar .field input{width:230px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.form-grid .field{margin:0}.modal-bg{position:fixed;inset:0;background:#091b36ad;display:grid;place-items:center;z-index:100;padding:20px}.modal{background:#fff;max-width:740px;width:100%;max-height:88vh;overflow:auto;border-radius:17px;padding:28px;box-shadow:0 25px 55px #0004}.modal h2{margin:0 0 17px}.modal .field textarea{min-height:72px}.results-hero{text-align:center}.results-score{font-size:68px;font-weight:850;letter-spacing:-3px;color:#173968;margin:8px 0}.results-score.good{color:#16805d}.results-score.bad{color:#b5394b}.notice{font-size:12px;line-height:1.6;color:#6e7f94}.admin-brief{padding:9px 12px;border-radius:10px;background:#fffae7;color:#86671e;font-size:12px}.question-preview{max-width:620px;line-height:1.55;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.select-topic{max-width:270px}.tiny-check{accent-color:#1b5c9e}
@media(max-width:1020px){.auth-wrap{grid-template-columns:minmax(0,1fr) 400px;gap:22px}.shell{padding:0 18px}.exam-layout{grid-template-columns:minmax(0,1fr) 255px}.question-nav{grid-template-columns:repeat(5,1fr)}}
@media(max-width:760px){.auth-bg{padding:22px 14px}.auth-wrap{grid-template-columns:1fr;max-width:470px;gap:18px}.auth-hero{padding:0}.auth-logo-panel{width:min(240px,66vw);padding:12px;border-radius:23px;box-shadow:0 16px 34px rgba(2,17,40,.21)}.auth-hero .auth-logo{width:100%;height:100%}.auth-card{padding:26px 22px}.shell{padding:0 14px}.header-inner{min-height:70px}.brand img{height:43px;width:43px}.brand b{font-size:16px}.brand small{font-size:9px;max-width:190px}.top-actions .identity{display:none}.top-actions .btn{padding:6px 10px;min-height:34px;font-size:11px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.page{padding:20px 0 35px}.welcome{display:block}.welcome h1{font-size:24px}.welcome .btn{margin-top:12px}.card{padding:18px}.section-title{font-size:20px}.exam-layout{grid-template-columns:1fr}.exam-panel{position:static}.exam-head h1{font-size:16px}.timer{font-size:14px;padding:7px 8px}.stem{font-size:17px}.answer{padding:12px;font-size:14px}.answer.selected{padding:11px}.question-nav{grid-template-columns:repeat(10,1fr);gap:5px}.number{min-height:30px;border-radius:6px;font-size:11px}.actionbar .field input{width:100%}.actionbar .field{width:100%}.actionbar .btn{flex:1}.modal{padding:20px}.footer{font-size:10px}}
@media(max-width:400px){.question-nav{grid-template-columns:repeat(8,1fr)}.brand small{display:none}.auth-logo-panel{width:min(195px,64vw);padding:10px}}

/* ===== MIH LOGIN REFINEMENT 2026 • NAVY & GOLD EDITION =====
   Scope limited to the authentication screen. Do not alter exam/admin layouts. */
.auth-bg{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  min-height:100dvh;
  padding:48px 28px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 20% 44%,rgba(26,100,204,.60) 0%,transparent 40%),
    radial-gradient(ellipse at 85% 98%,rgba(5,100,203,.38) 0%,transparent 40%),
    linear-gradient(120deg,#071e47 0%,#07316c 48%,#062654 100%);
}
.auth-bg::before,.auth-bg::after{
  content:"";
  pointer-events:none;
  position:absolute;
  z-index:-1;
  width:112%;
  height:48vw;
  min-height:290px;
  max-height:640px;
  border-radius:50%;
  opacity:.8;
}
.auth-bg::before{
  left:-36%;top:-43%;
  transform:rotate(-17deg);
  border-bottom:3px solid rgba(255,196,53,.8);
  box-shadow:0 10px 0 rgba(0,142,255,.47),0 15px 25px rgba(0,142,255,.33);
  background:linear-gradient(180deg,rgba(22,133,236,.42),transparent 70%);
}
.auth-bg::after{
  right:-42%;bottom:-51%;
  transform:rotate(-16deg);
  border-top:3px solid rgba(255,194,53,.78);
  box-shadow:0 -9px 0 rgba(0,156,255,.43),0 -15px 24px rgba(0,117,238,.28);
  background:linear-gradient(0deg,rgba(15,110,209,.52),transparent 76%);
}
.auth-wrap{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1260px;
  display:grid;
  grid-template-columns:minmax(0,1.07fr) minmax(400px,.93fr);
  gap:clamp(38px,5vw,78px);
  align-items:center;
}
.auth-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 8px;
  min-width:0;
}
.auth-logo-panel{
  position:relative;
  width:100%;
  max-width:570px;
  aspect-ratio:1 / 1;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:6.2%;
  overflow:hidden;
  border-radius:36px;
  background:linear-gradient(145deg,#ffffff 3%,#fffcf6 61%,#fffefb 100%);
  border:2px solid rgba(255,193,54,.98);
  box-shadow:0 0 0 5px rgba(255,255,255,.11),0 15px 18px rgba(250,190,42,.12),0 28px 68px rgba(0,7,27,.30),0 0 28px rgba(255,197,59,.25);
}
.auth-logo-panel::before{
  content:"";
  position:absolute;
  pointer-events:none;
  inset:10px;
  border:1px solid rgba(214,154,33,.35);
  border-radius:28px;
  background:
    radial-gradient(ellipse at 50% -15%,rgba(255,205,81,.22),transparent 55%),
    radial-gradient(ellipse at 50% 120%,rgba(255,194,49,.19),transparent 58%);
}
.auth-logo-panel::after{
  content:"";
  position:absolute;
  pointer-events:none;
  width:132%;height:107%;
  left:-16%;top:9%;
  border-radius:50%;
  border:2px solid rgba(222,179,80,.16);
  box-shadow:0 0 0 17px rgba(235,189,69,.035),0 0 0 31px rgba(244,198,88,.025);
}
.auth-panel-ribbon{
  pointer-events:none;
  position:absolute;
  bottom:-14%;left:-21%;width:143%;height:49%;
  transform:rotate(-11deg);
  border-radius:50%;
  border-top:2px solid rgba(233,177,49,.35);
  box-shadow:0 -9px 22px rgba(246,201,96,.09);
}
.auth-hero .auth-logo{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  filter:drop-shadow(0 12px 12px rgba(7,43,92,.075));
}
.auth-card{
  position:relative;
  width:100%;
  padding:clamp(28px,3.2vw,44px);
  border-radius:22px;
  border:1px solid #e8edf7;
  background:#ffffff;
  box-shadow:0 25px 62px rgba(0,14,46,.20);
}
.auth-card .eyebrow{font-size:12px;letter-spacing:2.1px;color:#406a9d;margin-bottom:14px}
.auth-card h2{font-size:clamp(24px,2.1vw,30px);font-weight:780;line-height:1.25;margin:0 0 16px;color:#12356b}
.auth-card p{line-height:1.72}
.auth-card .small{font-size:14px}
.auth-card form{margin-top:24px}
.auth-card .field{margin-bottom:20px}
.auth-card .field label{font-size:14px;color:#15365d;margin-bottom:8px}
.auth-card input{min-height:53px;border-radius:11px;border:1px solid #cddbeb;padding:12px 15px;background:#fff}
.auth-card input:focus{outline:2px solid rgba(43,93,164,.25);border-color:#326aa9}
.auth-card .btn.primary{min-height:55px;font-size:17px;margin-top:8px;background:#123770;border-radius:12px}
.auth-card .btn.primary:hover{background:#1a4a92;filter:none}
.auth-card .auth-note{font-size:12px;color:#7c8fa9;margin-top:20px;margin-bottom:0}
@media(max-width:1020px){
 .auth-bg{padding:30px 18px}
 .auth-wrap{grid-template-columns:minmax(0,1fr) minmax(345px,1fr);gap:24px}
 .auth-card{padding:29px 25px}
 .auth-logo-panel{border-radius:28px}
}
@media(max-width:760px){
 .auth-bg{min-height:100dvh;overflow:auto;padding:26px 15px 36px}
 .auth-bg::before,.auth-bg::after{opacity:.4}
 .auth-wrap{grid-template-columns:1fr;max-width:470px;gap:22px}
 .auth-hero{padding:0;justify-content:center}
 .auth-logo-panel{width:min(245px,58vw);border-radius:23px;padding:10px;box-shadow:0 13px 26px rgba(0,15,41,.23),0 0 18px rgba(255,198,53,.2)}
 .auth-logo-panel::before{inset:5px;border-radius:18px}
 .auth-card{border-radius:18px;padding:25px 22px}
 .auth-card .eyebrow{font-size:11px}
 .auth-card h2{font-size:24px}
 .auth-card form{margin-top:18px}
 .auth-card .field{margin-bottom:15px}
 .auth-card input{min-height:49px}
 .auth-card .btn.primary{min-height:49px}
}
@media(max-width:400px){
 .auth-bg{padding:17px 12px 30px}
 .auth-logo-panel{width:min(205px,55vw)}
 .auth-card{padding:21px 17px}
}
@media(prefers-reduced-motion:reduce){.auth-card .btn{transition:none}}


/* ==========================================================
   MIH 2026 | Trang dang nhap trang-vang chuyen sac xanh navy
   Chi anh huong .auth-*, khong doi giao dien hoc vien/quan tri
   ========================================================== */
.auth-bg{
 position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;
 min-height:100vh;min-height:100dvh;padding:clamp(20px,4vh,44px) clamp(24px,4.4vw,72px);
 overflow:hidden;background:#072751 url('/assets/login-white-gold-wave.svg') center center/cover no-repeat;
}
.auth-bg::before,.auth-bg::after{content:none!important;display:none!important}
.auth-wrap{
 position:relative;z-index:1;width:100%;max-width:1540px;
 display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
 gap:clamp(22px,3vw,62px);align-items:center;
}
.auth-hero{
 min-width:0;min-height:590px;padding:20px 5% 20px 0;
 display:flex;align-items:center;justify-content:center;background:transparent;
}
.auth-hero .auth-logo{
 display:block;position:relative;width:min(75%,390px);height:auto;max-height:none;object-fit:contain;
 filter:drop-shadow(0 10px 13px rgba(18,41,81,.07));
}
.auth-logo-panel,.auth-panel-ribbon{display:none!important}
.auth-card{
 position:relative;width:min(100%,570px);justify-self:end;
 padding:clamp(30px,3.25vw,54px);border-radius:30px;
 background:linear-gradient(160deg,rgba(10,47,99,.98) 0%,rgba(6,37,81,.98) 58%,rgba(3,27,63,.98) 100%);
 border:1px solid rgba(110,161,223,.40);
 box-shadow:0 18px 52px rgba(0,19,49,.27),inset 0 1px 0 rgba(255,255,255,.07);
 color:#f4f8ff;
}
.auth-card .eyebrow{
 color:#ffcd51;font-size:clamp(11px,1.05vw,15px);font-weight:800;
 letter-spacing:1.9px;margin:0 0 18px;
}
.auth-card .eyebrow::after{content:'';display:block;width:66px;height:2px;margin-top:14px;background:#ffd44f;border-radius:6px}
.auth-card h1{
 font-size:clamp(24px,2.4vw,36px);font-weight:800;letter-spacing:-.6px;
 line-height:1.24;color:#fff;margin:0 0 13px;
}
.auth-card .auth-intro{
 color:#e0ebf9;font-size:clamp(13px,1.11vw,16px);line-height:1.7;margin:0 0 26px;
}
.auth-card form{margin-top:0}
.auth-card .field{margin:0 0 21px}
.auth-card .field label{color:#f4f8ff;font-size:14px;font-weight:750;margin-bottom:9px}
.auth-card .auth-input{
 display:flex;align-items:center;gap:12px;min-height:54px;border-radius:12px;
 border:1px solid rgba(144,179,224,.54);background:rgba(255,255,255,.065);
 transition:background .2s,border-color .2s,box-shadow .2s;
}
.auth-card .auth-input:focus-within{
 border-color:#ffce50;background:rgba(255,255,255,.1);
 box-shadow:0 0 0 3px rgba(255,210,79,.16);
}
.auth-card .auth-input .auth-field-icon{display:grid;place-items:center;color:#e8f1ff;flex:0 0 22px;margin-left:16px}
.auth-card .auth-input svg{width:21px;height:21px}
.auth-card .auth-input input{
 flex:1;min-width:0;width:100%;height:52px;min-height:52px;padding:10px 10px 10px 0;
 background:transparent;border:0!important;outline:0!important;box-shadow:none!important;
 border-radius:0;color:#fff;font-size:15px;
}
.auth-card .auth-input:has(input:first-child) input{padding-left:17px}
.auth-card .auth-input input::placeholder{color:#c4d4ea;opacity:1}
.auth-card .auth-input input:-webkit-autofill{
 -webkit-text-fill-color:#fff;transition:background-color 9999s ease-out;
}
.auth-card .auth-toggle{
 display:grid;place-items:center;flex:0 0 42px;width:42px;height:48px;
 border:0;background:transparent;color:#d8e6fb;padding:0 8px;margin-right:5px;
}
.auth-card .auth-toggle:hover{color:#ffdc74}
.auth-card .auth-toggle:focus-visible{outline:2px solid #ffd251;outline-offset:-4px;border-radius:10px}
.auth-card .btn.primary.auth-submit{
 display:flex;width:100%;min-height:60px;margin-top:29px;padding:13px 18px;
 border-radius:14px;color:#08285c;border:1px solid #ffcb47;
 background:linear-gradient(180deg,#ffe07a 0%,#ffca47 58%,#f6b52a 100%);
 box-shadow:0 9px 19px rgba(8,27,64,.17),inset 0 2px 1px rgba(255,255,255,.37);
 font-size:19px;font-weight:800;
}
.auth-card .btn.primary.auth-submit:hover{background:linear-gradient(180deg,#ffec9c,#ffcb43);filter:none}
.auth-card .btn.primary.auth-submit:focus-visible{outline:3px solid white;outline-offset:3px}
.auth-card .auth-note{
 color:#cbd9ea;font-size:12px;line-height:1.75;margin:19px 0 0;
}
@media(max-width:1100px){
 .auth-bg{padding:28px 28px}
 .auth-wrap{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:25px}
 .auth-hero{min-height:480px;padding:0 4% 0 0}
 .auth-hero .auth-logo{width:min(80%,330px)}
 .auth-card{padding:30px 27px}
}
@media(max-width:760px){
 .auth-bg{
  min-height:100dvh;overflow-x:hidden;overflow-y:auto;
  padding:28px 16px 40px;align-items:flex-start;
  background:linear-gradient(180deg,#fffdf7 0%,#ffffff 34%,#eaf0f8 45%,#173b70 55%,#072752 66%,#06224d 100%);
 }
 .auth-bg::before{display:none!important}
 .auth-wrap{grid-template-columns:1fr;width:100%;max-width:490px;gap:18px}
 .auth-hero{min-height:225px;padding:0;justify-content:center}
 .auth-hero .auth-logo{width:min(62vw,240px);max-width:76%}
 .auth-card{justify-self:center;width:100%;padding:28px 24px;border-radius:23px}
 .auth-card h1{font-size:25px}
 .auth-card .auth-intro{font-size:13px;margin-bottom:22px}
 .auth-card .field{margin-bottom:16px}
 .auth-card .btn.primary.auth-submit{min-height:53px;font-size:17px;margin-top:22px}
}
@media(max-width:400px){
 .auth-bg{padding:21px 12px 26px}
 .auth-hero{min-height:200px}
 .auth-hero .auth-logo{width:min(67vw,215px)}
 .auth-card{padding:25px 19px;border-radius:20px}
 .auth-card h1{font-size:23px}
 .auth-card .eyebrow{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.auth-card .auth-input{transition:none}}


/* ============================================================
 MIH 2026 - MAU DUOC CHON (HINH BEN TRAI)
 Hinh nen lay tu MAU ĐÃ DUYỆT: duong cong VANG MEM, khong cat cheo.
 Chi ap dung trang dang nhap; khong thay doi backend, D1 hay bai thi.
 ============================================================ */
@media (min-width:761px) {
 .auth-bg {
  min-height:100vh; min-height:100dvh;
  width:100%; margin:0; padding:0;
  display:flex; align-items:center;justify-content:center;
  background: #062350 url('/assets/mih-selected-reference-background.webp') center center / 100% 100% no-repeat;
 }
 .auth-wrap {
  width:100%;max-width:none;min-height:100vh;min-height:100dvh;
  display:grid;grid-template-columns:55% 45%;gap:0;align-items:center;
  padding:0;margin:0;
 }
 .auth-hero {
  min-height:0;height:100%;padding:0;
  display:flex;justify-content:center;align-items:center;
  transform:translateY(-10px);
 }
 .auth-hero .auth-logo {
  display:block;width:clamp(270px,24.2vw,408px);max-width:75%;height:auto;
  margin:0;object-fit:contain;filter:drop-shadow(0 8px 13px rgba(14,40,75,.055));
 }
 .auth-card {
  width:min(600px,calc(100% - 52px));max-width:600px;
  justify-self:start;min-height:588px;transform:translateY(-10px);
  margin-left:clamp(13px,1.6vw,27px);
  padding:35px clamp(28px,3.1vw,50px);
  border-radius:30px;
  background:linear-gradient(150deg,rgba(10,51,107,.97) 0%,rgba(4,40,88,.985) 55%,rgba(1,28,65,.99) 100%);
  border:1px solid rgba(93,153,225,.5);
  box-shadow:0 16px 40px rgba(0,18,49,.19),inset 0 1px rgba(255,255,255,.065);
 }
 .auth-card .eyebrow {font-size:15px;margin-bottom:15px}
 .auth-card h1 {font-size:36px;line-height:1.2;margin-bottom:12px}
 .auth-card .auth-intro {font-size:16px;margin-bottom:27px;line-height:1.6}
 .auth-card .field {margin-bottom:21px}
 .auth-card .field label {font-size:16px;margin-bottom:9px}
 .auth-card .auth-input {min-height:54px}
 .auth-card .auth-input input {font-size:16px}
 .auth-card .btn.primary.auth-submit {font-size:20px;margin-top:28px;min-height:60px}
 .auth-card .auth-note {font-size:13px;line-height:1.8;margin-top:20px}
}
/* Tablet uses the same flow but avoids hiding labels when the window narrows. */
@media (min-width:761px) and (max-width:1200px) {
 .auth-wrap{grid-template-columns:50% 50%}
 .auth-hero .auth-logo{width:clamp(220px,27vw,330px)}
 .auth-card{width:calc(100% - 30px);margin-left:10px;min-height:0;padding:25px 23px}
 .auth-card h1{font-size:27px}
 .auth-card .auth-intro{font-size:14px}
 .auth-card .field label{font-size:14px}
 .auth-card .auth-note{font-size:11px}
}
/* Mobile: full-width white + gold brand header and dark navy login beneath. */
@media (max-width:760px) {
 .auth-bg{
  min-height:100vh;min-height:100dvh;
  background:
   radial-gradient(ellipse 110% 35% at 0% 24%,rgba(250,198,74,.16),transparent 70%),
   linear-gradient(180deg,#fffdfb 0%,#ffffff 32%,#e4e8ec 42%,#44648b 51%,#0b2f62 60%,#041e46 100%);
 }
 .auth-hero{min-height:220px}
 .auth-hero .auth-logo{width:min(61vw,235px)}
 .auth-card{background:linear-gradient(155deg,#0b356d,#021e46);border:1px solid rgba(113,163,217,.5)}
}


/* ===== CẬP NHẬT NHẬN DIỆN MIH + ĐIỀU HƯỚNG THI (21/11/2026) ===== */
.site-header .header-inner{min-height:91px;}
.site-header .brand-link{
 display:inline-flex;align-items:center;gap:15px;flex:1 1 auto;min-width:0;max-width:820px;
 text-decoration:none;color:#0a316b;transition:opacity .15s ease;
}
.site-header .brand-link:hover{opacity:.83}
.site-header .brand-link:focus-visible{outline:3px solid #e9b22c;outline-offset:5px;border-radius:6px}
.site-header .brand-link img{width:67px;height:67px;flex:0 0 67px;object-fit:contain}
.site-header .brand-name{
 display:block;color:#0b3066;font-size:18px;font-weight:800;
 letter-spacing:-.25px;line-height:1.3;max-width:680px;text-wrap:balance;
}
.site-header .top-actions{flex:0 0 auto}
.footer strong{color:#113269;font-weight:750}
.exam-topbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.exam-leave-group{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.exam-back-btn{background:#fff;border-color:#b8cae3;font-weight:750}
.exam-leave-hint{font-size:12px;color:#687d98;line-height:1.5}
.course-actions .btn{min-width:175px}
@media(max-width:1040px){
 .site-header .brand-name{font-size:16px;max-width:540px}
 .site-header .brand-link img{width:56px;height:56px;flex-basis:56px}
 .site-header .top-actions .identity{display:none}
}
@media(max-width:760px){
 .site-header .header-inner{min-height:80px;gap:8px}
 .site-header .brand-link{gap:8px;max-width:none}
 .site-header .brand-link img{width:45px;height:45px;flex-basis:45px}
 .site-header .brand-name{font-size:clamp(10px,2.55vw,14px);line-height:1.25;letter-spacing:-.1px}
 .site-header .top-actions{gap:4px}
 .site-header .top-actions .btn{font-size:10px;padding:6px 7px;min-height:31px}
 .exam-leave-hint{font-size:11px;flex-basis:100%}
 .exam-back-btn{min-height:38px}
}
@media(max-width:400px){
 .site-header .brand-link img{width:39px;height:39px;flex-basis:39px}
 .site-header .brand-name{font-size:10px}
 .site-header .top-actions .btn{padding:5px 6px}
}
/* Staff-only administrative workflow and Vietnamese CSV import */
.modal .form-grid .field{min-width:0}
.modal .form-grid input{min-width:0}
.actionbar a.btn{text-decoration:none;white-space:normal;text-align:center}
.modal .hint{line-height:1.65}
.modal a.btn.gold{text-decoration:none}
@media(max-width:760px){
 .actionbar a.btn{flex:1 1 100%}
 .modal .form-grid .row{gap:7px}
 .modal .form-grid .row input{min-width:0;flex:1}
 .modal .form-grid .row .btn{flex:0 0 auto}
}
