        :root { color-scheme: light; --login-ink:#162d36; --login-muted:#5e7175; --login-line:#dde5e5; --login-teal:#126d61; --login-navy:#102e39; }
        *, *::before, *::after { box-sizing:border-box; }
        html { min-height:100%; }
        body.samis-auth { margin:0; min-width:320px; min-height:100vh; color:var(--login-ink); background:#f5f7f5; font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif; -webkit-font-smoothing:antialiased; }
        .samis-auth a { color:inherit; }
        .samis-auth button, .samis-auth input { font:inherit; }
        .samis-auth button, .samis-auth a { -webkit-tap-highlight-color:transparent; }
        .login-skip { position:fixed; left:24px; top:-100px; z-index:20; padding:12px 18px; border-radius:10px; background:white; color:var(--login-navy); box-shadow:0 4px 20px #102e3920; }
        .login-skip:focus { top:16px; }
        .login-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:12px; width:min(100%,1600px); min-height:100vh; margin:auto; padding:22px; }
        .login-showcase { position:relative; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; min-height:calc(100vh - 44px); padding:42px clamp(30px,4.3vw,68px) 30px; border-radius:26px; background:radial-gradient(ellipse at 86% 72%,#245b5c 0%,transparent 48%),linear-gradient(145deg,#102e39,#123c43); color:#fff; isolation:isolate; }
        .login-showcase::before { content:""; position:absolute; z-index:-1; inset:0; opacity:.17; background-image:linear-gradient(#ffffff24 1px,transparent 1px),linear-gradient(90deg,#ffffff24 1px,transparent 1px); background-size:62px 62px; mask-image:linear-gradient(transparent 15%,#000 80%); }
        .login-showcase::after { content:""; position:absolute; z-index:-1; width:530px; height:530px; right:-270px; top:80px; border:1px solid #c4e7c51f; border-radius:50%; box-shadow:0 0 0 85px #b8e1b508,0 0 0 170px #b8e1b505; }
        .login-brand { display:flex; align-items:center; gap:13px; min-width:0; }
        .login-brand-mark { display:grid; flex:0 0 48px; place-items:center; width:48px; height:48px; padding:7px; border:1px solid #ffffff30; border-radius:14px; background:#fff; color:#126d61; }
        .login-brand-mark img { display:block; width:100%; height:100%; object-fit:contain; }
        .login-brand-name { display:block; max-width:400px; color:inherit; font-size:15px; font-weight:750; line-height:1.4; letter-spacing:.01em; overflow-wrap:anywhere; }
        .login-brand-caption { display:block; margin-top:3px; color:#b1c9cd; font-size:11px; line-height:1.5; }
        .login-hero { margin:46px 0 28px; }
        .login-eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:22px; color:#d1e7d6; font-size:10px; font-weight:700; letter-spacing:.17em; text-transform:uppercase; }
        .login-eyebrow::before { content:""; width:7px; height:7px; border-radius:50%; background:#bde4b6; box-shadow:0 0 0 4px #bde4b611; }
        .login-hero h1 { max-width:600px; margin:0 0 20px; color:white; font-size:clamp(38px,4.45vw,66px); font-weight:600; letter-spacing:-.055em; line-height:1.07; }
        .login-hero h1 span { color:#c4e5b5; }
        .login-hero p { max-width:400px; margin:0; color:#b9ced0; font-size:14px; line-height:1.8; }
        .login-illustration { position:relative; margin:32px 0 36px; padding:0 7px; }
        .campus-window { position:relative; overflow:hidden; border:1px solid #ffffff2e; border-radius:17px; background:linear-gradient(145deg,#ffffff14,#ffffff07); box-shadow:0 24px 60px #031f2526; transform:rotate(-2deg); }
        .campus-toolbar { display:flex; justify-content:space-between; align-items:center; height:41px; padding:0 17px; border-bottom:1px solid #ffffff17; }
        .campus-dots { display:flex; gap:5px; }
        .campus-dots span { width:5px; height:5px; border-radius:50%; background:#c9e0df60; }
        .campus-toolbar-label { font-size:8px; font-weight:600; letter-spacing:.16em; color:#bed1d3; }
        .campus-scene { display:flex; align-items:center; gap:20px; padding:24px 20px 20px; }
        .campus-building { width:48%; flex-shrink:0; }
        .campus-modules { display:grid; gap:13px; flex:1; }
        .campus-module { display:flex; align-items:center; gap:10px; color:#e0eeee; font-size:10px; font-weight:550; }
        .campus-module svg { width:28px; height:28px; padding:6px; border:1px solid #ffffff1c; border-radius:8px; color:#d0eac4; background:#ffffff08; }
        .campus-module-line { width:55%; height:3px; margin-top:6px; border-radius:10px; background:#ffffff14; }
        .campus-connected { position:absolute; display:flex; align-items:center; gap:8px; right:-7px; bottom:-14px; padding:11px 15px; border:1px solid #cce3c3; border-radius:11px; background:#e6f2de; color:#284a35; box-shadow:0 12px 28px #062a3026; font-size:10px; font-weight:700; transform:rotate(2deg); }
        .campus-connected svg { width:15px; height:15px; }
        .login-features { display:flex; flex-wrap:wrap; gap:18px; margin-bottom:32px; }
        .login-features span { display:flex; align-items:center; gap:6px; color:#c9dddd; font-size:10px; }
        .login-features svg { width:14px; height:14px; color:#c6e6b9; }
        .login-showcase-footer { display:flex; justify-content:space-between; gap:12px; padding-top:18px; border-top:1px solid #ffffff1b; color:#9db9be; font-size:10px; }
        .login-showcase-footer a { color:#d5e6e5; text-decoration:none; }
        .login-showcase-footer a:hover { text-decoration:underline; }
        .login-panel { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:24px clamp(24px,4vw,66px); }
        .login-panel-inner { width:100%; max-width:410px; }
        .login-mobile-brand { display:none; margin-bottom:36px; }
        .login-mobile-brand .login-brand-mark { width:44px; height:44px; flex-basis:44px; border-color:#dce5df; }
        .login-mobile-brand .login-brand-caption { color:var(--login-muted); }
        .login-panel-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:32px; }
        .login-wordmark { color:#5a706f; font-size:10px; font-weight:750; letter-spacing:.18em; }
        .login-access-label { display:inline-flex; align-items:center; gap:5px; padding:6px 9px; border:1px solid #dde6df; border-radius:20px; color:#587369; font-size:9px; font-weight:600; }
        .login-access-label svg { width:12px; height:12px; }
        .login-heading { margin:0 0 10px; color:var(--login-ink); font-size:36px; font-weight:650; letter-spacing:-.045em; line-height:1.17; }
        .login-intro { margin:0 0 29px; color:var(--login-muted); font-size:13px; line-height:1.75; }
        .login-field { margin-bottom:19px; }
        .login-field-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
        .login-field label { margin:0; color:#344c53; font-size:11px; font-weight:700; }
        .login-reset { display:inline-flex; align-items:center; min-height:24px; color:var(--login-teal)!important; font-size:10px; font-weight:700; text-decoration:none; }
        .login-reset:hover { text-decoration:underline; }
        .input-shell { position:relative; }
        .login-input { display:block; width:100%; height:53px; padding:0 47px; border:1px solid var(--login-line); border-radius:11px; outline:none; background:#fff; color:var(--login-ink); font-size:12px!important; transition:border-color .18s,box-shadow .18s; }
        .login-input::placeholder { color:#65797d; }
        .login-input:hover { border-color:#b8cac4; }
        .login-input:focus { border-color:var(--login-teal); box-shadow:0 0 0 3px #126d6112; }
        .input-leading { position:absolute; top:18px; left:16px; width:17px; height:17px; color:#8b9b9e; pointer-events:none; }
        .toggle-password { position:absolute; top:7px; right:7px; display:grid; place-items:center; width:39px; height:39px; padding:0; border:0; border-radius:8px; color:#819295; background:transparent; cursor:pointer; }
        .toggle-password:hover { color:var(--login-teal); background:#eef5f1; }
        .toggle-password i { display:block; width:18px; height:18px; }
        .toggle-password svg { display:block; width:18px; height:18px; }
        .fa-eye-slash .eye-open, .fa-eye .eye-closed { display:none; }
        .input-shell .input-status-icon { display:none; }
        #login-progress { display:block; min-height:22px; margin:0 0 6px; color:var(--login-teal); font-size:11px; line-height:1.5; }
        #login-progress.error-message, .samis-auth .text-red { color:#bb343e!important; }
        .samis-auth .text-primary { color:var(--login-teal)!important; }
        .input-shell .error-message { font-size:11px; }
        .login-submit { display:flex; align-items:center; justify-content:center; gap:11px; width:100%; min-height:50px; padding:13px 20px; border:1px solid #115b54; border-radius:11px; background:var(--login-teal); color:white; font-size:12px; font-weight:700; box-shadow:0 5px 12px #126d6119; cursor:pointer; transition:background .18s,transform .18s; }
        .login-submit:hover { background:#105c52; transform:translateY(-1px); }
        .login-submit:disabled { opacity:.7; transform:none; cursor:wait; }
        .login-action-icon { display:block; width:16px; height:16px; order:2; }
        .login-action-icon::before, #eyeIcon::before { content:none!important; }
        .login-action-icon svg { display:block; width:16px; height:16px; }
        .login-action-icon.ti-loader { width:15px; height:15px; border:2px solid #ffffff66; border-top-color:white; border-radius:50%; animation:login-spin .7s linear infinite; }
        .login-action-icon.ti-loader svg { display:none; }
        @keyframes login-spin { to { transform:rotate(360deg); } }
        .login-reassurance { display:flex; justify-content:center; align-items:flex-start; gap:7px; margin:16px 0 0; color:#5d7473; font-size:10px; line-height:1.6; text-align:center; }
        .login-reassurance svg { width:13px; height:13px; margin-top:1px; flex-shrink:0; }
        .login-divider { display:flex; align-items:center; gap:12px; margin:26px 0 18px; color:#61776b; font-size:9px; letter-spacing:.09em; text-transform:uppercase; }
        .login-divider::before, .login-divider::after { content:""; flex:1; height:1px; background:#e0e7e3; }
        .android-download { padding:18px; border:1px solid #dce7dc; border-radius:14px; background:#edf4e9; }
        .android-download-heading { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
        .android-download-icon { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border:1px solid #d5e3cf; border-radius:11px; background:#e1ecd9; color:#42694a; }
        .android-download-icon svg { width:25px; height:25px; }
        .android-download h3 { margin:0 0 4px; color:#2c4c38; font-size:12px; font-weight:750; }
        .android-download p { margin:0; color:#526c54; font-size:10px; line-height:1.55; }
        .android-download-button { display:flex; justify-content:center; align-items:center; gap:8px; min-height:43px; padding:10px 14px; border:1px solid #ccdcca; border-radius:9px; background:#ffffffbd; color:#315c41!important; font-size:11px; font-weight:700; text-decoration:none; transition:background .18s,border-color .18s; }
        .android-download-button:hover { background:#fff; border-color:#97b89d; }
        .android-download-button svg { width:15px; height:15px; }
        .android-download-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:10px; color:#526b52; font-size:9px; }
        .android-download-meta a { color:#466d50; text-decoration:underline; text-underline-offset:3px; }
        .login-panel-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:24px; color:#5e746b; font-size:9px; }
        .login-panel-footer a { color:#697f76; text-decoration:none; }
        .login-panel-footer a:hover { text-decoration:underline; }
        .samis-auth a:focus-visible, .samis-auth button:focus-visible { outline:3px solid #649d8f; outline-offset:4px; }
        .login-svg-defs { position:absolute; width:0; height:0; overflow:hidden; }
        @media (min-width:1000px) and (max-height:800px) {
            .login-layout { padding:16px; }
            .login-showcase { min-height:calc(100vh - 32px); padding-top:30px; }
            .login-hero { margin-top:30px; }
            .login-hero h1 { font-size:clamp(38px,4vw,58px); }
            .login-illustration { margin:22px 0 28px; }
            .campus-scene { padding:16px; }
            .login-features { margin-bottom:22px; }
            .login-panel { padding-top:12px; padding-bottom:12px; }
            .login-panel-top { margin-bottom:20px; }
            .login-intro { margin-bottom:22px; }
            .login-divider { margin-top:20px; }
            .login-panel-footer { margin-top:18px; }
        }
        @media (max-width:999.98px) {
            .login-layout { grid-template-columns:minmax(0,1fr); min-height:100svh; padding:0; }
            .login-showcase { display:none; }
            .login-panel { padding:32px 24px; min-height:100svh; background:radial-gradient(ellipse at top right,#e7efe5,transparent 52%),#f8faf7; }
            .login-panel-inner { max-width:420px; }
            .login-mobile-brand { display:flex; }
            .login-panel-top { margin-bottom:26px; }
        }
        @media (max-width:575.98px) {
            .login-panel { padding:25px 23px; justify-content:flex-start; }
            .login-mobile-brand { margin-bottom:30px; }
            .login-heading { font-size:33px; }
            .login-intro { font-size:13px; margin-bottom:25px; }
            .login-input { font-size:16px!important; }
            .login-reset { min-height:32px; padding:4px 0; font-size:11px; }
            .login-field label { font-size:12px; }
            .login-submit { min-height:52px; font-size:13px; }
            .android-download-button { min-height:46px; font-size:12px; }
            .login-reassurance, .android-download p { font-size:11px; }
            .android-download h3 { font-size:13px; }
            .android-download-meta, .login-panel-footer { font-size:10px; }
            .login-panel-footer { margin-top:22px; }
        }
        /* Keep the normal sign-in screen within the available viewport.
           Natural overflow remains available for zoom, long errors and on-screen keyboards. */
        @media (max-height:900px) {
            .login-panel { padding-top:16px; padding-bottom:16px; }
            .login-panel-top { margin-bottom:18px; }
            .login-heading { font-size:32px; margin-bottom:8px; }
            .login-intro { margin-bottom:18px; }
            .login-field { margin-bottom:13px; }
            .login-field-label-row { margin-bottom:6px; }
            .login-reassurance { margin-top:12px; }
            .login-divider { margin:18px 0 12px; }
            .android-download { padding:14px; }
            .android-download-heading { margin-bottom:10px; }
            .login-panel-footer { margin-top:16px; }
        }
        @media (min-width:1000px) and (max-height:900px) {
            .login-layout { padding:16px; min-height:100svh; }
            .login-showcase { min-height:calc(100svh - 32px); padding:28px clamp(28px,3.5vw,56px) 22px; }
            .login-hero { margin:26px 0 18px; }
            .login-eyebrow { margin-bottom:16px; }
            .login-hero h1 { font-size:clamp(36px,3.8vw,54px); margin-bottom:16px; }
            .login-illustration { margin:20px 0 26px; }
            .campus-scene { padding:14px 18px; }
            .campus-building { max-height:115px; }
            .campus-modules { gap:10px; }
            .login-features { margin-bottom:18px; }
            .login-showcase-footer { padding-top:14px; }
        }
        @media (min-width:1000px) and (max-height:800px) {
            .login-illustration { display:none; }
            .login-hero { margin:28px 0 25px; }
            .login-hero h1 { font-size:clamp(36px,4.1vw,58px); }
        }
        @media (max-width:999.98px) and (max-height:900px) {
            .login-mobile-brand { margin-bottom:20px; }
            .login-panel-top { margin-bottom:18px; }
            .login-panel-footer { margin-top:14px; }
        }
        @media (max-width:999.98px) and (max-height:800px) {
            .login-panel { padding:18px 23px; }
            .login-mobile-brand { margin-bottom:18px; }
            .login-panel-top { display:none; }
            .login-heading { font-size:30px; }
            .login-intro { margin-bottom:16px; }
            .login-divider { margin:14px 0 10px; }
        }
        @media (max-height:740px) {
            .login-panel { padding-top:16px; padding-bottom:16px; }
            .login-panel-top { display:none; }
            .login-heading { font-size:29px; }
            .login-field { margin-bottom:10px; }
            .login-field-label-row { margin-bottom:4px; }
            .login-input { height:48px; }
            .input-leading { top:15px; }
            .toggle-password { top:4px; }
            .login-submit { min-height:48px; }
            .login-reassurance, .login-divider { display:none; }
            .android-download { margin-top:18px; padding:12px; }
            .android-download-heading { display:none; }
            .android-download-button { min-height:44px; }
            .android-download-meta { margin-top:8px; }
            .login-panel-footer { margin-top:12px; }
            .login-brand-caption { display:none; }
        }
        @media (max-height:620px) {
            .login-heading { font-size:26px; margin-bottom:16px; }
            .login-intro, .login-panel-footer { display:none; }
            .login-mobile-brand { margin-bottom:16px; }
            .login-mobile-brand .login-brand-mark { width:36px; height:36px; flex-basis:36px; padding:5px; border-radius:10px; }
            .login-field-label-row { min-height:20px; }
            #login-progress { min-height:18px; margin-bottom:4px; }
            .login-showcase { padding-top:22px; }
            .login-hero { margin:20px 0; }
            .login-hero h1 { font-size:38px; }
        }
        @media (prefers-reduced-motion:reduce) { .samis-auth *, .samis-auth *::before, .samis-auth *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition:none!important; scroll-behavior:auto!important; } }

/* Recovery and MFA pages use the same visual system as sign in. */
.auth-flow .auth-flow-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.auth-flow .auth-flow-label{color:var(--login-teal);font-size:10px;font-weight:750;letter-spacing:.06em}
.auth-flow .auth-back{display:inline-flex;align-items:center;gap:6px;min-height:28px;color:var(--login-teal);font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap}
.auth-flow .auth-back:hover{text-decoration:underline}.auth-back svg{width:14px;height:14px;transform:rotate(180deg)}
.auth-flow .login-heading{font-size:34px}.auth-flow .login-intro{max-width:390px}
.auth-flow .login-submit>i{display:block;width:16px;height:16px;order:2;margin:0!important;font-size:16px!important}
.auth-flow .login-submit>i::before,.auth-flow .toggle-password i::before{content:none!important}
.auth-flow .login-submit>i svg{display:block;width:16px;height:16px}
.auth-flow .login-submit>i.ti-loader,.auth-flow .login-submit>i.ti-loader-2{width:15px;height:15px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:login-spin .7s linear infinite!important}
.auth-flow .login-submit>i.ti-loader svg,.auth-flow .login-submit>i.ti-loader-2 svg{display:none}
.auth-flow .auth-code-fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
.auth-flow .otp-label{display:block;float:none;width:auto;margin:0 0 10px;padding:0;color:#344c53;font-size:12px;font-weight:700}
.auth-flow .otp-inputs,.auth-flow .otp-wrapper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(5px,1.2vw,10px)}
.auth-flow .otp-digit,.auth-flow .otp-input{width:100%;min-width:0;height:57px;padding:0;border:1px solid var(--login-line);border-radius:11px;background:white;color:var(--login-ink);font:650 24px/1.2 Inter,"Segoe UI",sans-serif;text-align:center;outline:none;transition:border-color .18s,box-shadow .18s}
.auth-flow .otp-digit:focus,.auth-flow .otp-input:focus{border-color:var(--login-teal);box-shadow:0 0 0 3px #126d6112}
.auth-flow .otp-digit.is-valid,.auth-flow .otp-input.is-valid{border-color:#76a893;background:#f7fbf8}
.auth-flow .otp-digit.is-invalid,.auth-flow .otp-input.is-invalid{border-color:#bb343e;background:#fff9f8}
.auth-flow .verification-hint,.auth-flow .auth-help{color:var(--login-muted);font-size:11px;line-height:1.6;margin:10px 0 0}
.auth-flow .auth-help{margin:0 0 16px;padding:12px 14px;border:1px solid #dce7dc;border-radius:11px;background:#edf4e9;color:#526c54}
.auth-flow .auth-resend{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e0e7e3;color:var(--login-muted);font-size:11px;line-height:1.6}
.auth-flow .auth-resend p{margin:0}.auth-flow #resendCodeBtn{min-height:42px;border:1px solid #cbded5;border-radius:9px;background:#f5faf6;color:#2d6651;font-size:11px;font-weight:700;padding:8px 12px}
.auth-flow #resendCodeBtn:disabled{color:#667d72;background:#f1f5f2;cursor:wait}
.auth-flow #resend-link{font-size:11px;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.auth-flow #timer-text{font-size:11px;color:var(--login-muted)}
.auth-flow .auth-expiry{margin-top:9px;font-size:11px;color:var(--login-muted)}
.auth-flow .auth-privacy-note{display:flex;align-items:flex-start;gap:7px;margin:14px 0 0;color:var(--login-muted);font-size:11px;line-height:1.6}
.auth-flow .auth-privacy-note svg{flex:0 0 14px;height:14px;margin-top:2px}
.auth-flow .auth-footer-links{display:flex;gap:14px;flex-wrap:wrap}.auth-flow .login-panel-footer{margin-top:28px;align-items:center}
.auth-flow #login-progress{min-height:26px;line-height:1.6}.auth-flow #login-progress:empty{min-height:20px}
.auth-flow .text-success{color:#216c50!important}.auth-flow .text-danger,.auth-flow .text-red{color:#bb343e!important}
.auth-flow .input-shell .input-status-icon{display:none}
@media(max-height:800px){.auth-flow .login-panel-top{margin-bottom:22px}.auth-flow .auth-flow-toolbar{margin-bottom:15px}.auth-flow .login-intro{margin-bottom:20px}.auth-flow .login-panel-footer{margin-top:22px}.auth-flow .auth-code-fieldset{margin-bottom:14px}}
@media(max-width:575.98px){.auth-flow .login-heading{font-size:30px}.auth-flow .otp-digit,.auth-flow .otp-input{height:52px;font-size:22px}.auth-flow .login-input{font-size:16px!important}.auth-flow .login-panel-footer{font-size:10px}.auth-flow .auth-flow-label{font-size:10px}}
@media(max-height:620px){.auth-flow .login-panel-top{display:none}.auth-flow .login-heading{font-size:26px;margin-bottom:16px}.auth-flow .auth-flow-toolbar{margin-bottom:12px}.auth-flow .login-intro,.auth-flow .verification-hint,.auth-flow .auth-privacy-note{display:none}.auth-flow .auth-code-fieldset{margin-bottom:12px}.auth-flow .otp-digit,.auth-flow .otp-input{height:46px}.auth-flow .otp-label{margin-bottom:8px}.auth-flow .auth-help{padding:9px 12px;margin-bottom:12px;font-size:10px}.auth-flow .auth-resend{margin-top:12px;padding-top:12px}.auth-flow .login-panel-footer{display:flex;margin-top:18px}.auth-flow .login-mobile-brand{margin-bottom:14px}}
