/* ============================================================================
   United University · iCampus Student Portal — Login makeover
   Loads AFTER DDS_CSS/Login_CSS/resources/logCss/style.css. Presentation only:
   no control IDs, classes, validators or the BotDetect CAPTCHA are touched.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    --uu-navy:  #0F3A6B;
    --uu-navy2: #143C69;
    --uu-blue:  #154E8D;
    --uu-maroon:#B3161D;
    --uu-line:  #E4E2DD;
    --uu-ink:   #22242A;
    --uu-muted: #6C6B64;
}

body.loginBody {
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--uu-ink);
    background: #EEF1F5;
    min-height: 100vh;
}

/* full-bleed brand backdrop, drop any campus photo from style.css */
.loginOverlay {
    background: linear-gradient(135deg, rgba(15,58,107,.94), rgba(122,20,32,.90)) !important;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;   /* top-align: a tall card no longer clips the UAT ribbon above the viewport */
    justify-content: center;
    padding: 22px 16px 28px;
    overflow-y: auto;
}
.loginOverlay .container-fluid,
.loginOverlay .container { padding: 0 !important; max-width: none; width: 100%; }
.loginOverlay .centerBody {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 880px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
}

/* neutralise WOW.js entrance hiding so panels always show */
.loginOverlay .wow { visibility: visible !important; animation: none !important; opacity: 1 !important; transform: none !important; }

/* the card — own flex layout, don't rely on the old bootstrap columns */
.centerBody .box-shadow-right {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(15,58,107,.45);
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}
/* brand panel: flow from the top so nothing clips; centre the form panel instead */
.centerBody .box-shadow-right > .bg-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* flow from top — heading never clips */
    align-items: flex-start;
}
.centerBody .box-shadow-right > .bg-left > * { flex: 0 0 auto; width: 100%; }
.centerBody .box-shadow-right > .bg-left > .uu-brand-logo { width: auto; }
.centerBody .box-shadow-right > .bg-right {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* pack the form and centre it in the (taller) card */
}
.centerBody .box-shadow-right > .bg-right > * { flex: 0 0 auto; width: 100%; max-width: 100%; }
.centerBody .box-shadow-right > [class*="col-"] { max-width: none; flex: 1 1 100%; }
.centerBody .box-shadow-right > .bg-left  { flex: 1 1 55%; max-width: 55%; }
.centerBody .box-shadow-right > .bg-right { flex: 1 1 45%; max-width: 45%; }
@media (max-width: 767px) {
    .loginOverlay { padding: 14px 10px; }
    .centerBody .box-shadow-right { align-items: flex-start; }
    .centerBody .box-shadow-right > .bg-left,
    .centerBody .box-shadow-right > .bg-right { flex: 1 1 100%; max-width: 100%; }
    /* login / buttons panel first on mobile */
    .centerBody .box-shadow-right > .bg-right { order: -1; }
    .centerBody .box-shadow-right > .bg-left  { order: 0; display: block; justify-content: flex-start; padding: 22px !important; }
    .box-shadow-right .bg-right,
    .box-shadow-right .loginField { padding: 22px !important; }
    .loginField .col-12 { margin-bottom: 6px !important; }
    .loginField hr { margin: 10px 0 14px; }
    .loginField .btn-block { margin-bottom: 10px !important; }
}

/* left / brand panel */
.box-shadow-right .bg-left,
.box-shadow-right .loginInfo {
    background: linear-gradient(160deg, var(--uu-navy) 0%, var(--uu-navy2) 55%, #7A1420 100%) !important;
    color: #fff;
    padding: 26px 30px !important;
}

/* ---- University campus photo — fills the top of the brand panel ----
   ONE static, optimised image. Save it as  images/campus-uu.jpg
   (~1600px wide, JPG, ideally < 250 KB). No slideshow, no transitions.
   If the file is missing the panel simply shows the brand gradient. */
.box-shadow-right .loginInfo {
    position: relative;
    padding-top: 300px !important;          /* == ::before height, so copy never touches the photo */
}
.box-shadow-right .loginInfo > * {
    position: relative;
    z-index: 1;                             /* copy always sits above the photo */
}
.box-shadow-right .loginInfo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    z-index: 0;
    background-color: var(--uu-navy);       /* fallback while / if image absent */
    background-image:
        linear-gradient(180deg, rgba(15,58,107,0) 0%, rgba(15,58,107,0) 48%, rgba(15,58,107,.18) 66%, var(--uu-navy2) 92%, var(--uu-navy2) 100%),
        url("../../images/campus-uu.jpg");
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center 42%;
    background-size: 100% 100%, cover;
}

