/* Split-screen login redesign: warm form panel + deep teal brand panel. */
.login-screen.login-screen--light {
    --login-ink: #183544;
    --login-muted: #84929a;
    --login-teal: #14847d;
    --login-deep: #123d49;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 26px;
    color: var(--login-ink);
    background: radial-gradient(ellipse at 14% 15%, rgba(40, 123, 130, .10), transparent 34%),
                radial-gradient(ellipse at 90% 88%, rgba(194, 151, 91, .12), transparent 30%),
                #eef2f2;
    font-family: Tahoma, Arial, sans-serif;
}
.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    direction: ltr;
    width: min(100%, 1080px);
    min-height: 680px;
    overflow: hidden;
    background: #fffdfa;
    border: 1px solid rgba(225, 231, 229, .92);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(26, 58, 68, .13), 0 5px 17px rgba(26, 58, 68, .05);
    animation: login-arrive .48s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes login-arrive {
    from { opacity: 0; transform: translateY(12px) scale(.993); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 42px 44px 28px;
    overflow: hidden;
    direction: rtl;
    color: #f3fbfa;
    background: linear-gradient(148deg, #123c49 0%, #14545a 54%, #173c50 100%);
    isolation: isolate;
}
.login-showcase::before,
.login-showcase::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(189, 225, 218, .12);
    border-radius: 50%;
    pointer-events: none;
}
.login-showcase::before { width: 520px; height: 520px; left: -255px; bottom: -220px; }
.login-showcase::after { width: 390px; height: 390px; left: -190px; bottom: -155px; }
.showcase-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .11;
    background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(140deg, #000 0%, transparent 75%);
}
.showcase-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.showcase-orb--one { top: 18%; left: -54px; width: 145px; height: 145px; background: rgba(70, 178, 160, .17); }
.showcase-orb--two { right: -70px; bottom: 9%; width: 210px; height: 210px; background: rgba(221, 183, 123, .12); }
.showcase-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.showcase-logo {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(235,249,246,.22);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(7, 33, 42, .15);
}
.showcase-logo img { display: block; width: 43px; height: 43px; object-fit: cover; border-radius: 12px; }
.showcase-brand-copy { display: flex; flex-direction: column; gap: 4px; }
.showcase-brand-copy > span { color: #add7d0; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.showcase-brand-copy strong { color: #fff; font-size: 13px; font-weight: 700; }
.showcase-content { position: relative; z-index: 2; max-width: 400px; margin: auto 0; padding: 45px 0 32px; }
.showcase-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 11px; color: #c1e6df; background: rgba(255,255,255,.08); border: 1px solid rgba(222,246,241,.12); border-radius: 99px; font-size: 11px; }
.showcase-kicker i { color: #e4bd81; font-size: 6px; }
.showcase-content h1 { margin: 0 0 15px; color: #fff; font-size: clamp(29px, 3.3vw, 39px); font-weight: 800; line-height: 1.55; letter-spacing: -.03em; }
.showcase-content h1 span { color: #98d7c9; }
.showcase-content > p { max-width: 350px; margin: 0; color: rgba(235,247,245,.73); font-size: 13px; line-height: 2; }
.showcase-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.showcase-highlights span { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 10px; color: rgba(246,251,250,.86); background: rgba(255,255,255,.07); border: 1px solid rgba(237,249,247,.12); border-radius: 9px; font-size: 10px; }
.showcase-highlights i { color: #9ad9c9; font-size: 9px; }
.showcase-visual { position: absolute; z-index: 0; left: 14px; bottom: 64px; width: 245px; height: 206px; opacity: .78; pointer-events: none; }
.visual-ring { position: absolute; border: 1px solid rgba(211,240,232,.15); border-radius: 50%; }
.visual-ring--outer { left: 13px; bottom: 0; width: 190px; height: 190px; }
.visual-ring--inner { left: 37px; bottom: 24px; width: 142px; height: 142px; border-color: rgba(211,240,232,.11); }
.visual-panel { position: absolute; left: 37px; bottom: 28px; width: 156px; height: 116px; padding: 10px; transform: rotate(-8deg); background: linear-gradient(145deg, rgba(240,251,248,.94), rgba(213,234,228,.86)); border: 1px solid rgba(255,255,255,.62); border-radius: 15px; box-shadow: 0 18px 35px rgba(4,30,38,.27); }
.visual-panel-top { display: flex; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid rgba(35,90,87,.11); }
.visual-panel-top span { width: 4px; height: 4px; background: #8fb9b0; border-radius: 50%; }
.visual-panel-body { display: flex; align-items: center; gap: 9px; padding: 11px 2px 8px; }
.visual-symbol { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg, #277f79, #185967); border-radius: 12px; font-size: 17px; }
.visual-lines { display: flex; flex: 1; flex-direction: column; gap: 7px; }
.visual-lines span { height: 5px; background: #a8c8c0; border-radius: 8px; }
.visual-lines span:first-child { width: 78%; background: #709f96; }
.visual-panel-bottom { display: flex; align-items: flex-end; gap: 5px; height: 17px; padding: 0 4px; }
.visual-panel-bottom span { flex: 1; background: #84b8ac; border-radius: 3px 3px 1px 1px; }
.visual-panel-bottom span:nth-child(1) { height: 8px; }
.visual-panel-bottom span:nth-child(2) { height: 13px; }
.visual-panel-bottom span:nth-child(3) { height: 10px; }
.visual-panel-bottom span:nth-child(4) { height: 16px; background: #c6a575; }
.visual-panel-bottom span:nth-child(5) { height: 12px; }
.visual-chip { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #c29a62; border: 3px solid #235963; border-radius: 11px; box-shadow: 0 6px 16px rgba(2,28,35,.2); }
.visual-chip--top { top: 25px; right: 28px; transform: rotate(9deg); }
.visual-chip--bottom { bottom: 21px; right: 24px; color: #d6f3e9; background: #226d70; transform: rotate(-8deg); }
.showcase-footnote { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; color: rgba(229,246,242,.68); font-size: 10px; }
.showcase-footnote i { color: #a8d8cb; }

.login-panel { display: flex; flex-direction: column; min-width: 0; padding: 29px clamp(30px, 5vw, 62px) 19px; direction: rtl; background: #fffdfa; }
.login-topline { display: flex; justify-content: flex-start; min-height: 34px; }
.login-official-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; color: #73848a !important; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 11px; text-decoration: none !important; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.login-official-link i { color: #8caa9f; font-size: 10px; }
.login-official-link:hover { color: #176f6b !important; background: #f3f7f5; border-color: #e8efec; }
.login-alert { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 11px 13px; border-radius: 11px; font-size: 12px; line-height: 1.7; }
.login-alert--error { color: #9b4149; background: #fff3f1; border: 1px solid #f0d8d4; }
.login-panel-content { display: flex; flex: 1; flex-direction: column; justify-content: center; width: 100%; max-width: 410px; margin: 0 auto; padding: 34px 0 17px; }
.login-screen.login-screen--light .login-card { width: 100%; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; animation: none; }
.login-heading { margin: 0 0 29px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #66827e; font-size: 11px; font-weight: 700; }
.login-eyebrow span { width: 7px; height: 7px; background: #c49a61; border-radius: 50%; box-shadow: 0 0 0 4px rgba(196,154,97,.12); }
.login-title { margin: 0 0 7px !important; padding: 0; color: #1c3947 !important; font-size: 30px !important; font-weight: 800; line-height: 1.4; text-align: right; }
.login-heading > p { margin: 0; color: #88949a; font-size: 12px; line-height: 1.8; }
.login-card form { margin: 0; }
.login-field { margin: 0 0 18px; }
.login-field > label { display: block; margin: 0 0 8px; color: #405964; font-size: 12px; font-weight: 700; }
.login-field .form-group { margin: 0 !important; padding: 0 !important; }
.login-field .form-group > label { display: none !important; }
.login-input-wrap, .password-control { position: relative; width: 100%; }
.login-field .form-control,
.login-field input[type="text"],
.login-field input[type="password"] {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px !important;
    padding: 0 45px 0 46px !important;
    color: #243f4b !important;
    background: #f7f9f8 !important;
    border: 1px solid #e1e8e5 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 13px !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.login-field .form-control::placeholder { color: #a1abae; opacity: 1; }
.login-field .form-control:focus { background: #fff !important; border-color: #79b7ad !important; box-shadow: 0 0 0 4px rgba(20,132,125,.10) !important; outline: 0; }
.login-input-icon { position: absolute; z-index: 3; top: 50%; right: 16px; color: #91a19f; font-size: 14px; transform: translateY(-50%); pointer-events: none; }
.password-control input { padding-left: 49px !important; }
.password-toggle { position: absolute; z-index: 4; top: 50%; left: 8px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; color: #859692; background: transparent; border: 0; border-radius: 9px; transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus { color: #167d76; background: #edf5f2; outline: 0; }
.login-options { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 20px; }
.remember-choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 8px 11px; color: #63767b; background: #f8f9f7; border: 1px solid #edf0ed; border-radius: 10px; font-size: 11px; line-height: 1.5; cursor: pointer; user-select: none; transition: background .16s ease, border-color .16s ease; }
.remember-choice:hover { background: #f3f7f4; border-color: #e1eae5; }
.remember-choice--session { color: #416b66; background: #f1f7f4; border-color: #e3eee8; }
.remember-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.remember-check { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; color: transparent; background: #fff; border: 1px solid #cbd8d2; border-radius: 5px; font-size: 9px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.remember-choice input:checked + .remember-check { color: #fff; background: #16847d; border-color: #16847d; }
.remember-choice input:focus-visible + .remember-check { outline: 3px solid rgba(20,132,125,.2); outline-offset: 2px; }
.login-submit-wrap { position: relative; margin-top: 2px; }
.login-submit-wrap .btn,
.login-submit-wrap button[type="submit"] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 46px; color: #fff !important; background: linear-gradient(110deg, #173f4c 0%, #167c77 100%) !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 9px 20px rgba(20,94,94,.17); font-family: inherit; font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.login-submit-wrap .btn:hover, .login-submit-wrap button[type="submit"]:hover { filter: brightness(1.05); box-shadow: 0 12px 24px rgba(20,94,94,.22); transform: translateY(-1px); }
.login-submit-arrow { position: absolute; top: 50%; right: 18px; color: rgba(255,255,255,.76); transform: translateY(-50%); pointer-events: none; }
.login-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 21px; padding-top: 16px; color: #879398; border-top: 1px solid #edf0ed; font-size: 10px; }
.login-security-note, .login-help-link { display: inline-flex; align-items: center; gap: 7px; }
.login-security-note i { color: #75a99c; }
.login-help-link { min-height: 30px; padding: 4px 0 4px 5px; color: #718681; background: transparent; border: 0; font-family: inherit; font-size: 11px; cursor: pointer; }
.login-help-link i { color: #af9469; }
.login-help-link:hover { color: #167d76; }
.login-copyright { margin: 16px 0 0; color: #9aa4a5; font-size: 10px; text-align: center; }
.login-official-link:focus-visible, .login-help-link:focus-visible, .password-toggle:focus-visible,
.login-submit-wrap .btn:focus-visible, .login-submit-wrap button[type="submit"]:focus-visible { outline: 3px solid rgba(20,132,125,.26) !important; outline-offset: 3px; }

@media (max-width: 1020px) {
    .login-screen.login-screen--light { padding: 20px; }
    .login-shell { grid-template-columns: .88fr 1.12fr; min-height: 650px; }
    .login-showcase { padding: 34px 31px 25px; }
    .login-panel { padding-right: 37px; padding-left: 37px; }
    .showcase-content h1 { font-size: 31px; }
    .showcase-visual { left: -14px; transform: scale(.88); transform-origin: bottom left; }
}
@media (max-width: 820px) {
    .login-screen.login-screen--light { align-items: flex-start; padding: 18px 14px; }
    .login-shell { display: flex; flex-direction: column; width: min(100%, 540px); min-height: 0; margin: auto; border-radius: 22px; }
    .login-showcase { display: block; min-height: 92px; padding: 18px 23px; }
    .showcase-brand { min-height: 54px; }
    .showcase-logo { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
    .showcase-logo img { width: 38px; height: 38px; border-radius: 10px; }
    .showcase-content, .showcase-visual, .showcase-footnote, .showcase-orb, .showcase-grid { display: none; }
    .login-panel { padding: 17px 34px 17px; }
    .login-panel-content { padding: 23px 0 14px; }
    .login-heading { margin-bottom: 22px; }
    .login-title { font-size: 27px !important; }
}
@media (max-width: 520px) {
    .login-screen.login-screen--light { min-height: 100vh; min-height: 100svh; padding: 10px; }
    .login-shell { width: 100%; border-radius: 19px; }
    .login-showcase { min-height: 78px; padding: 14px 17px; }
    .showcase-brand { gap: 10px; min-height: 48px; }
    .showcase-logo { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
    .showcase-logo img { width: 35px; height: 35px; border-radius: 9px; }
    .showcase-brand-copy > span { font-size: 9px; }
    .showcase-brand-copy strong { font-size: 12px; }
    .login-panel { padding: 13px 19px 14px; }
    .login-topline { min-height: 31px; }
    .login-official-link { min-height: 29px; padding: 4px 7px; font-size: 10px; }
    .login-panel-content { padding: 17px 0 10px; }
    .login-heading { margin-bottom: 20px; }
    .login-eyebrow { margin-bottom: 9px; }
    .login-title { margin-bottom: 5px !important; font-size: 25px !important; }
    .login-heading > p { font-size: 11px; }
    .login-field { margin-bottom: 15px; }
    .login-field .form-control, .login-field input[type="text"], .login-field input[type="password"] { height: 49px !important; font-size: 12px !important; }
    .login-options { gap: 7px; margin-bottom: 16px; }
    .remember-choice { min-height: 38px; font-size: 10px; }
    .login-submit-wrap .btn, .login-submit-wrap button[type="submit"] { min-height: 49px; }
    .login-card-footer { margin-top: 16px; padding-top: 12px; }
    .login-copyright { margin-top: 11px; }
}
@media (max-height: 700px) and (min-width: 821px) {
    .login-screen.login-screen--light { padding-top: 15px; padding-bottom: 15px; }
    .login-shell { min-height: 630px; }
    .login-showcase { padding-top: 30px; padding-bottom: 22px; }
    .showcase-content { padding-top: 25px; padding-bottom: 20px; }
    .showcase-visual { bottom: 42px; transform: scale(.8); transform-origin: bottom left; }
    .login-panel-content { padding-top: 21px; padding-bottom: 8px; }
    .login-heading { margin-bottom: 21px; }
    .login-field { margin-bottom: 13px; }
    .login-options { margin-top: 1px; margin-bottom: 14px; }
    .login-card-footer { margin-top: 14px; padding-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-screen--light *, .login-screen--light *::before, .login-screen--light *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Isolate the unauthenticated login page from the legacy dashboard chrome. */
body.login-standalone-page,
body.login-standalone-page.no-skin {
    min-width: 0 !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #eef2f2 !important;
}
body.login-standalone-page #navbar { display: none !important; }
body.login-standalone-page #main-container {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.login-standalone-page #main-container > .main-content,
body.login-standalone-page #main-container .main-content-inner,
body.login-standalone-page #main-container .page-content {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
body.login-standalone-page #main-container .page-content > .row { margin: 0 !important; }
body.login-standalone-page #main-container .programs-content { width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.login-standalone-page #main-container > footer,
body.login-standalone-page #btn-scroll-up { display: none !important; }
body.login-standalone-page .login-screen.login-screen--light { min-height: 100vh; min-height: 100svh; }
@media (max-width: 820px) {
    body.login-standalone-page #main-container,
    body.login-standalone-page #main-container > .main-content { min-height: 100vh !important; }
}
