:root {
    color-scheme: light;
    --ink: #10293f;
    --muted: #627184;
    --blue: #0870c9;
    --navy: #062747;
    --gold: #f2c33b;
    --line: #d8e0e7;
    --green: #075637;
    --green-dark: #03472e;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f5f7f8; }
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #f5f7f8;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }

.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(34rem, .96fr);
}
.brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 5.5vw, 6.75rem) 2rem;
    color: #fff;
    background: #073b35;
}
.brand-panel__image, .brand-panel::after { position: absolute; z-index: -1; inset: 0; content: ""; }
.brand-panel__image {
    background-image: url("../PROMAPS_landing_page/assets/hero_school_mountain_background.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.015);
}
.brand-panel::after {
    background: linear-gradient(90deg, rgba(3, 43, 40, .91) 0%, rgba(4, 54, 48, .79) 47%, rgba(4, 47, 49, .52) 100%),
                linear-gradient(0deg, rgba(1, 24, 36, .76), transparent 38%);
}
.brand-panel__content { display: flex; min-height: max(38rem, calc(100vh - 12rem)); flex-direction: column; }
.brand-lockup { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 1.1rem; text-decoration: none; }
.brand-lockup__division { width: clamp(11rem, 18vw, 17rem); height: auto; border-radius: .2rem; }
.brand-lockup__divider { width: 1px; height: 3.6rem; flex: 0 0 1px; background: rgba(255,255,255,.42); }
.brand-lockup__product { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-lockup__product img { width: 3.15rem; height: 3.15rem; object-fit: contain; }
.brand-lockup__product strong, .mobile-brand strong, .login-card-brand strong { display: block; font-size: 1.08rem; font-weight: 850; letter-spacing: -.035em; }
.brand-lockup__product small { display: block; max-width: 12rem; margin-top: .15rem; color: rgba(255,255,255,.82); font-size: .59rem; line-height: 1.35; }
.brand-copy { width: min(100%, 42rem); margin: auto 0; padding: 3rem 0 3.2rem; }
.eyebrow { margin: 0 0 1rem; color: #ffdc70; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy h1 { margin: 0; font-size: clamp(2.55rem, 4.15vw, 4.2rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
.brand-copy__description { max-width: 34rem; margin: 1.35rem 0 0; color: rgba(255,255,255,.89); font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.55; }
.brand-values { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.brand-values li { display: flex; align-items: center; gap: .65rem; color: #fff; font-size: .84rem; font-weight: 650; line-height: 1.2; }
.value-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; color: var(--gold); }
.value-icon svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.brand-panel__caption { margin: 1.4rem 0 0; color: rgba(255,255,255,.72); font-size: .73rem; letter-spacing: .02em; }

.login-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem clamp(2rem, 5vw, 6rem) 2rem;
    background: linear-gradient(135deg, #fff 0%, #fbfcfd 58%, #f2f6f8 100%);
}
.back-home { position: absolute; top: 2rem; right: clamp(2rem, 4vw, 4.75rem); display: inline-flex; align-items: center; gap: .5rem; color: #53657a; font-size: .85rem; font-weight: 650; text-decoration: none; }
.back-home span { font-size: 1.1rem; }
.back-home:hover, .back-home:focus-visible { color: var(--blue); }
.login-card-wrap { width: min(100%, 30rem); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #e5eaee; border-radius: 1rem; background: rgba(255,255,255,.94); box-shadow: 0 1.25rem 3.75rem rgba(24,49,67,.1); }
.login-card-brand { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 auto 1.85rem; text-align: left; }
.login-card-brand img { width: 3.65rem; height: 3.65rem; object-fit: contain; }
.login-card-brand strong { color: #124a76; font-size: 1.15rem; }
.login-card-brand small { display: block; margin-top: .12rem; color: #596b7d; font-size: .75rem; }
.login-heading { margin-bottom: 1.65rem; text-align: center; }
.login-heading h2 { margin: 0; color: #102e49; font-size: clamp(1.65rem, 2.3vw, 2rem); font-weight: 780; letter-spacing: -.04em; line-height: 1.2; }
.login-heading p { margin: .48rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.login-form { margin: 0; }
.login-notice { margin: 0 0 1.15rem; padding: .8rem .9rem; border: 1px solid #f3c4c4; border-radius: .55rem; color: #852a2a; background: #fff1f1; font-size: .88rem; line-height: 1.45; }
.form-field { margin: 0 0 1.15rem; }
.form-field > label { display: block; margin: 0 0 .42rem; color: #203348; font-size: .84rem; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap input { display: block; width: 100%; min-height: 3.15rem; padding: .72rem 3rem .72rem 3rem; border: 1px solid #cfd8df; border-radius: .48rem; outline: none; color: #1d2c3b; background: #fff; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #84919d; opacity: 1; }
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(8,112,201,.13); }
.input-icon { position: absolute; z-index: 1; top: 50%; left: .9rem; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); fill: none; stroke: #34495b; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; pointer-events: none; }
.password-toggle { position: absolute; top: 50%; right: .55rem; display: grid; width: 2rem; height: 2rem; transform: translateY(-50%); place-items: center; border: 0; border-radius: .3rem; color: #455a6c; background: transparent; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--blue); background: #eff6fb; outline: 2px solid transparent; }
.password-toggle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.eye-off-icon { display: none; }
.password-toggle[aria-pressed="true"] .eye-icon { display: none; }
.password-toggle[aria-pressed="true"] .eye-off-icon { display: block; }
.remember-control { display: inline-flex; min-height: 1.5rem; align-items: center; gap: .6rem; margin: .05rem 0 1.25rem; color: #304257; cursor: pointer; font-size: .88rem; }
.remember-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.remember-box { display: grid; width: 1.15rem; height: 1.15rem; place-items: center; border: 1px solid #aebbc5; border-radius: .24rem; color: #fff; background: white; }
.remember-box svg { display: none; width: .84rem; height: .84rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.remember-control input:checked + .remember-box { border-color: var(--green); background: var(--green); }
.remember-control input:checked + .remember-box svg { display: block; }
.remember-control input:focus-visible + .remember-box { outline: 3px solid rgba(8,112,201,.22); outline-offset: 2px; }
.submit-button { display: flex; width: 100%; min-height: 3.35rem; align-items: center; justify-content: center; gap: .6rem; border: 0; border-radius: .48rem; color: #fff; background: linear-gradient(105deg, #086143, #034c35); box-shadow: 0 .35rem .85rem rgba(5,73,50,.17); cursor: pointer; font-size: 1rem; font-weight: 750; transition: background .15s, transform .15s; }
.submit-button:hover { background: #03462f; }
.submit-button:focus-visible { outline: 3px solid rgba(5,112,77,.28); outline-offset: 3px; }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: .78; }
.submit-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.42); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .submit-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .45rem; margin-top: 1.55rem; color: #647283; font-size: .72rem; text-align: center; }
.login-card-footer strong { color: #155174; font-size: .72rem; }
.footer-separator { color: #a2aebb; }
.login-card-footer small { flex-basis: 100%; color: #788493; font-size: .65rem; line-height: 1.45; }
.footer-accent { width: 3.2rem; height: .15rem; flex-basis: 100%; margin: 0 auto .35rem; background: var(--gold); }
.login-panel__copyright { margin: 1.5rem 0 0; color: #81909e; font-size: .7rem; text-align: center; }
.mobile-brand { display: none; }

@media (max-width: 64rem) {
    .login-layout { grid-template-columns: minmax(0, .95fr) minmax(30rem, 1.05fr); }
    .brand-panel { padding-right: 2.5rem; padding-left: 2.5rem; }
    .brand-lockup { gap: .7rem; }
    .brand-lockup__division { width: clamp(9rem, 19vw, 12rem); }
    .brand-lockup__product img { width: 2.6rem; height: 2.6rem; }
    .brand-lockup__product strong { font-size: .95rem; }
    .brand-lockup__product small { font-size: .52rem; }
    .brand-copy h1 { font-size: clamp(2.35rem, 4.4vw, 3.4rem); }
    .brand-values { gap: 1.2rem; }
    .brand-values li { font-size: .75rem; }
    .login-panel { padding-right: 2rem; padding-left: 2rem; }
}

@media (max-width: 52rem) {
    .login-layout { min-height: 100vh; grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 5rem 1.5rem 2rem; }
    .back-home { top: 1.3rem; right: 1.5rem; }
    .mobile-brand { position: absolute; top: 1rem; left: 1.5rem; display: flex; align-items: center; gap: .45rem; color: #124a76; text-decoration: none; }
    .mobile-brand img { width: 2.7rem; height: 2.7rem; object-fit: contain; }
    .mobile-brand strong { font-size: .94rem; }
    .mobile-brand small { display: block; margin-top: .08rem; color: #607183; font-size: .63rem; }
    .login-card-wrap { width: min(100%, 29rem); }
}

@media (max-width: 30rem) {
    .login-panel { justify-content: flex-start; padding: 5.2rem 1rem 1.3rem; }
    .back-home { top: 1.3rem; right: 1rem; font-size: .77rem; }
    .mobile-brand { left: 1rem; }
    .mobile-brand img { width: 2.35rem; height: 2.35rem; }
    .mobile-brand strong { font-size: .82rem; }
    .mobile-brand small { font-size: .57rem; }
    .login-card-wrap { padding: 1.35rem 1.1rem 1.2rem; border-radius: .8rem; }
    .login-card-brand { margin-bottom: 1.35rem; }
    .login-card-brand img { width: 3.1rem; height: 3.1rem; }
    .login-heading { margin-bottom: 1.35rem; }
    .login-heading h2 { font-size: 1.55rem; }
    .login-heading p { font-size: .86rem; }
    .input-wrap input { min-height: 3rem; font-size: .9rem; }
    .login-panel__copyright { margin-top: 1rem; }
}

@media (min-width: 52.001rem) and (max-height: 46rem) {
    .login-panel { padding-top: 2rem; padding-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