/* United University logo plate (left panel, optional) */
.loginInfo .uu-brand-logo {
    display: inline-block;
    background: #fff;
    border-radius: 9px;
    padding: 7px 11px;
    margin-bottom: 10px;
}
.loginInfo .uu-brand-logo img { height: 26px; width: auto; display: block; }

.loginInfo h3 {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.loginInfo > h3 + * { font-size: 12.5px; line-height: 1.5; color: #DCE2EC; }

/* ---- Environment banner (shown only for non-production DeploymentMode) ---- */
.uu-env-ribbon {
    display: block;
    background: var(--uu-maroon);
    color: #fff;
    font: 700 13px/1.3 'Public Sans', system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 10px 24px -10px rgba(179,22,29,.6);
}
.uu-env-ribbon i { margin-right: 6px; }

.uu-expired-note {
    background: #EAF0F8;
    border: 1px solid #C6DAF0;
    color: #154E8D;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* show/hide password toggle (injected by uu-login.js) */
.uu-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9A998F;
    cursor: pointer;
    z-index: 5;
    font-size: 14px;
}
.uu-eye:hover { color: var(--uu-blue); }
.login-box .uu-eye { right: 46px; }   /* NewRegistration/Login has an append icon */

.uu-env-badge {
    display: inline-block;
    background: var(--uu-maroon);
    color: #fff;
    font: 800 12px/1 'Public Sans', system-ui, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.4);
    vertical-align: middle;
    margin-left: 10px;
}

/* ---- Right panel: University logo primary, iCampus as "powered by" ---- */
/* Bootstrap's .m-auto on the logo div is `margin:auto !important` — in a flex
   column it eats ALL free space and leaves a big gap under the logo on sparse
   pages (Default, ForgotPassword). Pin the vertical margins, keep it centred. */
.loginField .uu-brand-primary {
    margin: 4px auto 10px !important;
    align-self: center;
}
.loginField .uu-brand-primary img { max-height: 64px; width: auto; }
.loginField > .col-12[style] { margin-top: 14px !important; }
.loginField .uu-powered {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--uu-line);
    text-align: center;
    color: var(--uu-muted);
    font-size: 12px;
    letter-spacing: .04em;
}
.loginField .uu-powered img { max-height: 34px; width: auto; vertical-align: middle; margin-left: 8px; opacity: .95; }
.loginField .uu-powered .uu-dds { margin-top: 4px; font-size: 10.5px; letter-spacing: .03em; }
.loginField .uu-powered .uu-dds a { color: var(--uu-muted); text-decoration: none; }
.loginField .uu-powered .uu-dds a:hover { color: var(--uu-maroon); text-decoration: underline; }
.loginInfo p { color: #DCE2EC; font-size: 12.5px; line-height: 1.5; margin-bottom: 7px; }
/* Safety net: some deployed Web.config values for ClientWelcomeMsgDetails contain
   the blurb twice (legacy malformed markup). Only the first paragraph of the
   welcome text (a direct child <p> of .loginInfo) is shown, so a doubled value
   can't bloat the brand panel. Fix the config to a single <p> for the real fix. */
.loginInfo > p:nth-of-type(n+2) { display: none; }

/* attention pulse for the "New Registration" CTA on Default.aspx */
@keyframes uu-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(238,29,37,.55); }
    50%      { box-shadow: 0 0 0 10px rgba(238,29,37,0); }
}
.loginField .uu-blink {
    animation: uu-blink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .loginField .uu-blink { animation: none; }
}

