:root { color-scheme: light; --blue: #0d3096; --orange: #fe6109; --ink: #10234c; --muted: #627089; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; color: var(--ink); background: #f1f5fd; }
button, input { font: inherit; }
a { color: inherit; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.login-story { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 42px clamp(28px, 5vw, 80px) 30px; background: linear-gradient(135deg, #0D3096 0%, #FE6109 100%); color: white; }
.story-brand { display: inline-flex; align-items: center; align-self: flex-start; font-size: 27px; font-weight: 700; text-decoration: none; letter-spacing: -.8px; }
.story-brand > span:first-child { color: #ff985f; }
.brand-dot { width: 7px; height: 7px; margin: 12px 0 0 5px; background: var(--orange); border-radius: 50%; }
.story-copy { margin-top: clamp(40px, 7vh, 75px); position: relative; z-index: 1; }
.story-eyebrow { font-size: 11px; letter-spacing: 2px; color: #b9ccff; font-weight: 600; }
.story-copy h1 { font-size: clamp(32px, 3.3vw, 50px); line-height: 1.16; letter-spacing: -1.6px; font-weight: 600; margin: 17px 0; }
.story-copy h1 span { color: #ffe0c9; }
.story-copy p { color: #fff; font-size: 16px; line-height: 1.7; max-width: 370px; }
.story-art { position: relative; display: grid; place-items: center; flex: 1; min-height: 270px; padding: 10px 0 30px; }
.story-art img { position: relative; width: min(100%, 350px); height: auto; z-index: 1; filter: drop-shadow(0 16px 24px #0002); animation: login-float 7s ease-in-out infinite; }
.art-halo { position: absolute; width: 320px; max-width: 90%; aspect-ratio: 1; border-radius: 50%; background: #ffffff08; border: 1px solid #ffffff12; }
.art-halo::after { content: ''; position: absolute; inset: 24px; border: 1px dashed #ffffff20; border-radius: 50%; }
.art-note { min-width: 270px; max-width: 100%; text-align: center; position: absolute; bottom: 18px; z-index: 2; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 10px 30px #0002; padding: 12px 17px; font-size: 12px; font-weight: 500; }
.art-note span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf2ff; color: var(--blue); margin-right: 6px; }
.story-footer { display: flex; align-items: center; gap: 15px; color: #c6d3ef; font-size: 12px; padding-top: 15px; }
.story-footer i { width: 4px; height: 4px; background: #ff985f; border-radius: 50%; }
.login-main { display: flex; flex-direction: column; padding: 36px clamp(24px, 5vw, 80px) 24px; background: radial-gradient(ellipse at 100% 0, #fff0e4, transparent 45%), #f3f6fd; }
.back-link { align-self: flex-start; color: #53617a; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.back-link:hover { color: var(--blue); }
.login-story .story-back { color: #fff; font-size: 14px; padding: 8px 0; }
.login-story .story-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.login-card { width: 100%; max-width: 450px; margin: auto; padding: 35px; background: #fff; border: 1px solid #dbe3f2; border-radius: 22px; box-shadow: 0 18px 60px #1535740a; }
.institute-identity { display: flex; align-items: center; gap: 13px; padding-bottom: 23px; border-bottom: 1px solid #e6ebf4; }
.institute-logo { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #e2e8f5; background: #f6f8fd; border-radius: 15px; padding: 6px; }
.institute-logo img { width: 100%; height: 100%; object-fit: contain; }
.identity-label { color: var(--muted); font-size: 9px; letter-spacing: 1.3px; font-weight: 600; }
.institute-identity p { margin: 5px 0 0; font-size: 17px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.login-heading { margin: 26px 0; }
.welcome-label { color: #ad4207; font-size: 10px; letter-spacing: 1.3px; font-weight: 600; }
.login-heading h2 { font-size: 34px; letter-spacing: -1px; font-weight: 600; margin: 9px 0; }
.login-heading h2 span { color: var(--orange); }
.login-heading p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.login-field { margin-bottom: 21px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.login-field input { width: 100%; min-height: 52px; border: 1px solid #bac9e1; border-radius: 10px; background: #f8faff; color: var(--ink); padding: 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.login-field input::placeholder { color: #718098; font-size: 13px; }
.login-field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px #0d309613; }
.login-field input[aria-invalid] { border-color: #b42318; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
#togglePassword { position: absolute; right: 5px; top: 5px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #5e6d86; cursor: pointer; }
#togglePassword:hover { background: #e8eefb; color: var(--blue); }
#togglePassword svg { width: 21px; height: 21px; }
#togglePassword[aria-pressed="true"] .eye-slash { display: none; }
.caps-notice { font-size: 12px; color: #924009; margin: 7px 0 0; }
.login-submit { width: 100%; min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 15px; border: 0; border-radius: 10px; background: var(--login-button, #0d3096); color: var(--login-button-text, #fff); font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 14px #0d309620; transition: transform .25s, box-shadow .25s; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 9px 20px #0d30962c; }
.login-submit:disabled { opacity: .75; cursor: wait; transform: none; }
.button-arrow { font-size: 20px; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-submit[aria-busy="true"] .button-spinner { display: inline-block; }
.login-submit[aria-busy="true"] .button-arrow { display: none; }
.login-help { font-size: 12px; line-height: 1.65; color: var(--muted); text-align: center; margin: 20px 0 0; }
.login-help span { display: block; }
.login-alert { padding: 13px 15px; border-radius: 10px; margin-bottom: 20px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.login-alert-error { border: 1px solid #f3c4bd; color: #912018; background: #fff3f1; }
.login-alert ul { padding-left: 18px; margin: 5px 0 0; }
.login-alert-success { background: #edf9f2; border: 1px solid #b9dfc9; color: #215c3b; }
.login-footer { text-align: center; font-size: 11px; line-height: 1.8; color: var(--muted); margin: 20px 0 0; }
.login-footer strong { color: var(--blue); font-weight: 700; }
.login-footer strong span { color: #b64305; }
.footer-divider { margin: 0 9px; color: #a6b3cb; }
a:focus-visible, button:focus-visible { outline: 3px solid #fe6109; outline-offset: 4px; }
@keyframes login-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (min-width: 851px) { .login-card { margin-block: max(30px, 4vh); align-self: center; } .login-main { justify-content: space-between; } }
@media (max-width: 1050px) { .login-main { padding-inline: 28px; } .login-card { padding: 28px; } }
@media (max-width: 850px) { .login-shell { grid-template-columns: 1fr; } .login-story { padding: 23px 24px 28px; } .story-brand { font-size: 23px; } .story-copy { margin-top: 24px; } .story-copy h1 { font-size: 28px; letter-spacing: -.7px; margin: 10px 0; } .story-copy h1 br { display: none; } .story-copy p, .story-art, .story-footer { display: none; } .story-eyebrow { font-size: 9px; } .login-main { padding: 22px 24px; } .login-card { margin: 22px auto 0; } .login-footer { margin-top: 24px; } }
@media (max-width: 400px) { .login-main { padding-inline: 16px; } .login-card { padding: 24px 20px; border-radius: 16px; } .login-heading h2 { font-size: 30px; } .footer-divider { display: block; height: 0; font-size: 0; } }
.login-story .story-art { flex: 0 0 auto; margin-top: auto; padding-bottom: 12px; }
.login-story .story-copy { margin: 0 0 auto; text-align: center; }
.login-story .story-copy h1 { white-space: nowrap; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -1px; }
/* Compact spacing keeps the standard login state within a laptop viewport. */
.login-story { padding-block: 24px; }
.story-copy { margin-top: clamp(20px, 4vh, 40px); }
.story-copy h1 { font-size: clamp(28px, 3vw, 44px); margin-block: 12px; }
.story-art { min-height: 200px; }
.story-art img { width: min(100%, 310px, 42svh); }
.art-halo { width: min(300px, 40svh); }
.login-main { padding-block: 24px 16px; justify-content: center; }
.login-card { padding: 26px 30px; margin-block: 0; flex-shrink: 0; }
.institute-identity { padding-bottom: 16px; }
.institute-logo { width: 54px; height: 54px; }
.login-heading { margin-block: 18px; }
.login-heading h2 { font-size: 30px; margin-block: 7px; }
.login-field { margin-bottom: 16px; }
.login-field label { margin-bottom: 7px; }
.login-footer { margin-top: 16px; }
@media (max-width: 850px) {
    .login-shell { grid-template-rows: 1fr; }
    .login-story { display: none; }
    .login-story { padding-block: 14px; }
    .story-copy { margin-top: 8px; }
    .story-copy h1 { font-size: 23px; margin-block: 5px; }
    .login-main { padding-block: 18px 14px; }
    .login-card { margin-top: 0; }
}
@media (max-height: 650px) and (min-width: 851px) {
    .login-main { padding-block: 12px; }
    .login-card { padding-block: 20px; }
    .login-heading { margin-block: 12px; }
    .story-copy { margin-top: 12px; }
    .login-footer { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
