/* Page: login (Design 3) */
.brandplate{background:#fff;border-radius:14px;padding:8px 10px;text-align:center;margin-bottom:22px}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:10px;color:#c9ced6;font-size:15.5px}
.side-nav a:hover{background:#1e202a;color:#fff}
.side-nav a.active{background:var(--red);color:#fff;font-weight:600}
.side-foot{margin-top:auto;padding-top:18px}
.side-user{display:flex;align-items:center;gap:11px;padding:10px 6px;color:#e8eaee;font-size:15px}
.logout-btn{display:block;text-align:center;border:1px solid #3a3d47;border-radius:10px;padding:11px;color:#e8eaee;font-size:15px;margin-top:6px}
.support-box{color:#9aa1ab;font-size:13.5px;line-height:1.55;padding:0 6px}
.topbar{display:flex;align-items:center;gap:18px;margin-bottom:26px}
.topbar .spacer{flex:1}
.bell .dot{position:absolute;top:8px;right:8px;width:10px;height:10px;border-radius:50%;background:var(--red);border:2px solid var(--bg)}
.userchip{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px}
h1.page-title{font-size:34px;margin:0 0 6px;font-weight:800;letter-spacing:-.5px}
.page-sub{color:#3f4750;font-size:17px;margin:0 0 22px}
.btn-red{background:var(--red);color:#fff}
.btn-dark{background:var(--dark);color:#fff}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px;color:#fff;letter-spacing:.3px}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 3px rgba(16,24,40,.05)}
.tabs a{font-size:17px;color:#6a727d;padding:0 2px 12px}
.tabs a.on{color:var(--ink);font-weight:700;border-bottom:3px solid var(--red);margin-bottom:-1px}
.progress{height:9px;border-radius:99px;background:#e6e9ec;overflow:hidden}
.progress i{display:block;height:100%;border-radius:99px;background:var(--ink)}
.tagchip{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 18px;font-size:15px;color:#2b3138}
.tagchip.on{background:#e9ebee;font-weight:600}
/* ---------- home ---------- */
.hero{background:linear-gradient(96deg,#160404 0%,#5f0a10 42%,#c8102e 78%,#e2231a 100%);border-radius:16px;color:#fff;padding:44px 46px;margin-bottom:30px;position:relative;overflow:hidden}
.hero h1{font-size:42px;margin:0 0 10px;font-weight:800;letter-spacing:-.5px}
.hero p{font-size:20px;margin:0 0 24px;color:#ffffff}
.section-title{font-size:27px;font-weight:800;margin:30px 0 16px}
.module-card{background:#fff;border:1.5px solid #f2b8b4;border-radius:12px;padding:20px;display:flex;flex-direction:column;height:100%}
.module-card .ic{width:44px;height:44px;border-radius:10px;background:var(--red-soft);color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.module-card h3{margin:0 0 8px;font-size:19px}
.module-card .sum{color:#3f4750;font-size:14.5px;line-height:1.55;margin:0 0 14px}
.module-card ul{list-style:none;margin:0 0 18px;padding:0}
.module-card li{position:relative;padding:5px 0 5px 20px;font-size:14px;color:#2b3138}
.module-card .btn{padding:9px 26px;margin-top:auto;align-self:flex-start}
.feat-card h4{margin:0 40px 6px 0;font-size:18.5px;line-height:1.3}
.feat-card p{margin:auto 0 0;color:#aeb4bd;font-size:14px}
.feat-card .badge{position:absolute;top:14px;right:14px}
.feat-card .lock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--red)}
.feat-card .play{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.step .n{width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--red-soft);color:var(--red);display:flex;align-items:center;justify-content:center;font-size:18px}
.footer-strip{margin-top:30px;background:#14161c;color:#c9ced6;border-radius:12px;padding:18px 26px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:14.5px}
.course-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(16,24,40,.05);display:flex;flex-direction:column;height:100%;cursor:pointer}
.thumb .playb{width:58px;height:58px;border-radius:50%;background:rgba(20,22,28,.82);display:flex;align-items:center;justify-content:center;color:#fff}
.thumb .badge{position:absolute;top:12px;right:12px}
.thumb .price-chip{position:absolute;top:44px;right:12px;background:#14161c;color:#fff;font-weight:700;font-size:14.5px;padding:4px 10px;border-radius:7px}
.thumb .big{font-size:30px;font-weight:800;text-align:center;padding:0 18px;line-height:1.25}
.course-meta .btn{padding:10px 24px}
.mock-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 1px 3px rgba(16,24,40,.05);display:flex;flex-direction:column;height:100%;cursor:pointer}
.mock-card .btn{margin-top:auto;padding:15px;font-size:17px}
.login-left{flex:1;background:linear-gradient(160deg,#c8102e 0%,#a50d24 55%,#8f0a1f 100%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 40px;position:relative;overflow:hidden}
.login-left h1{font-size:38px;line-height:1.25;margin:0 0 14px;font-weight:800}
.login-left p{font-size:19px;color:#ffffff;margin:0;line-height:1.5}
.auth-tabs a.on{color:var(--ink);font-weight:700;border-bottom:3px solid var(--ink);margin-bottom:-1px}
.field input:focus{border-color:var(--ink)}
.form-row label{display:flex;gap:9px;align-items:center;color:#2b3138}
.form-row a{color:var(--red);font-weight:600}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 26px;box-shadow:0 1px 3px rgba(16,24,40,.05)}
.fullmock .playc{width:62px;height:62px;border-radius:50%;background:#fff;color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:auto}
.fullmock .fm-foot{background:rgba(0,0,0,.22);border-radius:8px;padding:9px 14px;font-size:14.5px;width:100%}
.mod-card .mh{display:flex;align-items:center;gap:11px;margin-bottom:16px}
.mod-card .pct{text-align:right;font-size:16.5px;margin-bottom:6px}
.mod-card .det{font-size:15px;color:#2b3138;margin:12px 0 14px}
table.attempts{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.attempts th{background:#191c22;color:#fff;text-align:left;padding:15px 20px;font-size:16px}
.attempts td{padding:15px 20px;font-size:16px;border-top:1px solid #eef0f2}
.attempts tr.alt td{background:#eef0f3}
.attempts .view{color:var(--red);font-weight:700}
.table-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 26px}
.pkg-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px 30px 26px;text-align:center;position:relative;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(16,24,40,.05)}
.pkg-card h3{font-size:24px;margin:8px 0 10px}
.pkg-card ul{list-style:none;margin:0 0 26px;padding:0;text-align:left}
.pkg-card li{padding:7px 0 7px 22px;position:relative;font-size:16.5px;color:#23282f}
.pkg-card .btn{margin-top:auto;padding:13px;font-size:16.5px;border-radius:999px}
.tp-side{width:94px;flex:0 0 94px;background:linear-gradient(180deg,#15161d,#0b0c10);display:flex;flex-direction:column;align-items:center;padding:18px 10px;gap:8px;position:fixed;top:0;bottom:0;left:0;z-index:50}
.tp-ic{width:52px;height:52px;border-radius:12px;color:#9aa1ab;display:flex;align-items:center;justify-content:center}
.tp-ic.active{background:#23242c;color:var(--red)}
.tp-ic:hover{color:#fff}
.tp-head{background:#fff;border-bottom:1px solid var(--line);padding:16px 26px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tp-head .spacer{flex:1}
.timer-chip{background:var(--red);color:#fff;font-weight:700;font-size:17px;border-radius:9px;padding:11px 20px}
.passage-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px 30px;max-height:calc(100vh - 130px);overflow-y:auto}
.passage-card h2{font-size:23px;margin:0 0 18px}
.passage-card p{font-size:16.5px;line-height:1.65;color:#23282f;margin:0 0 16px}
.palette-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.palette button{border:0;border-radius:7px;background:#d4d7db;color:#23282f;font-size:14.5px;font-weight:600;padding:9px 0;cursor:pointer}
.palette button.done{background:#1e7d3c;color:#fff}
.palette button.marked{background:var(--red);color:#fff}
.palette button.current{background:#2f7fe0;color:#fff;outline:2px solid #2f7fe0;outline-offset:1px}
.q-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 26px}
.q-actions .btn{padding:11px 18px;font-size:14.5px}
.side-nav a{transition:background .2s ease,color .2s ease,transform .2s ease}
.side-nav a:hover{transform:translateX(4px)}
.btn{transition:background .2s ease,transform .2s ease}
.support-box{margin-top:14px}
.mq-group .dot{width:8px;height:8px;border-radius:50%;background:var(--red);flex:0 0 8px}
.stat b{font-size:37px;color:var(--red);display:block;line-height:1.1}
.stat span{color:var(--mut);font-size:15px}
.why-card .ic{width:46px;height:46px;border-radius:11px;background:var(--red-soft);color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.why-card h3{margin:0 0 8px;font-size:19.5px}
.why-card p{margin:0;color:#3f4750;font-size:15px;line-height:1.6}
.ach-card h4{margin:8px 0 4px;font-size:17.5px}
.ach-card p{margin:0;color:#aeb4bd;font-size:14px;line-height:1.5}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 26px}
.act-row .grow{flex:1;min-width:0}
.act-row .grow b{display:block;font-size:16px}
.act-row .grow span{color:var(--mut);font-size:13.5px}
.act-row .view{color:var(--red);font-weight:700;flex:0 0 auto}
.tip .ck{color:var(--green);flex:0 0 20px;margin-top:1px}
.fullmock-banner h3{margin:0;font-size:23px}
.fullmock-banner p{margin:4px 0 0;color:#ffffff;font-size:15px}
.fullmock-banner .spacer{flex:1}
table.cmp{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:640px}
.cmp th,.cmp td{padding:14px 18px;font-size:15.5px;text-align:center;border-top:1px solid #eef0f2}
.cmp th{background:#191c22;color:#fff;text-align:center}
.cmp th:first-child,.cmp td:first-child{text-align:left;font-weight:600}
.cmp td .ck{color:var(--green)}
.cmp td .no{color:#b7bec6;font-weight:700}
.cmp td.hl{background:#fdf3f2;font-weight:700}
.video-ph .playb{width:74px;height:74px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;color:#fff}
.video-ph h3{margin:0;font-size:21px}
.video-ph p{margin:0;color:#aeb4bd;font-size:14.5px}
.video-ph .dur{position:absolute;bottom:14px;right:16px;background:rgba(255,255,255,.16);border-radius:7px;padding:4px 11px;font-size:13.5px;font-weight:700}
.learn-item .ck{color:var(--green);flex:0 0 20px;margin-top:1px}
.curr-row .n{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--red-soft);color:var(--red);font-weight:800;display:flex;align-items:center;justify-content:center;font-size:14.5px}
.curr-row .grow{flex:1;min-width:0}
.curr-row .dur{color:var(--mut);font-size:14px}
.curr-row .pv{color:var(--green);font-weight:700;font-size:13.5px}
.enrol-card ul{list-style:none;margin:16px 0 0;padding:0}
.enrol-card li{display:flex;gap:10px;padding:6px 0;font-size:15px;color:#2b3138}
.enrol-card li .ck{color:var(--green);flex:0 0 20px}
.inst h4{margin:0 0 3px;font-size:18px}
.inst p{margin:0;color:var(--mut);font-size:14px;line-height:1.5}
.legend span{display:inline-flex;align-items:center;gap:7px}
.legend i{width:14px;height:14px;border-radius:4px;display:inline-block}
.legend .lg-done{background:#1e7d3c}
.legend .lg-marked{background:var(--red)}
.legend .lg-cur{background:#2f7fe0}
.legend .lg-todo{background:#d4d7db}
.login-feats .ck{color:#fff;flex:0 0 22px}
.fchip.on{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}
.tabs button{background:none;border:0;font:inherit;cursor:pointer;font-size:17px;color:#6a727d;padding:0 2px 12px}
.tabs button.on{color:var(--ink);font-weight:700;border-bottom:3px solid var(--red);margin-bottom:-1px}
.cat-card{background:#fff;border:1px solid var(--line);border-top:5px solid var(--red);border-radius:14px;padding:24px 26px;display:block}
.cat-card .cat-tag{font-size:12.5px;font-weight:800;letter-spacing:2px;color:var(--red)}
.cat-card h3{margin:6px 0 8px;font-size:22px}
.cat-card p{margin:0 0 16px;color:#3f4750;font-size:15px;line-height:1.55}
.cat-card .cat-go{color:var(--red);font-weight:700;font-size:15px;display:inline-flex;gap:8px;align-items:center}
@media (max-width:860px){
 .sidebar{transform:translateX(-105%);transition:transform .25s ease;box-shadow:0 0 40px rgba(0,0,0,.35)}
 #navtoggle:checked ~ .app .sidebar{transform:none}
 #navtoggle:checked ~ .scrim{display:block;position:fixed;inset:0;background:rgba(10,10,14,.5);z-index:85}
 .main{margin-left:0;padding:18px 16px 30px}
 .mobilebar{display:flex}
 .topbar{flex-wrap:wrap}
 .searchbox{width:100%}
 h1.page-title{font-size:27px}
 .hero{padding:30px 24px}
 .hero h1{font-size:31px}
 .mock-grid{grid-template-columns:1fr}
 .course-grid{grid-template-columns:1fr}
 .dash-cards{grid-template-columns:1fr}
 .pkg-grid{grid-template-columns:1fr}
 .login-wrap{flex-direction:column}
 .login-left{padding:34px 24px}
 .login-left h1{font-size:29px}
 .login-right{padding:20px 18px 34px}
 .tp-side{display:none}
 .tp-main{margin-left:0}
 .tp-body{grid-template-columns:1fr;padding:16px}
 .passage-card{max-height:none}
 .band-flex{flex-direction:column}
 .steps{grid-template-columns:1fr}
}
h1.page-title{line-height:1.12;letter-spacing:-.02em}
.section-title{letter-spacing:-.01em;line-height:1.2;margin-top:38px}
.page-sub{line-height:1.55}
.sidebar{padding:26px 18px 20px}
.brandplate{padding:10px 12px;box-shadow:0 4px 14px rgba(0,0,0,.25);margin-bottom:24px}
.side-nav{gap:6px}
.side-nav a{padding:12px 14px;border-radius:11px;transition:background .18s ease,color .18s ease}
.side-nav a.active{box-shadow:0 8px 18px -8px rgba(226,35,26,.55)}
.side-foot{border-top:1px solid #23242c;padding-top:16px}
.side-user{background:#17181f;border:1px solid #23242c;border-radius:12px;padding:10px 12px}
.logout-btn{margin-top:10px;border-radius:11px}
.card,.panel,.dash-card,.table-card,.palette-card,.q-card,.passage-card{border-color:#e3e7ec;box-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 26px -20px rgba(16,24,40,.28)}
.panel,.dash-card,.table-card{border-radius:16px}
.mock-card,.course-card,.prac-card,.tense-card,.fm-card,.pkg-card,.hub-card,.hub-big,.module-card,.cat-card{border-radius:16px}
.btn{border-radius:10px;letter-spacing:.1px;transition:background .15s ease,box-shadow .15s ease}
.btn-red{box-shadow:0 8px 16px -10px rgba(226,35,26,.7)}
.btn-dark{box-shadow:0 8px 16px -12px rgba(16,24,40,.6)}
.tagchip{border-radius:999px}
.tagchip.on{box-shadow:inset 0 0 0 1px #c9ced6}
.badge{letter-spacing:.4px}
.progress{height:10px;background:#e8ebee}
.progress i{transition:width .8s ease}
.attempts th{background:#14161c;font-size:13.5px;letter-spacing:.6px;text-transform:uppercase;padding:14px 20px}
.attempts td{padding:14px 20px}
.attempts tr:hover td{background:#f6f8fa}
.field input:focus,.finput:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(226,35,26,.12);outline:0}
.tp-side{padding-top:20px}
.tp-ic{border-radius:13px;transition:background .15s ease,color .15s ease}
.tp-ic.active{box-shadow:inset 0 0 0 1px #3a3b46}
.tp-head{padding:18px 26px}
.timer-chip{border-radius:10px;box-shadow:0 8px 16px -10px rgba(226,35,26,.7)}
.palette button{border-radius:8px;transition:transform .12s ease,background .12s ease}
.palette-card,.q-card,.passage-card{border-radius:14px}
.stat b{font-variant-numeric:tabular-nums}
.footer-strip{border-radius:14px}
@media (max-width:860px){
 .btn{min-height:0;padding:10px 18px;font-size:14.5px;line-height:1.25;border-radius:10px;gap:10px}
 .mock-card .btn,.pkg-card .btn{padding:10px 18px;font-size:14.5px;border-radius:10px}
 .mod-card .btn{min-height:40px;padding:9px 10px;font-size:13.5px;border-radius:10px}
 .module-card .btn{padding:9px 14px;font-size:13.5px;border-radius:10px}
 .enrol-card .btn{padding-top:10px!important;padding-bottom:10px!important}
 .login-wrap .btn{padding:10px 18px!important;font-size:14.5px!important}
 .login-wrap a[style*="padding:13px"]{padding-top:10px!important;padding-bottom:10px!important;font-size:14.5px!important;line-height:1.25!important}
 .login-wrap a span[style*="font-size:20px"]{font-size:17px!important;line-height:1!important}
 .timer-chip{padding:8px 14px;font-size:15.5px}
 .hub-actions{gap:10px}
 .hub-actions .btn{flex:1 1 0;padding:10px 6px;font-size:13.5px;white-space:nowrap}
 .q-actions{gap:10px}
 .q-actions .btn{flex:1 1 40%;padding:10px 8px;font-size:13.5px}
 .dlg-actions .btn{flex:1 1 0}
 .ob-nav{gap:10px}
 .ob-nav .btn{flex:1 1 0}
 .tagchip{min-height:0;padding:8px 14px;font-size:13.5px}
 .tabs a,.tabs button{min-height:36px;padding-bottom:10px}
 .palette button{width:38px;justify-self:center;min-width:38px;min-height:38px;height:38px;padding:0;display:flex;align-items:center;justify-content:center;font-size:14px}
 .pp-nums button{width:38px;height:38px;min-width:38px;min-height:38px}
 .zbtn{min-height:40px;height:40px;padding:0 12px;font-size:14px}
 .view{min-height:36px}
 .side-nav a{min-height:44px;padding-top:9px;padding-bottom:9px}
 .logout-btn{padding-top:9px;padding-bottom:9px;font-size:14.5px}
 .burger{width:42px;height:42px}
 .main{padding-left:16px;padding-right:16px}
 .course-grid,.hub-grid,.prac-grid,.mock-grid,.pkg-grid,.mod-grid,.dash-cards,.stats,.cat-grid,.why-grid,.feat-grid{gap:12px}
 .hub-card,.prac-card{padding:16px}
 .pkg-card{padding:20px 16px 16px}
 .dash-card{padding:16px}
 .panel{padding:16px}
 .mock-card{padding:16px}
 .mod-card{padding:14px}
 .course-body{padding:16px}
 .palette-card{padding:16px}
 .course-body h3{margin:0 0 8px}
 .cdesc{line-height:1.5;margin:0 0 10px}
 .course-specs{gap:8px 12px;margin-bottom:12px}
 .course-specs span{gap:8px}
 .hub-top{align-items:center;margin-bottom:8px}
 .hub-meta2{margin-bottom:10px}
 .hub-attempted{margin-bottom:12px;line-height:1.5}
 .badge,.hub-badge{font-size:12.5px;padding:4px 10px;line-height:1.25}
 .prac-top{align-items:center;margin-bottom:8px}
 .prac-meta{margin-bottom:8px}
 .prac-best{margin-bottom:10px}
 .prac-card .progress{margin-bottom:12px}
 .mock-card .icon-tile{width:52px;height:52px;flex-basis:52px}
 .pkg-card h3{margin:6px 0 8px}
 .pkg-price{margin-bottom:14px}
 .pkg-card ul{margin-bottom:16px}
 .pkg-card li{padding-top:6px;padding-bottom:6px}
 .mod-card .mh{gap:10px;margin-bottom:10px}
 .mod-card .det{margin:8px 0 10px}
 .act-row,.vl-row{gap:10px;padding-top:10px;padding-bottom:10px;align-items:center}
 .attempts td,.attempts th{padding:12px 14px;vertical-align:middle}
 .table-card td,.table-card th{vertical-align:middle}
 .cd-unit{padding:8px 2px}
 .back-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--red);font-size:14.5px;text-decoration:none;padding:12px 0 4px}
 .tp-main>.back-link{padding:12px 16px 0}
 .login-label{display:block;font-size:13.5px;font-weight:600;color:#2b3138;margin:0 0 6px;text-align:left}
}
/* ===== LOGIN FIT + SWITCH ANIMATION ROUND ===== */
/* The whole login page fits the viewport height on desktop: no scrolling, nothing hidden */
@media (min-width:861px){
 .login-wrap{height:100vh;height:100dvh}
}
@media (min-width:861px) and (max-height:940px){
 .login-left{padding:38px 40px}
 .login-left .brandplate{margin-bottom:24px}
 .login-left .brandplate img{width:238px}
 .login-left h1{font-size:35px}
 .login-feats{margin-top:24px}
 .login-feats li{padding:6px 0}
 .login-right{padding:20px 40px}
 .auth-tabs{margin-bottom:24px}
 .login-form h2{font-size:30px}
 .login-form .sub{margin-bottom:20px}
 .field{margin-bottom:15px}
 .field input{padding:13px 16px}
 .form-row{margin-bottom:18px}
 .or-row{margin:19px 0 15px}
 .social-row{margin-bottom:20px}
}
@media (min-width:861px) and (max-height:800px){
 .login-left{padding:26px 38px}
 .login-left .brandplate{padding:10px;margin-bottom:18px}
 .login-left .brandplate img{width:205px}
 .login-left h1{font-size:31px}
 .login-left p{font-size:17px}
 .login-feats{margin-top:18px}
 .login-feats li{padding:5px 0;font-size:15.5px}
 .login-right{padding:14px 38px}
 .lang-chip{padding:7px 13px}
 .auth-tabs{margin-bottom:18px}
 .auth-tabs a{font-size:18px;padding-bottom:10px}
 .login-form h2{font-size:27px}
 .login-form .sub{font-size:15.5px;margin-bottom:15px}
 .field{margin-bottom:12px}
 .field input{padding:12px 15px}
 .form-row{margin:2px 0 15px;font-size:14.5px}
 .login-form .btn-block{padding-top:12px!important;padding-bottom:12px!important;font-size:16px!important}
 #google-btn{margin-top:14px!important}
 .or-row{margin:15px 0 12px}
 .social-btn{width:54px;height:47px}
 .social-row{margin-bottom:16px}
 .switch-line{font-size:15px}
}
@media (min-width:861px) and (max-height:730px){
 .login-left{padding:18px 36px}
 .login-left .brandplate{padding:8px;margin-bottom:13px}
 .login-left .brandplate img{width:172px}
 .login-left h1{font-size:27px;margin-bottom:10px}
 .login-left p{font-size:16px}
 .login-feats{margin-top:13px}
 .login-feats li{padding:4px 0;font-size:14.5px}
 .login-right{padding:10px 36px}
 .auth-tabs{margin-bottom:13px}
 .auth-tabs a{padding-bottom:8px}
 .login-form h2{font-size:24px;margin-bottom:6px}
 .login-form .sub{font-size:15px;margin-bottom:11px}
 .field{margin-bottom:9px}
 .field input{padding:10px 14px;font-size:15px}
 .form-row{margin:0 0 11px}
 .login-form .btn-block{padding-top:11px!important;padding-bottom:11px!important}
 #google-btn{margin-top:11px!important;padding-top:11px!important;padding-bottom:11px!important}
 .or-row{margin:11px 0 9px;font-size:14px}
 .social-btn{width:50px;height:42px;font-size:19px}
 .social-row{margin-bottom:11px}
 .switch-line{font-size:14.5px}
}
/* Stacked layout: brand block compacted so the form starts within the first screenful */
@media (max-width:860px){
 .login-left{padding:26px 24px}
 .login-feats{margin-top:20px}
 .login-feats li{padding:5px 0}
}
/* ===== LOGIN DEEP HEIGHT TIERS: real laptop windows often give only 620-690px of height ===== */
@media (min-width:861px) and (max-height:690px){
 .login-left{padding:14px 34px}
 .login-left .brandplate{padding:7px;margin-bottom:11px}
 .login-left .brandplate img{width:158px}
 .login-left h1{font-size:25px;margin-bottom:8px}
 .login-left p{font-size:15.5px}
 .login-feats{margin-top:11px}
 .login-feats li{padding:3px 0;font-size:14px}
 .login-right{padding:8px 34px}
 .lang-chip{padding:6px 12px}
 .auth-tabs{margin-bottom:10px}
 .auth-tabs a{padding-bottom:7px}
 .login-form h2{font-size:23px;margin-bottom:5px}
 .login-form .sub{font-size:14.5px;margin-bottom:9px}
 .field{margin-bottom:8px}
 .field input{padding:9px 13px}
 .form-row{margin:0 0 9px;font-size:14px}
 .login-form .btn-block{padding-top:10px!important;padding-bottom:10px!important}
 #google-btn{margin-top:9px!important;padding-top:10px!important;padding-bottom:10px!important}
 .or-row{margin:9px 0 8px;font-size:14px}
 .social-btn{width:46px;height:38px;font-size:18px}
 .social-row{margin-bottom:9px}
 .switch-line{font-size:14px}
}
@media (min-width:861px) and (max-height:645px){
 .login-left{padding:10px 32px}
 .login-left .brandplate{padding:6px;margin-bottom:9px}
 .login-left .brandplate img{width:140px}
 .login-left h1{font-size:23px;margin-bottom:7px}
 .login-left p{font-size:15px}
 .login-feats{margin-top:9px}
 .login-feats li{padding:2px 0;font-size:13.5px}
 .login-right{padding:6px 32px}
 .auth-tabs{margin-bottom:8px}
 .auth-tabs a{font-size:17px;padding-bottom:6px}
 .login-form h2{font-size:22px;margin-bottom:4px}
 .login-form .sub{font-size:14px;margin-bottom:8px}
 .field{margin-bottom:7px}
 .field input{padding:8px 13px;font-size:14.5px}
 .form-row{margin:0 0 8px}
 .login-form .btn-block{padding-top:9px!important;padding-bottom:9px!important;font-size:16px!important}
 #google-btn{margin-top:8px!important;padding-top:9px!important;padding-bottom:9px!important;font-size:15px}
 .or-row{margin:8px 0 7px}
 .social-btn{width:44px;height:36px;font-size:17px}
 .social-row{margin-bottom:8px}
}
/* ===== FORM SWITCH: sliding track. Both forms sit side by side and slide together;
   the stage clips the inactive form and its height animates to the active form.
   Never gated on prefers-reduced-motion (standing owner rule). ===== */
.auth-tabs{position:relative}
.auth-tabs a{border-bottom:3px solid transparent;margin-bottom:0}
.auth-tabs a.on{border-bottom-color:transparent;margin-bottom:0}
.auth-ind{position:absolute;bottom:-1px;left:0;width:0;height:3px;background:var(--ink);transition:left .5s cubic-bezier(.22,.61,.36,1),width .5s cubic-bezier(.22,.61,.36,1)}
.auth-stage{overflow:hidden;transition:height .5s cubic-bezier(.22,.61,.36,1)}
.auth-track{display:flex;width:200%;align-items:flex-start;transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.auth-pane{flex:0 0 50%;width:50%;min-width:0}
.auth-track.no-anim,.auth-stage.no-anim,.auth-ind.no-anim{transition:none!important}
/* ===== LOGIN QUALITY REPAIR ROUND =====
   The old tiers won fit by shrinking the logo and the headings, which ruined the design
   (the brand plate stayed 392px wide while the logo shrank inside it).
   Repair: the plate HUGS the logo again at every desktop height; logo and headings stay
   at (or within 2px of) their original sizes at heights of 720px and above; fit is won
   from spacing only, down to a floor at the 730px tier; below 690px the WHOLE composition
   scales down uniformly (zoom steps with width/height compensation) so every element
   shrinks together and the proportions never distort. */
@media (min-width:861px){
 /* the plate wraps the logo: its width is the logo width plus even padding, never a slab */
 .login-left .brandplate{width:auto;max-width:none;padding:19px 25px;margin-bottom:26px}
}
@media (min-width:861px) and (max-height:940px){
 .login-left{padding:34px 40px}
 .login-left .brandplate{margin-bottom:24px}
 .login-left .brandplate img{width:246px}
 .login-left h1{font-size:38px}
 .login-feats{margin-top:22px}
 .login-feats li{padding:6px 0}
 .login-right{padding:18px 40px}
 .auth-tabs{margin-bottom:24px}
 .login-form h2{font-size:32px}
 .login-form .sub{margin-bottom:20px}
 .field{margin-bottom:14px}
 .field input{padding:13px 16px}
 .form-row{margin-bottom:16px}
 #google-btn{margin-top:14px!important}
 .or-row{margin:18px 0 13px}
 .social-btn{width:54px;height:48px}
 .social-row{margin-bottom:18px}
}
@media (min-width:861px) and (max-height:800px){
 .login-left{padding:26px 38px}
 .login-left .brandplate{margin-bottom:20px}
 .login-left .brandplate img{width:238px}
 .login-left h1{font-size:38px}
 .login-left p{font-size:18px}
 .login-feats{margin-top:18px}
 .login-feats li{padding:5px 0;font-size:16px}
 .login-right{padding:14px 38px}
 .lang-chip{padding:7px 13px}
 .auth-tabs{margin-bottom:18px}
 .auth-tabs a{font-size:20px;padding-bottom:11px}
 .login-form h2{font-size:32px}
 .login-form .sub{font-size:16.5px;margin-bottom:16px}
 .field{margin-bottom:12px}
 .field input{padding:12px 15px}
 .form-row{margin:2px 0 14px;font-size:15px}
 .login-form .btn-block{padding-top:13px!important;padding-bottom:13px!important;font-size:17px!important}
 #google-btn{margin-top:12px!important}
 .or-row{margin:15px 0 11px}
 .social-btn{width:52px;height:46px}
 .social-row{margin-bottom:15px}
 .switch-line{font-size:16px}
}
/* spacing floor: from here down the layout itself does not shrink any further */
@media (min-width:861px) and (max-height:730px){
 .login-left{padding:20px 36px}
 .login-left .brandplate{margin-bottom:18px}
 .login-left .brandplate img{width:230px}
 .login-left h1{font-size:36px;margin-bottom:12px}
 .login-left p{font-size:17px}
 .login-feats{margin-top:14px}
 .login-feats li{padding:4px 0;font-size:15.5px}
 .login-right{padding:12px 36px}
 .lang-chip{padding:7px 13px}
 .auth-tabs{margin-bottom:14px}
 .auth-tabs a{font-size:20px;padding-bottom:10px}
 .login-form h2{font-size:30px;margin-bottom:6px}
 .login-form .sub{font-size:16px;margin-bottom:12px}
 .field{margin-bottom:10px}
 .field input{padding:11px 14px;font-size:16px}
 .form-row{margin:0 0 12px;font-size:14.5px}
 .login-form .btn-block{padding-top:11px!important;padding-bottom:11px!important;font-size:17px!important}
 #google-btn{margin-top:12px!important;padding-top:11px!important;padding-bottom:11px!important;font-size:16px}
 .or-row{margin:12px 0 9px;font-size:14px}
 .social-btn{width:50px;height:46px;font-size:20px}
 .social-row{margin-bottom:12px}
 .switch-line{font-size:15px}
}
/* deepest heights: one uniform scale for the whole composition, proportions untouched */
@media (min-width:861px) and (max-height:690px){
 .login-wrap{zoom:.95;width:100%;height:calc(100dvh/.95)}
}
@media (min-width:861px) and (max-height:645px){
 .login-wrap{zoom:.9;width:100%;height:calc(100dvh/.9)}
}
/* LOGIN L-ROUND (L1-L7): SVG social marks, password eye toggles, custom Remember me checkbox, brand panel footer */
#google-btn svg{flex:0 0 auto}
.pass-wrap{position:relative;display:block}
.pass-wrap input{padding-right:48px}
.eye-btn{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:transparent;color:#5f6b76;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:0}
.eye-btn svg{width:20px;height:20px}
.eye-btn .ic-off{display:none}
.eye-btn.show .ic-on{display:none}
.eye-btn.show .ic-off{display:block}
.eye-btn:hover{color:#14181d;background:#f1f3f5}
.remember{position:relative;cursor:pointer;min-height:36px}
.remember input{position:absolute;left:0;top:50%;transform:translateY(-50%);width:20px;height:20px;opacity:0;margin:0;cursor:pointer}
.remember-box{width:20px;height:20px;border:1.5px solid #c9ced6;border-radius:6px;background:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.remember-box svg{width:13px;height:13px;opacity:0}
.remember input:checked + .remember-box{background:#E2231A;border-color:#E2231A}
.remember input:checked + .remember-box svg{opacity:1}
.remember input:focus-visible + .remember-box{outline:2px solid #14181d;outline-offset:2px}
.login-left .brandplate{margin-top:auto}
.panel-foot{margin-top:auto;padding-top:16px;font-size:14px}
.panel-foot a{color:#fff;opacity:.85;text-decoration:none}
.panel-foot a:hover{opacity:1;text-decoration:underline}
/* Audit fix round (2026-11-17): password reset state inside the login plate;
   brand panel trims on short phone screens so the form heading shows in the first screen. */
.reset-note{margin:0 0 14px;font-size:14.5px;line-height:1.55;color:#177245;font-weight:600}
.reset-back{margin:16px 0 0;text-align:center;font-size:15px}
.reset-back a{color:var(--red);font-weight:700}
@media (max-width:860px) and (max-height:900px){
 .login-left{padding:22px 18px}
 .login-left .brandplate{margin-bottom:16px}
 .login-left .brandplate img{width:150px}
 .login-left h1{font-size:24px;margin-bottom:8px}
 .login-left p{font-size:15.5px}
 .login-feats{margin-top:14px}
 .login-feats li{padding:4px 0;font-size:15px}
 .login-right{padding-top:14px}
}
@media (max-width:860px) and (max-height:640px){
 .login-left{padding:14px 16px}
 .login-left .brandplate{padding:8px;margin-bottom:10px}
 .login-left .brandplate img{width:104px}
 .login-left h1{font-size:20px;margin-bottom:5px}
 .login-left p{font-size:14px}
 .login-feats{display:none}
 .panel-foot{padding-top:8px}
 .login-right{padding-top:10px}
}
.auth-error{background:#fdeceb;color:#b30f14;border:1px solid #f5c6c2;border-radius:10px;padding:11px 14px;font-size:14.5px;font-weight:600;margin:0 0 14px;text-align:left}
