:root{--ink:#101828;--muted:#667085;--line:#dfe4ea;--soft:#f7f9fc;--brand:#284f7a;--paper:#fff;--success:#067647}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}body{min-height:100dvh}.auth-page{min-height:100dvh;display:flex;flex-direction:column;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}.auth-wrap{width:min(520px,calc(100% - 40px));margin:auto;display:grid;gap:34px;padding:42px 0 28px}.brand-block{display:flex;align-items:center;justify-content:center;gap:14px;text-align:left}.brand-icon{width:64px;height:64px;border-radius:20px;border:1px solid var(--line);display:grid;place-items:center;background:#fff;box-shadow:0 12px 30px rgba(16,24,40,.06)}.brand-icon img{width:42px;height:42px}.brand-copy h1{margin:0;font-size:24px;line-height:1.15;font-weight:650;letter-spacing:-.03em}.brand-copy p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.4}.auth-form{display:grid;gap:14px}.form-head{margin-bottom:4px}.form-head span{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#7c8798}.form-head h2{margin:7px 0 5px;font-size:34px;line-height:1.1;font-weight:620;letter-spacing:-.045em}.form-head p{margin:0;color:var(--muted);font-size:15px}.field-label{font-size:13px;font-weight:600;color:#344054;margin-top:4px}.field-control{height:56px;border:1px solid #cfd6df;border-radius:14px;background:#fff;display:flex;align-items:center;gap:11px;padding:0 14px;transition:.18s}.field-control:focus-within{border-color:#8da1b7;box-shadow:0 0 0 4px rgba(40,79,122,.08)}.field-control>svg{width:21px;height:21px;color:#98a2b3;flex:0 0 auto}.field-control input{border:0;outline:0;min-width:0;flex:1;height:100%;font-size:16px;background:transparent;color:var(--ink)}.field-control input::placeholder{color:#98a2b3}.eye-button{width:40px;height:40px;border:0;background:transparent;color:#7c8798;display:grid;place-items:center;cursor:pointer;border-radius:10px}.eye-button:hover{background:#f4f6f8}.eye-button svg{width:21px;height:21px}.eye-button .eye-closed{display:none}.eye-button.revealed .eye-open{display:none}.eye-button.revealed .eye-closed{display:block}.sign-in-button{height:52px;border-radius:14px;border:1px solid var(--brand);background:var(--brand);color:#fff;font-size:15px;font-weight:650;cursor:pointer;margin-top:5px}.sign-in-button:hover{background:#203f63}.demo-access{display:grid;grid-template-columns:auto 1fr;gap:3px 14px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:var(--soft);font-size:12px}.demo-access span{grid-row:1/3;color:var(--muted)}.demo-access strong{font-weight:600}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.contact-grid a{min-width:0;display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff}.contact-icon{width:38px;height:38px;border-radius:11px;background:var(--soft);display:grid;place-items:center;flex:0 0 auto}.contact-icon svg{width:20px;height:20px}.contact-grid a>span:last-child{min-width:0;display:grid;gap:2px}.contact-grid small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;font-weight:700}.contact-grid b{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.error-box{padding:12px 14px;border:1px solid #f6d5d7;border-radius:12px;background:#fff6f6;color:#b42318;font-size:13px}.auth-page footer{text-align:center;padding:18px 20px 24px;color:#98a2b3;font-size:11px}.login-status{position:fixed;inset:0;background:#fff;z-index:9999;display:none;place-items:center;padding:24px;text-align:center}.login-status.show{display:grid}.status-content{display:grid;justify-items:center;gap:13px}.status-logo{width:72px;height:72px;border-radius:22px;border:1px solid var(--line);display:grid;place-items:center}.status-logo img{width:44px}.status-spinner{width:30px;height:30px;border:3px solid #e7ebef;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}.status-success{width:44px;height:44px;border-radius:50%;display:none;place-items:center;background:#ecfdf3;color:var(--success);font-size:23px}.status-content h3{margin:2px 0 0;font-size:19px;font-weight:620}.status-content p{margin:0;color:var(--muted);font-size:13px}.login-status.success .status-spinner,.login-status.success .status-logo{display:none}.login-status.success .status-success{display:grid}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:620px){.auth-wrap{width:min(100% - 32px,460px);padding:26px 0 22px;gap:28px}.brand-block{display:grid;justify-items:center;text-align:center;gap:10px}.brand-icon{width:68px;height:68px}.brand-copy h1{font-size:22px}.brand-copy p{font-size:12px;max-width:300px}.form-head{text-align:center}.form-head h2{font-size:30px}.field-control{height:54px}.contact-grid{grid-template-columns:1fr 1fr;gap:9px}.contact-grid a{padding:10px}.contact-icon{width:34px;height:34px}.contact-grid b{font-size:10.5px}.auth-page footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}@media(max-width:380px){.contact-grid{grid-template-columns:1fr}.auth-wrap{width:calc(100% - 24px)}}

/* v17 clean institution branding */
.brand-icon{width:92px;height:92px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:visible}.brand-icon img{width:88px!important;height:88px!important;object-fit:contain;display:block}.brand-block{gap:18px}.contact-grid{grid-template-columns:1.25fr .9fr}.contact-card,.contact-grid a{min-width:0;display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff}.school-card{cursor:default}.contact-card>span:last-child{min-width:0;display:grid;gap:2px}.contact-card small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;font-weight:700}.contact-card b{font-size:12px;font-weight:600;white-space:normal;line-height:1.35}.powered-card{transition:.18s ease}.powered-card:hover{border-color:#aab8c8;background:#f8fafc;transform:translateY(-1px)}.auth-page footer a{color:#667085;font-weight:650}.auth-page footer a:hover{text-decoration:underline}.status-logo{border:0!important;border-radius:0!important;background:transparent!important}.status-logo img{width:68px!important;height:68px!important;object-fit:contain}@media(max-width:620px){.brand-icon{width:98px;height:98px}.brand-icon img{width:94px!important;height:94px!important}.contact-grid{grid-template-columns:1fr}.brand-block{gap:12px}}

/* V26 final logo sizing */
.brand-icon{width:70px!important;height:70px!important;min-width:70px!important}
.brand-icon img{width:66px!important;height:66px!important;max-width:66px!important;object-fit:contain!important}
.status-logo{width:56px!important;height:56px!important}
.status-logo img{width:52px!important;height:52px!important;max-width:52px!important}
@media(max-width:620px){.brand-icon{width:66px!important;height:66px!important;min-width:66px!important}.brand-icon img{width:62px!important;height:62px!important}.status-logo{width:52px!important;height:52px!important}.status-logo img{width:48px!important;height:48px!important}}

/* HJoy School PWA installation */
.install-login-button{width:100%;min-height:52px;margin-top:12px;border:1px solid rgba(15,63,107,.18);border-radius:16px;background:#fff;color:#0f3f6b;font:inherit;font-weight:750;cursor:pointer}.install-login-button:hover{background:#f4f8fc}.install-login-button[hidden],.ios-install-help[hidden]{display:none!important}.ios-install-help{margin:10px 0 0;padding:12px 14px;border-radius:14px;background:#f3f7fb;color:#475569;font-size:14px;line-height:1.45;text-align:center}@media(display-mode:standalone){.install-login-button,.ios-install-help{display:none!important}}

/* V36 clean login */
.auth-wrap{max-width:460px;gap:24px}.brand-copy p,.contact-grid,.demo-access{display:none!important}.auth-form{gap:13px}.form-head{text-align:center;margin:0 0 6px}.form-head h2{font-size:28px;margin:0}.auth-page footer{font-size:11px}.brand-block{display:grid;justify-items:center;text-align:center;gap:10px}.brand-copy h1{font-size:22px}

/* Portrait-only mobile fallback for browsers that ignore the PWA orientation lock. */
.portrait-orientation-guard{display:none;position:fixed;inset:0;z-index:30000;place-items:center;padding:24px;background:#f7fafc;color:#173f59;text-align:center}.portrait-orientation-guard>div{width:min(92vw,380px);padding:28px 24px;border:1px solid #dce6ec;border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(18,48,70,.18)}.portrait-orientation-guard span{width:68px;height:68px;margin:0 auto 16px;border-radius:20px;background:#edf5f9;display:grid;place-items:center;font-size:34px}.portrait-orientation-guard strong{display:block;font-size:21px}.portrait-orientation-guard p{margin:8px 0 0;color:#657786;line-height:1.5;font-size:13px}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){.portrait-orientation-guard{display:grid!important}body{overflow:hidden!important}}

/* V89 — premium secure sign-in */
:root{--v89-navy:#0b2b40;--v89-blue:#176b98;--v89-line:#d5e4ec;--v89-muted:#718493;--v89-ink:#123247}
html,body{background:#eef5f8!important}.auth-page{position:relative;overflow:hidden;background:radial-gradient(circle at 13% 12%,rgba(37,145,184,.15),transparent 25%),radial-gradient(circle at 90% 86%,rgba(16,79,111,.09),transparent 28%),linear-gradient(135deg,#f9fcfd,#edf5f8)!important}.auth-page:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(20,76,105,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(20,76,105,.025) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 75%)}.auth-page:after{content:"";position:absolute;right:-160px;top:-180px;width:420px;height:420px;border-radius:50%;border:1px solid rgba(29,117,155,.12);box-shadow:0 0 0 56px rgba(29,117,155,.025),0 0 0 118px rgba(29,117,155,.016)}.auth-wrap{position:relative;z-index:1;width:min(460px,calc(100% - 32px))!important;gap:22px!important;padding:36px!important;margin:auto!important;border:1px solid rgba(214,229,237,.95);border-radius:28px;background:rgba(255,255,255,.90);backdrop-filter:blur(22px) saturate(140%);box-shadow:0 32px 90px rgba(9,43,64,.16)}.brand-block{padding-bottom:19px;border-bottom:1px solid #e2ecf1}.brand-icon{width:72px!important;height:72px!important;min-width:72px!important;border-radius:21px!important;background:linear-gradient(145deg,#fff,#f2f7fa)!important;border:1px solid #d8e6ed!important;box-shadow:0 14px 34px rgba(14,56,80,.10)!important}.brand-icon img{width:57px!important;height:57px!important}.brand-copy h1{font-size:20px!important;font-weight:760!important;color:#15364b!important}.form-head h2{font-size:30px!important;font-weight:760!important;color:#102f43!important;letter-spacing:-.045em!important}.form-head:after{content:"Secure institution access";display:block;margin-top:6px;color:#7b8e9b;font-size:11px}.field-label{font-size:11px!important;color:#536d7c!important;font-weight:750!important}.field-control{height:54px!important;border:1px solid #cfdee6!important;border-radius:15px!important;background:#f9fcfd!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important}.field-control:focus-within{border-color:#5da4c1!important;background:#fff!important;box-shadow:0 0 0 4px rgba(45,143,181,.11)!important}.field-control>svg{color:#668698!important}.field-control input{color:#15384e!important}.sign-in-button{height:52px!important;border-radius:15px!important;border:1px solid #125b80!important;background:linear-gradient(135deg,#0d354f,#176f98)!important;box-shadow:0 14px 28px rgba(18,91,128,.24)!important;font-weight:760!important;transition:transform .16s ease,box-shadow .16s ease!important}.sign-in-button:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(18,91,128,.29)!important}.install-login-button{border-radius:15px!important}.error-box{border-radius:14px!important}.auth-page footer{position:relative;z-index:1;color:#7e919e!important}.login-status{background:rgba(246,251,253,.96)!important;backdrop-filter:blur(18px)!important}.status-content{padding:28px 34px;border:1px solid #d8e6ed;border-radius:24px;background:#fff;box-shadow:0 26px 80px rgba(10,43,63,.16)}.status-logo{width:62px!important;height:62px!important;border-radius:19px!important;background:#f4f9fb!important}.status-logo img{width:50px!important;height:50px!important}.status-spinner{width:34px!important;height:34px!important;border-color:#dce9ef!important;border-top-color:#176b98!important}
@media(max-width:620px){.auth-page{padding:14px}.auth-wrap{width:100%!important;padding:24px 19px!important;border-radius:23px!important}.brand-block{padding-bottom:15px}.form-head h2{font-size:27px!important}.auth-page footer{padding-top:12px!important}}

/* V92 production desktop split login — restrained, professional, single logo */
.portrait-orientation-guard{display:none!important}
.auth-page{background:#f4f7f9!important}
.auth-page:before,.auth-page:after{display:none!important}
.auth-shell{position:relative;z-index:1;width:min(1180px,calc(100% - 64px));min-height:680px;margin:auto;display:grid;grid-template-columns:1.08fr .92fr;border:1px solid #dce5ea;border-radius:30px;overflow:hidden;background:#fff;box-shadow:0 28px 80px rgba(18,48,65,.12)}
.auth-showcase{display:flex;align-items:flex-end;padding:58px;background:linear-gradient(155deg,#0d3147,#174f6d);color:#fff;position:relative;overflow:hidden}
.auth-showcase:after{content:"";position:absolute;inset:auto -120px -170px auto;width:430px;height:430px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 68px rgba(255,255,255,.025),0 0 0 138px rgba(255,255,255,.018)}
.showcase-inner{position:relative;z-index:1;max-width:500px}.showcase-kicker{font-size:10px;font-weight:800;letter-spacing:.18em;color:#a9d4e5}.auth-showcase h2{margin:16px 0 14px;font-size:43px;line-height:1.08;letter-spacing:-.045em;font-weight:720}.auth-showcase p{margin:0;color:#c7dbe5;font-size:15px;line-height:1.7;max-width:450px}.showcase-points{display:grid;gap:10px;margin-top:28px}.showcase-points span{display:flex;align-items:center;gap:10px;font-size:12px;color:#e5f0f5}.showcase-points span:before{content:"✓";width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.11);display:grid;place-items:center;font-weight:800}
.auth-wrap{width:100%!important;max-width:none!important;margin:0!important;padding:64px 62px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;backdrop-filter:none!important;align-self:stretch;align-content:center}.brand-block{justify-content:flex-start!important;grid-template-columns:auto 1fr!important;text-align:left!important;border-bottom:0!important;padding-bottom:18px!important}.form-head{text-align:left!important}.form-head:after{content:"Use your authorised school account to continue"}.auth-page footer{position:absolute;bottom:14px;left:0;right:0}.status-content{min-width:280px}.status-spinner-advanced{position:relative;width:52px!important;height:52px!important;border:2px solid #dce8ee!important;border-top-color:#176b98!important;border-right-color:#176b98!important;box-shadow:0 0 0 8px #f0f6f9}.status-spinner-advanced span{position:absolute;inset:9px;border:2px solid transparent;border-bottom-color:#0d354f;border-left-color:#0d354f;border-radius:50%;animation:spin .55s linear infinite reverse}
@media(max-width:900px){.auth-shell{width:min(520px,calc(100% - 28px));min-height:auto;display:block;border-radius:25px}.auth-showcase{display:none}.auth-wrap{padding:30px 24px!important}.brand-block{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important}.form-head{text-align:center!important}.auth-page footer{position:relative;bottom:auto}}

/* V93 — refined, quiet, high-end responsive login */
.auth-page{padding:28px;background:#f3f6f8!important}
.auth-shell{width:min(1160px,100%);min-height:700px;grid-template-columns:minmax(420px,1.08fr) minmax(400px,.92fr);border-radius:28px;border:1px solid #dce4e9;box-shadow:0 30px 90px rgba(13,43,61,.12)}
.auth-showcase{padding:64px;background:linear-gradient(145deg,#0b2d43 0%,#124b68 100%)}
.auth-showcase:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(4,25,38,.28));pointer-events:none}
.auth-showcase:after{width:390px;height:390px;right:-155px;bottom:-185px;opacity:.65}
.showcase-inner{max-width:470px}.showcase-kicker{font-size:11px;letter-spacing:.2em}.auth-showcase h2{font-size:46px;max-width:440px}.auth-showcase p{font-size:16px}.showcase-points{grid-template-columns:1fr;gap:12px}.showcase-points span{font-size:13px}
.auth-wrap{padding:64px 68px!important;align-content:center}.brand-block{display:flex!important;gap:15px!important;margin-bottom:6px}.brand-icon{width:62px!important;height:62px!important;min-width:62px!important;border-radius:18px!important}.brand-icon img{width:50px!important;height:50px!important}.brand-copy h1{font-size:22px!important}.form-head h2{font-size:34px!important}.form-head:after{font-size:12px;margin-top:8px}.field-label{font-size:12px!important;margin-top:6px}.field-control{height:58px!important;border-radius:16px!important;background:#fbfcfd!important}.sign-in-button{height:56px!important;border-radius:16px!important}.auth-page footer{bottom:18px}
@media(max-width:900px){.auth-page{padding:0}.auth-shell{width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.auth-showcase{display:none}.auth-wrap{padding:30px 24px 26px!important}.brand-block{display:grid!important}.auth-page footer{position:relative;padding-bottom:18px}}
