:root {
    --auth-green: #078f35;
    --auth-dark: #075c2b;
    --auth-mint: #e6f6eb;
    --auth-bg: #f4f8f5;
    --auth-ink: #17251d;
    --auth-muted: #77827b;
    --auth-border: #e5e9e6;
}

* { box-sizing: border-box; }
body.auth-page {
    position: relative;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background-color: #063f20;
    background-image: url("../isu-campus-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}
body.auth-page::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 56, 24, .68), rgba(0, 40, 18, .38));
    content: "";
    pointer-events: none;
}
.auth-shell { position: relative; z-index: 1; }
.auth-page h1, .auth-page h2, .auth-page h3 { margin-top: 0; color: var(--auth-ink); font-family: "Manrope", sans-serif; letter-spacing: 0; }
.auth-page a { color: var(--auth-green); text-decoration: none; }
.auth-page a:hover { color: var(--auth-dark); }
.auth-shell { display: grid; width: min(100% - 40px, 1280px); min-height: min(860px, calc(100vh - 40px)); grid-template-columns: minmax(0, 1.03fr) minmax(450px, .97fr); gap: 18px; margin: 20px auto; }
.auth-brand-panel { position: relative; display: flex; min-height: 720px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px 42px 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; color: white; background: rgba(0, 78, 32, .84); backdrop-filter: blur(5px); box-shadow: 0 18px 45px rgba(0, 35, 15, .22); isolation: isolate; }
.auth-brand-panel::before, .auth-brand-panel::after { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.auth-brand-panel::before { top: 21%; right: -155px; width: 390px; height: 390px; }
.auth-brand-panel::after { top: 28%; right: -92px; width: 265px; height: 265px; border-color: rgba(255,255,255,.1); }
.auth-brand-glow { position: absolute; z-index: -1; border-radius: 50%; background: rgba(205,235,216,.15); filter: blur(1px); }
.auth-brand-glow-one { top: -105px; left: 47%; width: 240px; height: 240px; }
.auth-brand-glow-two { right: 5%; bottom: -115px; width: 260px; height: 260px; background: rgba(255,255,255,.08); }
.auth-brand-content { width: min(100%, 520px); margin: 0 auto; }
.auth-logo { display: flex; align-items: center; gap: 12px; color: white !important; }
img.school-cafeteria-logo { display: block; width: 56px; height: 56px; min-width: 56px; max-width: 56px; max-height: 56px; flex: 0 0 56px; aspect-ratio: 1 / 1; object-fit: contain; object-position: center; position: static; transform: none; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; overflow: hidden; background: transparent; box-shadow: 0 6px 14px rgba(0,50,18,.12); }
.auth-logo-copy strong, .auth-logo-copy small { display: block; }
.auth-logo-copy strong { color: white; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; }
.auth-logo-copy small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: 10px; }
.auth-brand-message { margin: 43px 0 22px; }
.auth-kicker { color: #d3f0dc; font-size: 9px; font-weight: 700; }
.auth-brand-message h1 { margin: 10px 0 8px; color: white; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.12; }
.auth-brand-message p { max-width: 440px; margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.65; }
.auth-food-figure { position: relative; height: clamp(210px, 28vh, 280px); margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.42); border-radius: 17px; background: #dcefe1; box-shadow: 0 16px 38px rgba(0, 43, 16, .2); }
.auth-food-figure::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6,54,24,.75)); content: ""; }
.auth-food-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.auth-food-figure figcaption { position: absolute; z-index: 1; right: 16px; bottom: 15px; left: 16px; display: flex; align-items: center; gap: 10px; color: white; }
.auth-food-mark { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.auth-food-figure figcaption strong, .auth-food-figure figcaption small { display: block; }
.auth-food-figure figcaption strong { font-size: 11px; }
.auth-food-figure figcaption small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 9px; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.auth-feature-list span { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; color: rgba(255,255,255,.95); background: rgba(255,255,255,.1); font-size: 9px; font-weight: 600; }
.auth-feature-list i { color: #d3f0dc; font-size: 10px; }
.auth-brand-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 23px; color: rgba(255,255,255,.62); font-size: 8px; font-weight: 700; }
.auth-form-panel { display: flex; min-width: 0; align-items: center; justify-content: center; padding: 54px 52px; border: 1px solid rgba(255,255,255,.82); border-radius: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 18px 45px rgba(0,35,15,.24); }
.auth-form-wrap { width: min(100%, 430px); }
.auth-demo-section { margin-top: 16px; }
.auth-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--auth-ink); font-size: 11px; font-weight: 700; }
.auth-demo-heading small { color: var(--auth-muted); font-size: 9px; font-weight: 500; }
.auth-demo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auth-demo-account { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--auth-border); border-radius: 9px; color: var(--auth-ink); background: var(--auth-bg); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease; }
.auth-demo-account:hover { border-color: #9dc9a8; background: #f7fcf8; box-shadow: 0 5px 13px rgba(0,70,25,.1); transform: translateY(-1px); }
.auth-demo-account.is-selected { border-color: var(--auth-green); background: var(--auth-mint); box-shadow: 0 0 0 2px rgba(7,143,53,.12); }
.auth-demo-role { color: var(--auth-dark); font-size: 10px; font-weight: 700; }
.auth-demo-credential { overflow: hidden; color: var(--auth-muted); font-family: monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.auth-form-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-green); font-size: 10px; font-weight: 700; }
.auth-form-kicker i { font-size: 11px; }
.auth-form-wrap h2 { margin: 10px 0 5px; font-size: 27px; font-weight: 800; line-height: 1.22; }
.auth-form-intro { margin: 0 0 25px; color: var(--auth-muted); font-size: 12px; line-height: 1.55; }
.auth-alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 17px; padding: 11px 12px; border: 1px solid #f1d8d5; border-radius: 8px; color: #963d36; background: #fff5f3; font-size: 11px; line-height: 1.5; }
.auth-alert.success { border-color: #cee8d5; color: #176f35; background: #f0faf3; }
.auth-alert i { margin-top: 2px; }
.auth-form { display: grid; gap: 14px; }
.auth-field { min-width: 0; }
.auth-field label, .auth-field-label { display: block; margin-bottom: 6px; color: #35433a; font-size: 10px; font-weight: 700; }
.auth-control-wrap { position: relative; }
.auth-control-wrap > i:first-child { position: absolute; top: 50%; left: 13px; color: #91a096; font-size: 12px; transform: translateY(-50%); pointer-events: none; }
.auth-control { display: block; width: 100%; height: 44px; padding: 0 42px 0 38px; border: 1px solid var(--auth-border); border-radius: 8px; outline: 0; color: var(--auth-ink); background: #fff; font: inherit; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.auth-control::placeholder { color: #a4aca7; }
.auth-control:hover { border-color: #c5d8ca; }
.auth-control:focus { border-color: var(--auth-green); background: #fefffe; box-shadow: 0 0 0 3px rgba(7,143,53,.12); }
.auth-control:focus-visible, .auth-password-toggle:focus-visible, .auth-submit:focus-visible, .auth-inline-link:focus-visible, .auth-check input:focus-visible { outline: 3px solid rgba(7,143,53,.24); outline-offset: 2px; }
.auth-password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 6px; color: #77827b; background: transparent; transform: translateY(-50%); }
.auth-password-toggle:hover { color: var(--auth-dark); background: var(--auth-mint); }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: inline-flex; align-items: flex-start; gap: 8px; color: #657168; font-size: 10px; line-height: 1.45; }
.auth-check input { width: 14px; height: 14px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--auth-green); }
.auth-inline-link { color: var(--auth-green); font-size: 10px; font-weight: 700; }
.auth-inline-link:hover { text-decoration: underline; }
.auth-submit { display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; border: 1px solid var(--auth-green); border-radius: 8px; color: white; background: var(--auth-green); box-shadow: 0 6px 14px rgba(7,143,53,.18); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.auth-submit:hover { border-color: var(--auth-dark); background: var(--auth-dark); box-shadow: 0 8px 18px rgba(7,92,43,.22); transform: translateY(-1px); }
.auth-switch { margin: 19px 0 0; color: #77827b; text-align: center; font-size: 10px; }
.auth-switch a { margin-left: 3px; font-weight: 700; }
.auth-forgot-note { margin: 13px 0 0; color: #89938c; text-align: center; font-size: 9px; }
.auth-pending-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 10px 11px; border: 1px solid #dceee1; border-radius: 8px; color: #54705b; background: #f4faf5; font-size: 9px; line-height: 1.5; }
.auth-pending-note i { margin-top: 2px; color: var(--auth-green); }
.auth-form-footer { margin-top: 24px; color: #a0a9a2; text-align: center; font-size: 8px; }
.auth-form-footer span { margin: 0 5px; color: var(--auth-green); }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-password-meter { display: flex; gap: 4px; margin-top: 7px; }
.auth-password-meter span { height: 3px; flex: 1; border-radius: 3px; background: #e9eeea; transition: background .15s ease; }
.auth-password-meter[data-strength="1"] span:nth-child(-n+1) { background: #d88754; }
.auth-password-meter[data-strength="2"] span:nth-child(-n+2) { background: #dcba52; }
.auth-password-meter[data-strength="3"] span:nth-child(-n+3) { background: #5ba56e; }
.auth-password-meter[data-strength="4"] span:nth-child(-n+4) { background: var(--auth-green); }
.auth-password-hint { display: flex; justify-content: space-between; margin-top: 5px; color: #8d9890; font-size: 9px; }
.auth-password-hint strong { color: #617167; font-weight: 600; }
.auth-terms { margin-top: 1px; }
.auth-captcha { padding: 12px; border: 1px solid #dce9df; border-radius: 9px; background: #f3f8f4; }
.auth-captcha-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #56645b; font-size: 10px; font-weight: 700; }
.auth-captcha-refresh { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #c9dfcf; border-radius: 7px; color: var(--auth-green); background: white; cursor: pointer; }
.auth-captcha-refresh:hover { color: var(--auth-dark); background: var(--auth-mint); }
.auth-captcha-question { margin: 2px 0 10px; color: #56645b; font-size: 12px; }
.auth-captcha-question strong { color: var(--auth-ink); font-size: 16px; }
.auth-captcha .auth-control { height: 40px; background: white; }
.auth-captcha .auth-field-label { margin-bottom: 5px; }
.auth-mobile-brand { display: none; }

@media (max-width: 980px) {
    .auth-shell { width: min(100% - 28px, 760px); grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: 12px; margin: 14px auto; }
    .auth-brand-panel { min-height: 690px; padding: 30px 26px 22px; }
    .auth-form-panel { padding: 38px 30px; }
    .auth-food-figure { height: 220px; }
}
@media (max-width: 720px) {
    .auth-shell { display: flex; width: 100%; min-height: 100vh; flex-direction: column; gap: 0; margin: 0; }
    .auth-brand-panel { min-height: auto; padding: 24px 22px 18px; border-radius: 0 0 21px 21px; }
    .auth-logo { gap: 10px; }
    .auth-brand-message { margin: 23px 0 15px; }
    .auth-brand-message h1 { margin: 7px 0; font-size: 28px; }
    .auth-brand-message p { max-width: 560px; font-size: 11px; }
    .auth-food-figure { height: 145px; border-radius: 12px; }
    .auth-food-figure figcaption { right: 10px; bottom: 9px; left: 10px; }
    .auth-food-mark { width: 30px; height: 30px; }
    .auth-feature-list { gap: 6px; margin-top: 12px; }
    .auth-feature-list span { min-height: 28px; padding: 0 8px; font-size: 8px; }
    .auth-brand-footer { margin-top: 13px; font-size: 7px; }
    .auth-form-panel { flex: 1; padding: 31px 22px 28px; border: 0; border-radius: 0; box-shadow: none; }
    .auth-form-wrap { width: min(100%, 480px); }
    .auth-form-wrap h2 { font-size: 24px; }
    .auth-form-intro { margin-bottom: 19px; }
    .auth-form-footer { margin-top: 19px; }
}
@media (max-width: 768px) {
    img.school-cafeteria-logo { width: 46px; height: 46px; min-width: 46px; min-height: 46px; max-width: 46px; max-height: 46px; flex-basis: 46px; }
}
@media (max-width: 420px) {
    .auth-brand-panel { padding-right: 17px; padding-left: 17px; }
    .auth-form-panel { padding-right: 18px; padding-left: 18px; }
    .auth-form-grid { grid-template-columns: 1fr; gap: 14px; }
    .auth-demo-list { grid-template-columns: 1fr; }
    .auth-feature-list span { font-size: 7px; }
    .auth-brand-footer span:last-child { text-align: right; }
}