@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/school-portal/fonts/portal/inter-latin-variable.woff2") format("woff2");
}

:root {
    color-scheme: light;
    font-family: "Inter", system-ui, sans-serif;
    color: #17324e;
    background: #f3f7fb;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
[hidden] { display: none !important; }

.simantap-login {
    min-width: 280px;
    background:
        radial-gradient(ellipse at 10% 12%, #e7f2fc 0, transparent 48%),
        radial-gradient(ellipse at 96% 90%, #e7f3f1 0, transparent 42%),
        #f3f7fb;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    background: #083e70;
    color: white;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #007f89; outline-offset: 4px; }

.login-shell {
    width: min(1140px, calc(100% - 80px));
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.login-header {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.school-brand { display: flex; align-items: center; gap: 12px; }
.school-brand img { width: 36px; height: 40px; object-fit: contain; }
.brand-copy { display: grid; gap: 4px; }
.school-name { font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
.school-location { color: #607387; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.portal-label { display: flex; align-items: center; gap: 9px; color: #526b7e; font-size: 12px; }
.portal-label > span { width: 6px; height: 6px; border-radius: 50%; background: #008b91; }
.login-main { flex: 1; display: flex; align-items: center; padding: 14px 0 28px; }
.login-card {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    width: 100%;
    overflow: hidden;
    border: 1px solid #dce6ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 75px -30px #173f6b38, 0 3px 8px #284f7405;
}
.login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 38px 36px 30px;
    border-right: 1px solid #e1ebf1;
    background: linear-gradient(145deg, #f5faff 0%, #edf6fc 54%, #eff8f6 100%);
}
.login-brand::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 20px;
    border: 1px solid #fff;
    border-radius: 15px;
    pointer-events: none;
}
.brand-artwork { width: calc(100% + 24px); max-width: 520px; margin: 24px -12px 16px; }
.simantap-logo { display: block; width: 100%; height: auto; }
.brand-message { max-width: 340px; text-align: center; }
.brand-message h2 { margin: 0; font-size: 25px; font-weight: 720; line-height: 1.42; letter-spacing: -.045em; }
.brand-message h2 span { color: #007d85; }
.brand-bottom { display: flex; align-items: center; gap: 22px; margin-top: 29px; color: #496a7b; font-size: 11px; }
.brand-bottom > span:not(.brand-divider) { display: flex; align-items: center; gap: 8px; }
.brand-bottom svg { width: 17px; height: 17px; color: #007e88; }
.brand-divider { width: 1px; height: 15px; background: #cbdce6; }

.auth-form-panel { min-width: 0; padding: 48px 56px 38px; align-self: center; }
.access-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 26px;
    border: 1px solid #dceaf4;
    border-radius: 13px;
    background: #f1f7fc;
    color: #0c568a;
}
.access-mark svg { width: 22px; height: 22px; }
.auth-form-eyebrow { color: #607386; font-size: 12px; font-weight: 500; }
.auth-form-heading h1 { margin: 8px 0 12px; color: #102e4c; font-size: 28px; line-height: 1.25; font-weight: 750; letter-spacing: -.045em; }
.auth-form-heading p { max-width: 310px; margin: 0; color: #607386; font-size: 12px; line-height: 1.8; }
.signin-form { display: grid; gap: 22px; margin-top: 29px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 9px; color: #284259; font-size: 12px; font-weight: 650; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon { position: absolute; left: 16px; pointer-events: none; color: #7b92a5; }
.auth-input-icon svg { width: 18px; height: 18px; }
.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 15px 0 45px;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
    outline: 0;
    background: #fbfcfe;
    color: #193b56;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-input-wrap input::placeholder { color: #778b9d; opacity: 1; }
.auth-input-wrap input:hover { border-color: #a2bacd; }
.auth-input-wrap input:focus { border-color: #007d88; background: #fff; box-shadow: 0 0 0 3px #00949f1a; }
.auth-input-wrap .auth-password { padding-right: 52px; }
.auth-password-toggle {
    position: absolute;
    right: 4px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #607a8f;
    cursor: pointer;
}
.auth-password-toggle:hover { background: #eaf2f8; color: #124c7d; }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-caps { margin: 8px 0 0; color: #875300; font-size: 12px; }
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    margin-top: 3px;
    padding: 13px 20px;
    border: 1px solid #07588b;
    border-radius: 10px;
    background: linear-gradient(105deg, #064777, #08649a);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 6px 14px #07558b1c;
    cursor: pointer;
    transition: box-shadow .15s ease, background .15s ease;
}
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit:hover { background: linear-gradient(105deg, #06385f, #075582); box-shadow: 0 7px 18px #07558b30; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.account-note { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin: 19px 0 0; color: #63788b; font-size: 10px; line-height: 1.65; text-align: center; }
.account-note svg { width: 15px; height: 15px; color: #007e85; }
.login-help { margin-top: 27px; border-top: 1px solid #e9eef3; }
.login-help summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-top: 8px; color: #42617b; font-size: 11px; cursor: pointer; list-style: none; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary svg { width: 14px; height: 14px; transition: transform .15s ease; }
.login-help[open] summary svg { transform: rotate(90deg); }
.login-help p { margin: 4px 0 0; color: #607386; font-size: 12px; line-height: 1.8; }
.auth-alert { margin: 22px 0 0; padding: 12px 15px; border: 1px solid #efc9c8; border-radius: 9px; background: #fff5f4; color: #922f30; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-alert ul { margin: 0; padding-left: 17px; }
.login-footer { display: flex; justify-content: space-between; gap: 16px; padding: 0 2px 25px; color: #62798c; font-size: 10px; line-height: 1.7; }
.footer-dot { margin: 0 9px; color: #7790a3; }

@media (min-width: 1500px) {
    .login-shell { width: min(1200px, calc(100% - 120px)); }
    .login-card { min-height: 650px; }
    .auth-form-panel { padding: 52px 66px; }
    .brand-artwork { max-width: 550px; }
}
@media (max-width: 1050px) {
    .login-shell { width: calc(100% - 48px); }
    .auth-form-panel { padding: 42px 32px 32px; }
    .login-brand { padding: 38px 24px 30px; }
    .brand-message h2 { font-size: 22px; }
    .auth-form-heading h1 { font-size: 25px; }
}
@media (min-width: 761px) and (max-height: 850px) {
    .login-header { min-height: 80px; }
    .login-main { padding: 8px 0 22px; }
    .login-brand { padding: 30px 30px 25px; }
    .brand-artwork { max-width: 420px; margin: 18px -12px 14px; }
    .brand-message h2 { font-size: 23px; }
    .brand-bottom { margin-top: 24px; }
    .auth-form-panel { padding: 34px 46px 26px; }
    .access-mark { width: 40px; height: 40px; margin-bottom: 20px; }
    .signin-form { margin-top: 24px; gap: 20px; }
    .login-help { margin-top: 22px; }
    .login-footer { padding-bottom: 18px; }
}
@media (max-width: 760px) {
    .login-shell { width: min(480px, calc(100% - 36px)); }
    .login-header { min-height: 88px; }
    .portal-label { font-size: 10px; }
    .login-main { padding: 6px 0 24px; align-items: flex-start; }
    .login-card { grid-template-columns: 1fr; border-radius: 20px; }
    .login-brand { padding: 18px 24px 15px; border-right: 0; border-bottom: 1px solid #e1ebf1; }
    .login-brand::before { inset: 10px; border-radius: 11px; }
    .brand-artwork { width: min(100%, 290px); margin: 0; }
    .brand-message, .brand-bottom, .access-mark { display: none; }
    .auth-form-panel { padding: 27px 30px 23px; }
    .auth-form-eyebrow { font-size: 11px; }
    .auth-form-heading h1 { margin-top: 6px; font-size: 25px; }
    .signin-form { gap: 19px; margin-top: 24px; }
    .auth-input-wrap input { font-size: 16px; }
    .auth-input-wrap input::placeholder { font-size: 12px; }
    .login-help { margin-top: 19px; }
    .login-footer { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
}
@media (max-width: 380px) {
    .login-shell { width: calc(100% - 24px); }
    .school-brand { gap: 8px; }
    .school-name { font-size: 11px; }
    .school-location { font-size: 9px; }
    .school-brand img { width: 30px; height: 34px; }
    .portal-label { max-width: 95px; font-size: 9px; line-height: 1.5; }
    .auth-form-panel { padding: 24px 22px 18px; }
    .auth-form-heading h1 { font-size: 23px; }
    .brand-artwork { max-width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