/* "Student Portal Home" link on the brand panel */
.loginInfo .uu-home-link {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 8px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}
.loginInfo .uu-home-link:hover { background: rgba(255,255,255,.12); color: #fff; }
/* collapse the bootstrap spacing in the "For More Details / contact" block */
.loginInfo > .col-12 { padding: 0 !important; }
.loginInfo > .col-12 .row { margin-left: 0 !important; margin-right: 0 !important; }
.loginInfo > .col-12 [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
.loginInfo > .col-12 .mb-4 { margin-bottom: 0 !important; }
.loginInfo .border-bottom {
    border-color: rgba(255,255,255,.18) !important;
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
    margin-bottom: .35rem;
}
.loginInfo .btn.btn-sm { margin: .35rem 0 !important; }
.loginInfo a.btn-danger {
    background: transparent;
    border: 1px solid rgba(255,255,255,.55);
    color: #fff;
    border-radius: 10px;
}
.loginInfo a.btn-danger:hover { background: rgba(255,255,255,.12); }
.loginInfo a[style*="yellow"] { color: #fff !important; }

/* right / form panel */
.box-shadow-right .bg-right,
.box-shadow-right .loginField {
    background: #fff !important;
    padding: 24px 28px !important;
}
.loginLogo { margin-bottom: 2px; }
.loginLogo img { max-height: 34px; width: auto; }
.loginField hr { border-top: 1px solid var(--uu-line); margin: 10px 0 8px; }
.loginField .uu-portal-title {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--uu-navy);
    text-align: center;
    letter-spacing: .02em;
    margin-bottom: 10px;
}

/* inputs */
.loginField .input-group { margin-bottom: 9px !important; display: flex; }
.loginField .input-group-text {
    background: #F5F6F4;
    border: 1px solid #D9D7D1;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--uu-muted);
    min-width: 44px;
    justify-content: center;
}
.loginField .form-control {
    height: 40px;
    border: 1px solid #D9D7D1;
    border-radius: 0 10px 10px 0;
    box-shadow: none;
    color: var(--uu-ink);
    font-size: 14px;
}
.loginField .form-control:focus {
    border-color: var(--uu-blue);
    box-shadow: 0 0 0 3px rgba(21,78,141,.12);
}
/* ---- BotDetect CAPTCHA row — tidy, centred ---- */
.loginField .input-group.uu-captcha {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center !important;
}
/* the standalone refresh chip next to the captcha is redundant — hide it */
.loginField .uu-captcha > .input-group-prepend { display: none !important; }

.loginField .uu-captcha > .BDC_CaptchaDiv,
.loginField .uu-captcha > .BDC_CaptchaDiv.form-control {
    display: inline-flex !important;
    flex: 0 0 auto !important;   /* stop Bootstrap's .form-control from stretching it full-width */
    align-items: center;
    gap: 8px;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.loginField .BDC_CaptchaImageDiv { line-height: 0; }
.loginField .BDC_CaptchaImageDiv > a { display: block; line-height: 0; }
.loginField .BDC_CaptchaImage {
    display: block;
    height: 40px !important;
    width: auto !important;
    border: 1px solid #D9D7D1;
    border-radius: 8px;
    background: #fff;
}
.loginField .BDC_CaptchaIconsDiv {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.loginField .BDC_CaptchaIconsDiv > a { display: block; line-height: 0; }
.loginField .BDC_CaptchaIconsDiv img { width: 16px; height: 16px; opacity: .75; }
.loginField .BDC_CaptchaIconsDiv img:hover { opacity: 1; }

/* buttons */
.loginField .btn { border-radius: 10px; font-weight: 600; }
.loginField .btn:not(.btn-block) { height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.loginField .btn-block { height: auto; padding: 11px 12px !important; font-size: .96rem !important; line-height: 1.3; }
.loginField .btn-block small,
.loginField .btn-block span { font-size: 11px; font-weight: 500; opacity: .92; }
.loginField .btn-complete {
    background: var(--uu-navy);
    border-color: var(--uu-navy);
    color: #fff;
    min-width: 130px;
}
.loginField .btn-complete:hover { background: #0c2e55; border-color: #0c2e55; color: #fff; }
.loginField .btn-danger {
    background: var(--uu-maroon);
    border-color: var(--uu-maroon);
    color: #fff;
}
.loginField .btn-danger:hover { background: #8d1017; border-color: #8d1017; color: #fff; }
.loginField .btn-info {
    background: #fff;
    border: 1px solid var(--uu-line);
    color: var(--uu-ink);
}
.loginField .btn-info:hover { background: #F5F5F3; color: var(--uu-ink); }

/* validators / message */
.loginField .input-group [style*="color: red"] { font-size: 13px !important; margin-top: 14px !important; }

@media (max-width: 767px) {
    .box-shadow-right .bg-left,
    .box-shadow-right .loginInfo { padding: 30px 24px !important; }
    .centerBody .box-shadow-right > .loginInfo { padding-top: 175px !important; }
    .box-shadow-right .loginInfo::before { height: 175px; }
    .box-shadow-right .bg-right,
    .box-shadow-right .loginField { padding: 30px 24px !important; }
}
