/* Progga EMS login interface — scoped CSS, no framework and no JS layout calculations.
   Desktop measurements are from the supplied 1672 × 941 reference artwork.
   The --ref-px unit scales the design uniformly with available viewport space. */
:root { font-family: Arial, Helvetica, system-ui, sans-serif; color:#091943; background:#003e63; font-synthesis:none; }
*, *::before, *::after { box-sizing:border-box; }
html, body { margin:0; min-height:100%; }
body { overflow-x:hidden; }
button, input { font:inherit; }
button { cursor:pointer; }
a { color:inherit; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.login-page { position:relative; min-height:100svh; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 27% 65%,#126ea2 0%,#005081 34%,#00436c 61%,#023453 100%); }
.artboard { --ref-px: min(0.05980861vw,0.10626993vh); width:calc(1672 * var(--ref-px)); height:calc(941 * var(--ref-px)); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); isolation:isolate; }
.art-scene { position:absolute; inset:0; overflow:hidden; z-index:-1; background: radial-gradient(ellipse at 38% 73%, #0074ba 0%, #025589 28%, transparent 66%), linear-gradient(117deg, #01456c 0%, #003e68 54%,#003858 100%); }
.scene-light { position:absolute; z-index:1; inset:0; background:#eff4fd; clip-path:polygon(87.3% 0,100% 0,100% 100%,47.8% 100%,57.6% 78.5%,61.6% 27.3%,68.4% 13%); }
.campus-image { position:absolute; left:0; bottom:calc(-50 * var(--ref-px)); width:calc(1030 * var(--ref-px)); height:calc(520 * var(--ref-px)); background:url('assets/campus.jpg') left bottom / cover no-repeat; -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.35) 23%,#000 54%); mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.35) 23%,#000 54%); }
.campus-colorwash { position:absolute; left:0; bottom:0; width:calc(1020 * var(--ref-px)); height:calc(470 * var(--ref-px)); background:linear-gradient(90deg,rgba(0,50,91,.05),transparent 65%); pointer-events:none; }
.mobile-ribbon { display:none; }
.art-ribbons { position:absolute; z-index:3; inset:0; width:100%; height:100%; pointer-events:none; }
.top-foliage { position:absolute; z-index:4; top:0; left:0; width:calc(120 * var(--ref-px)); height:calc(105 * var(--ref-px)); background:url('assets/foliage.png') left top / calc(130 * var(--ref-px)) auto no-repeat; -webkit-mask-image:radial-gradient(ellipse at 0 0,#000 0%,#000 55%,transparent 94%); mask-image:radial-gradient(ellipse at 0 0,#000 0%,#000 55%,transparent 94%); }
.brand-section { position:absolute; top:calc(38 * var(--ref-px)); left:calc(142 * var(--ref-px)); color:white; }
.brand-lockup { display:block; width:calc(328 * var(--ref-px)); height:auto; }
.brand-rule { width:calc(87 * var(--ref-px)); height:calc(7 * var(--ref-px)); border-radius:20px; background:#fa0050; margin-top:calc(26 * var(--ref-px)); margin-bottom:calc(23 * var(--ref-px)); }
.desktop-intro h1 { margin:0; color:#fff; font-size:calc(82 * var(--ref-px)); line-height:.82; font-weight:800; letter-spacing:calc(-1.8 * var(--ref-px)); }
.desktop-intro h1 span { display:block; color:#ff6386; margin-top:calc(1 * var(--ref-px)); }
.desktop-intro p { margin:calc(5 * var(--ref-px)) 0 0; font-size:calc(30 * var(--ref-px)); font-weight:400; letter-spacing:calc(-.25 * var(--ref-px)); }
.feature-grid { position:absolute; left:calc(108 * var(--ref-px)); top:calc(406 * var(--ref-px)); display:flex; gap:calc(14 * var(--ref-px)); }
.feature-tile { width:calc(122 * var(--ref-px)); height:calc(115 * var(--ref-px)); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:calc(3 * var(--ref-px)); text-align:center; color:#fff; border:calc(1.2 * var(--ref-px)) solid rgba(222,240,255,.44); border-radius:calc(22 * var(--ref-px)); background:linear-gradient(120deg,rgba(255,255,255,.085),rgba(255,255,255,.015)); box-shadow:0 calc(5 * var(--ref-px)) calc(15 * var(--ref-px)) rgba(0,23,49,.1); }
.feature-tile svg { width:calc(45 * var(--ref-px)); height:calc(45 * var(--ref-px)); flex-shrink:0; }
.feature-tile span { font-size:calc(15.5 * var(--ref-px)); font-weight:500; line-height:1.1; white-space:nowrap; }
.login-card { position:absolute; left:calc(961 * var(--ref-px)); top:calc(118 * var(--ref-px)); width:calc(610 * var(--ref-px)); height:calc(729 * var(--ref-px)); border-radius:calc(43 * var(--ref-px)); background:radial-gradient(ellipse at 52% 23%,#fafbff 0%,#f5f8fd 55%,#f1f5fd 100%); color:#081740; box-shadow:0 calc(19 * var(--ref-px)) calc(27 * var(--ref-px)) rgba(25,57,100,.22),inset 0 1px 0 rgba(255,255,255,.95); }
.mobile-cap { display:none; }
.card-head { position:absolute; left:0; right:0; top:calc(28 * var(--ref-px)); text-align:center; }
.card-head h2 { margin:0; font-size:calc(49 * var(--ref-px)); line-height:1.17; font-weight:800; letter-spacing:calc(-1.4 * var(--ref-px)); }
.card-head .welcome { font-size:calc(31 * var(--ref-px)); line-height:1.1; margin:calc(6 * var(--ref-px)) 0 0; }
.card-head .signin-copy { font-size:calc(21 * var(--ref-px)); line-height:1.15; margin:calc(9 * var(--ref-px)) 0 0; }
.form-rule { position:absolute; top:calc(189 * var(--ref-px)); left:calc(59 * var(--ref-px)); width:calc(498 * var(--ref-px)); height:calc(1.2 * var(--ref-px)); background:#c7d6ec; }
.login-form { position:absolute; top:calc(211 * var(--ref-px)); left:calc(40 * var(--ref-px)); width:calc(534 * var(--ref-px)); }
.input-wrap { display:flex; align-items:center; height:calc(64 * var(--ref-px)); width:100%; border:calc(1.5 * var(--ref-px)) solid #b6cbe5; border-radius:calc(16 * var(--ref-px)); background:rgba(247,249,254,.88); overflow:hidden; transition:border-color .15s ease,box-shadow .15s ease; }
.input-wrap:focus-within { border-color:#377abf; box-shadow:0 0 0 3px rgba(55,122,191,.12); }
.input-wrap + .input-wrap { margin-top:calc(16 * var(--ref-px)); }
.field-icon { width:calc(32 * var(--ref-px)); height:calc(32 * var(--ref-px)); flex:0 0 auto; margin-left:calc(23 * var(--ref-px)); color:#505e6d; }
.input-wrap input { min-width:0; width:100%; flex:1; height:100%; background:transparent; outline:none; border:0; padding:0 calc(19 * var(--ref-px)); font-size:calc(20 * var(--ref-px)); color:#1a2b45; }
.input-wrap input::placeholder { opacity:1; color:#3c4250; }
.password-toggle { display:flex; justify-content:center; align-items:center; background:transparent; border:0; padding:0; color:#4b5361; margin-right:calc(18 * var(--ref-px)); width:calc(40 * var(--ref-px)); height:calc(40 * var(--ref-px)); flex:0 0 auto; border-radius:7px; }
.password-toggle svg { width:calc(29 * var(--ref-px)); height:calc(29 * var(--ref-px)); }
.password-toggle .eye-on { display:none; }
.password-toggle[aria-pressed="true"] .eye-on { display:block; }
.password-toggle[aria-pressed="true"] .eye-off { display:none; }
.password-toggle:focus-visible,.forgot-link:focus-visible,.signin-btn:focus-visible { outline:3px solid #5b90d8; outline-offset:3px; }
.form-extras { display:flex; align-items:center; justify-content:space-between; margin-top:calc(26 * var(--ref-px)); padding:0 calc(5 * var(--ref-px)); height:calc(28 * var(--ref-px)); }
.remember-label { display:inline-flex; align-items:center; gap:calc(11 * var(--ref-px)); cursor:pointer; font-weight:700; font-size:calc(20 * var(--ref-px)); white-space:nowrap; }
.remember-label input { appearance:none; margin:0; flex:0 0 auto; width:calc(24 * var(--ref-px)); height:calc(24 * var(--ref-px)); background:white; border:calc(3 * var(--ref-px)) solid #071740; border-radius:calc(3 * var(--ref-px)); display:grid; place-items:center; cursor:pointer; }
.remember-label input:checked { background:#0b2d59; }
.remember-label input:checked::after { content:""; display:block; width:36%; height:62%; border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg) translateY(-1px); }
.forgot-link { text-decoration:none; color:#f50016; font-size:calc(19 * var(--ref-px)); font-weight:700; white-space:nowrap; }
.forgot-link:hover { text-decoration:underline; }
.signin-btn { width:100%; height:calc(61 * var(--ref-px)); margin-top:calc(31 * var(--ref-px)); border:0; border-radius:calc(16 * var(--ref-px)); background:linear-gradient(180deg,#ff0349 0%,#bb003f 100%); color:#fff; display:flex; align-items:center; justify-content:center; gap:calc(23 * var(--ref-px)); font-size:calc(26 * var(--ref-px)); font-weight:700; box-shadow:0 calc(12 * var(--ref-px)) calc(18 * var(--ref-px)) rgba(166,17,57,.14); }
.signin-btn:hover { background:linear-gradient(180deg,#f90649 0%,#ad0038 100%); }
.signin-btn:active { transform:translateY(1px); }
.signin-btn svg { width:calc(35 * var(--ref-px)); height:calc(35 * var(--ref-px)); }
.partner-section { position:absolute; left:calc(40 * var(--ref-px)); top:calc(532 * var(--ref-px)); width:calc(534 * var(--ref-px)); }
.or-divider { display:flex; align-items:center; justify-content:center; width:100%; gap:calc(12 * var(--ref-px)); font-size:calc(22 * var(--ref-px)); }
.or-divider::before,.or-divider::after { content:""; flex:1; height:calc(1.2 * var(--ref-px)); background:#c5d5e9; }
.or-divider span { background:linear-gradient(#e9eff9,#d5e2f5); width:calc(43 * var(--ref-px)); height:calc(43 * var(--ref-px)); border-radius:50%; display:grid; place-items:center; }
.payment-logos { width:calc(521 * var(--ref-px)); height:calc(64 * var(--ref-px)); display:block; object-fit:contain; margin:calc(12 * var(--ref-px)) auto 0; }
.powered-by { position:absolute; bottom:calc(25 * var(--ref-px)); left:0; right:0; text-align:center; font-size:calc(20 * var(--ref-px)); margin:0; }
.powered-by strong { font-weight:800; }

/* Mobile matches the content within the supplied phone mockup, not the phone bezel. */
@media(max-width:900px) {
  html,body { min-height:100%; }
  .login-page { min-height:100svh; overflow:hidden; background:#03496e; }
  .artboard { --ref-px:1px; width:100%; height:auto; min-height:100svh; left:auto; top:auto; transform:none; position:relative; display:flex; flex-direction:column; align-items:center; padding:clamp(39px,5.3vh,54px) 16px max(118px,19.5vh); }
  .art-scene { background:radial-gradient(ellipse at 48% 74%,#0580b7 0%,#025782 31%,transparent 62%),linear-gradient(125deg,#033d5f 0%,#00486f 55%,#004265 100%); }
  .scene-light { clip-path:polygon(94% 13%,100% 11%,100% 100%,0 100%,0 95%); opacity:.12; }
  .campus-image { width:100%; height:auto; aspect-ratio:1774 / 960; bottom:0; left:0; background-size:100% 100%; background-position:center bottom; -webkit-mask-image:linear-gradient(to bottom, transparent 0%,#000 30%); mask-image:linear-gradient(to bottom, transparent 0%,#000 30%); }
  .campus-colorwash { display:none; }
  .art-ribbons { display:none; }
  .mobile-ribbon { display:block; position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; }
  .art-scene::before { content:""; position:absolute; z-index:1; width:70%; height:9%; right:-14%; top:12%; background:linear-gradient(180deg,#ff4471 0%,#d60045 62%,#f52368 100%); transform:rotate(-25deg); border-radius:50% 0 0 50%; clip-path:ellipse(85% 45% at 68% 77%); }
  .art-scene::after { content:none; }
  .top-foliage { z-index:2; top:35px; left:0; width:118px; height:110px; background-size:135px auto; opacity:.98; -webkit-mask-image:radial-gradient(ellipse at 0 0,#000 0,#000 47%,transparent 76%); mask-image:radial-gradient(ellipse at 0 0,#000 0,#000 47%,transparent 76%); }
  .brand-section { position:relative; left:auto; top:auto; z-index:1; display:flex; justify-content:center; width:100%; margin:0 0 33px; }
  .brand-lockup { width:clamp(205px,55vw,240px); height:auto; }
  .desktop-intro,.feature-grid { display:none; }
  .login-card { z-index:1; position:relative; flex-shrink:0; left:auto; top:auto; width:min(100%,430px); height:auto; padding:17px clamp(17px,5.3vw,24px) 17px; border-radius:clamp(24px,6.3vw,34px); box-shadow:0 13px 26px rgba(5,54,104,.26); background:radial-gradient(ellipse at 55% 28%,#fcfcff 0%,#f6f8fd 69%,#eff3fb 100%); }
  .mobile-cap { display:flex; align-items:center; justify-content:center; width:58px; height:58px; color:#d50b43; background:linear-gradient(145deg,#ffdee5,#ffafc2); border-radius:18px; margin:0 auto 6px; box-shadow:0 8px 10px rgba(212,1,65,.1); }
  .mobile-cap svg { width:43px; height:43px; }
  .card-head { position:static; text-align:center; }
  .card-head h2 { font-size:clamp(29px,7.9vw,36px); line-height:1.15; font-weight:800; letter-spacing:-1.1px; }
  .card-head .welcome { font-size:clamp(18px,4.9vw,22px); line-height:1.25; margin:5px 0 0; color:#19435d; }
  .card-head .signin-copy { font-size:clamp(13px,3.35vw,15px); margin:3px 0 0; color:#354f68; }
  .form-rule { position:static; width:94%; height:1px; margin:9px auto 9px; }
  .login-form { position:static; width:100%; }
  .input-wrap { height:43px; border:1px solid #adc6e5; border-radius:12px; }
  .input-wrap + .input-wrap { margin-top:10px; }
  .field-icon { width:24px; height:24px; margin-left:16px; }
  .input-wrap input { padding:0 16px; font-size:16px; }
  .password-toggle { margin-right:10px; width:29px; height:29px; }
  .password-toggle svg { width:24px; height:24px; }
  .form-extras { height:28px; padding:0 3px; margin-top:9px; }
  .remember-label { gap:9px; font-size:clamp(13px,3.85vw,16px); }
  .remember-label input { width:18px; height:18px; border-width:2px; border-radius:3px; }
  .forgot-link { font-size:clamp(13px,3.8vw,16px); }
  .signin-btn { height:43px; margin-top:16px; gap:16px; border-radius:11px; font-size:21px; box-shadow:0 10px 17px rgba(166,17,57,.11); }
  .signin-btn svg { width:30px; height:30px; }
  .partner-section { position:static; width:100%; margin-top:12px; }
  .or-divider { font-size:16px; gap:9px; }
  .or-divider::before,.or-divider::after { height:1px; }
  .or-divider span { width:29px; height:29px; }
  .payment-logos { width:100%; max-width:330px; height:auto; margin:4px auto 0; }
  .powered-by { position:static; margin:13px 0 0; font-size:clamp(13px,3.75vw,16px); }
}
@media(max-width:360px) {
  .artboard { padding-inline:12px; padding-top:35px; }
  .brand-section { margin-bottom:25px; }
  .login-card { padding-inline:15px; }
  .remember-label { font-size:12.5px; }
  .forgot-link { font-size:12.5px; }
}
@media(min-width:901px) and (max-aspect-ratio:5/4) {
  /* Avoid content clipping on tall, narrow landscape/tablet configurations. */
  .login-page { min-height:100vh; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}

/* Server validation errors appear only after a failed authentication, preserving the default design. */
.auth-error { color:#ad1239; background:#fff0f3; border:1px solid #f2b6c3; border-radius:8px; margin:0 0 8px; padding:7px 10px; font-size:calc(14 * var(--ref-px)); }
@media(max-width:900px) { .auth-error { font-size:12px; padding:6px 8px; } }
