/* ================================================================
   GCIHS PASSWORD RESET PORTAL
   Global Site Styling
   ================================================================ */

:root {
    --gcihs-blue: #073f82;
    --gcihs-deep-blue: #062d5e;
    --gcihs-light-blue: #eaf3fc;
    --gcihs-red: #9c0b0b;
    --gcihs-text: #14233d;
    --gcihs-muted: #65758f;
    --gcihs-border: rgba(24, 57, 96, 0.15);
    --gcihs-white: #ffffff;
}


/* ================================================================
   BASE
   ================================================================ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    min-height: 100%;
}

body.portal-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    color: var(--gcihs-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #eaf0f6;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
}


/* ================================================================
   GLOBAL BACKGROUND
   ================================================================ */

.portal-background {
    position: fixed;
    inset: 0;

    z-index: -3;

    background-image: url('/images/portal-background.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Background remains still while pages scroll */
    background-attachment: fixed;
}


/*
   Soft white overlay.

   This keeps text and forms readable while still allowing
   the school background image to remain visible.
*/
/*.portal-background-overlay {
    position: fixed;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            110deg,
            rgba(240, 247, 253, 0.74) 0%,
            rgba(245, 249, 253, 0.65) 42%,
            rgba(234, 243, 250, 0.72) 100%
        );

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    pointer-events: none;
}
*/

/* ================================================================
   HEADER
   ================================================================ */

.portal-header {
    position: relative;
    z-index: 100;

    padding: 12px 22px 0;
}


/* Main navigation panel */
.portal-navbar {
    min-height: 78px;

    padding: 8px 18px;

    background: rgba(255, 255, 255, 0.93);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(18, 47, 79, 0.09);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.portal-nav-container {
    max-width: 1450px;
    margin: 0 auto;
}


/* ================================================================
   SERVICE DESK LOGO
   ================================================================ */

.portal-brand {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    text-decoration: none;
}


/*
   This is the small GCIHS Service Desk image replacing
   the old "passwordportal" text.
*/
.portal-brand-logo {
    display: block;

    width: auto;
    height: 58px;

    max-width: 290px;

    object-fit: contain;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.portal-brand:hover .portal-brand-logo {
    transform: scale(1.02);
    opacity: 0.94;
}


/* ================================================================
   NAVIGATION LINKS
   ================================================================ */

.portal-nav-links {
    gap: 5px;
}


.portal-nav-links .nav-link {
    color: var(--gcihs-text);

    font-size: 15px;
    font-weight: 500;

    padding: 10px 14px !important;

    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.portal-nav-links .nav-link:hover {
    color: var(--gcihs-blue);

    background: rgba(7, 63, 130, 0.06);
}


.nav-home-icon {
    color: var(--gcihs-blue);

    font-size: 20px;

    margin-right: 5px;

    vertical-align: -1px;
}


.nav-divider {
    width: 1px;
    height: 24px;

    margin: auto 5px;

    background: rgba(30, 57, 88, 0.16);
}


/* ================================================================
   MOBILE NAVIGATION
   ================================================================ */

.portal-toggler {
    border: 1px solid rgba(20, 49, 82, 0.18);

    border-radius: 8px;

    padding: 7px 9px;
}


.portal-toggler:focus {
    box-shadow:
        0 0 0 0.15rem rgba(7, 63, 130, 0.15);
}


/* ================================================================
   PAGE AREA
   ================================================================ */

.portal-page-wrapper {
    position: relative;

    flex: 1;

    width: 100%;

    padding:
        65px
        24px
        80px;
}


.portal-main {
    width: 100%;

    max-width: 1180px;

    margin: 0 auto;
}


/* ================================================================
   GENERAL CONTENT CARD
   ---------------------------------------------------------------
   Existing pages can use Bootstrap cards, but this gives them
   the same glass-like appearance as the mockup.
   ================================================================ */

.card {
    background: rgba(255, 255, 255, 0.94);

    border:
        1px solid rgba(255, 255, 255, 0.82);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(19, 48, 80, 0.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* ================================================================
   HEADINGS
   ================================================================ */

h1,
h2,
h3 {
    color: var(--gcihs-text);
}


h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 600;
}


/* ================================================================
   FORM CONTROLS
   ================================================================ */

.form-control {
    min-height: 54px;

    border:
        1px solid rgba(44, 78, 117, 0.22);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.94);

    color: var(--gcihs-text);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-control:focus {
    border-color: rgba(7, 63, 130, 0.55);

    box-shadow:
        0 0 0 0.2rem rgba(7, 63, 130, 0.10);

    background: #fff;
}


.form-control::placeholder {
    color: #8795a9;
}


.form-label {
    color: var(--gcihs-text);

    font-weight: 600;
}


/* ================================================================
   BUTTONS
   ================================================================ */

.btn-primary {
    min-height: 52px;

    background:
        linear-gradient(
            135deg,
            var(--gcihs-deep-blue),
            var(--gcihs-blue)
        );

    border: none;

    border-radius: 9px;

    font-weight: 500;

    box-shadow:
        0 7px 18px rgba(7, 63, 130, 0.15);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}


.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #052854,
            #064b9c
        );

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(7, 63, 130, 0.20);
}


.btn-primary:active {
    transform: translateY(0);
}


.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow:
        0 0 0 0.20rem rgba(7, 63, 130, 0.13);
}


/* ================================================================
   LINKS
   ================================================================ */

a {
    color: var(--gcihs-blue);
}


a:hover {
    color: var(--gcihs-deep-blue);
}


/* ================================================================
   ALERTS
   ================================================================ */

.alert {
    border-radius: 10px;
    border-width: 1px;
}


/* ================================================================
   PRIVACY PAGE
   ================================================================ */

/*
   Your existing Privacy.cshtml classes are supported here.
*/

.privacy-page {
    max-width: 900px;

    margin: 0 auto;

    padding: 42px 50px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(19, 48, 80, 0.12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.privacy-header {
    text-align: center;

    padding-bottom: 28px;

    margin-bottom: 34px;

    border-bottom:
        1px solid rgba(31, 62, 97, 0.13);
}


.privacy-cross {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    margin-bottom: 10px;

    color: var(--gcihs-blue);
}


.privacy-school {
    margin: 0 0 8px;

    color: var(--gcihs-muted);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.6px;

    text-transform: uppercase;
}


.privacy-header h1 {
    margin: 0;

    font-size: 36px;

    font-weight: 600;
}


.privacy-subtitle {
    margin-top: 8px;

    color: var(--gcihs-muted);

    font-size: 14px;
}


.privacy-section {
    margin-bottom: 30px;
}


.privacy-section h2 {
    margin-bottom: 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

    font-weight: 600;
}


.privacy-section p {
    margin-bottom: 12px;
}


.privacy-section li {
    margin-bottom: 6px;
}


.security-notice {
    margin: 30px 0;

    padding: 20px 22px;

    background:
        rgba(235, 243, 251, 0.72);

    border:
        1px solid rgba(7, 63, 130, 0.12);

    border-left:
        4px solid var(--gcihs-blue);

    border-radius: 8px;
}


.security-notice strong {
    display: block;

    margin-bottom: 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
}


.security-notice p {
    margin: 0;
}


.help-section {
    margin: 35px 0;

    padding: 22px 24px;

    border:
        1px solid rgba(31, 62, 97, 0.15);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.45);
}


.privacy-scripture {
    margin-top: 45px;

    padding-top: 28px;

    border-top:
        1px solid rgba(31, 62, 97, 0.13);

    text-align: center;

    color: var(--gcihs-muted);
}


.privacy-scripture blockquote {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    font-style: italic;
}


.privacy-scripture cite {
    display: block;

    margin-top: 7px;

    font-size: 12px;

    font-style: normal;

    letter-spacing: 0.8px;
}


.privacy-footer {
    margin-top: 35px;

    padding-top: 20px;

    border-top:
        1px solid rgba(31, 62, 97, 0.13);

    text-align: center;

    color: var(--gcihs-muted);

    font-size: 12px;
}


.privacy-footer p {
    margin: 3px 0;
}


/* ================================================================
   SITE FOOTER
   ================================================================ */

.portal-footer {
    position: relative;
    z-index: 10;

    width: 100%;

    padding: 25px 5%;

    background:
        rgba(255, 255, 255, 0.94);

    border-top:
        1px solid rgba(31, 62, 97, 0.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--gcihs-muted);
}


.portal-footer-inner {
    max-width: 1450px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.portal-footer-school {
    font-size: 13px;
}


.portal-footer-department {
    margin-top: 3px;

    font-size: 12px;
}


.portal-footer-links {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 13px;
}


.portal-footer-links a {
    text-decoration: none;

    color: var(--gcihs-blue);
}


.portal-footer-links a:hover {
    text-decoration: underline;
}


.portal-footer-links span {
    color: rgba(38, 67, 100, 0.22);
}


/* ================================================================
   RAZOR / BOOTSTRAP FORM-FLOATING COMPATIBILITY
   ================================================================ */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);

    text-align: end;
}


.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ================================================================
   TABLETS
   ================================================================ */

@media (max-width: 991px) {

    .portal-page-wrapper {
        padding:
            45px
            20px
            65px;
    }

    .portal-brand-logo {
        height: 52px;
        max-width: 240px;
    }

    .privacy-page {
        padding: 38px 35px;
    }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 767px) {

    .portal-header {
        padding: 8px 8px 0;
    }

    .portal-navbar {
        min-height: 68px;

        padding: 7px 12px;

        border-radius: 11px;
    }

    .portal-brand-logo {
        height: 48px;

        max-width: 205px;
    }

    .portal-navbar .navbar-collapse {
        padding:
            15px
            5px
            8px;
    }

    .portal-nav-links {
        align-items: stretch !important;
    }

    .portal-nav-links .nav-link {
        padding:
            10px
            12px !important;
    }

    .portal-page-wrapper {
        padding:
            30px
            12px
            50px;
    }

    /*
       Fixed background attachment can perform poorly on
       some mobile browsers, so use normal fixed positioning
       from .portal-background instead.
    */
    .portal-background {
        background-attachment: scroll;
    }

    .privacy-page {
        padding:
            30px
            22px;

        border-radius: 13px;
    }

    .privacy-header h1 {
        font-size: 30px;
    }

    .portal-footer {
        padding:
            22px
            18px;
    }

    .portal-footer-inner {
        flex-direction: column;

        text-align: center;

        gap: 15px;
    }

    .portal-footer-links {
        justify-content: center;

        gap: 12px;
    }
}


/* ================================================================
   VERY SMALL SCREENS
   ================================================================ */

@media (max-width: 420px) {

    .portal-brand-logo {
        height: 43px;
        max-width: 180px;
    }

    .privacy-page {
        padding:
            25px
            17px;
    }
}
/* ================================================================
   PASSWORD RESET HOMEPAGE
   ================================================================ */

.reset-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 610px;
}

.reset-card {
    width: 100%;
    max-width: 665px;

    padding: 48px 44px 38px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 19px;

    box-shadow:
        0 20px 55px rgba(14, 42, 73, 0.16);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


/* GCIHS heading with horizontal lines */

.reset-card-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-bottom: 16px;

    color: var(--gcihs-text);

    font-size: 13px;
    letter-spacing: 4px;
}

.reset-card-brand span {
    width: 100px;
    height: 1px;

    background:
        rgba(46, 78, 113, 0.25);
}

.reset-card-brand strong {
    font-weight: 700;
}


/* Main heading */

.reset-heading {
    text-align: center;
    margin-bottom: 30px;
}

.reset-heading h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(31px, 4vw, 42px);

    font-weight: 600;

    color: #14233d;
}

.reset-heading p {
    margin: 10px 0 0;

    color: var(--gcihs-muted);

    font-size: 16px;
}


/* Information panel */

.reset-info {
    display: flex;
    align-items: center;

    gap: 17px;

    margin-bottom: 27px;

    padding: 18px 20px;

    background:
        rgba(226, 239, 252, 0.72);

    border:
        1px solid rgba(7, 63, 130, 0.05);

    border-radius: 11px;
}

.reset-info-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(180, 213, 246, 0.55);

    font-size: 23px;
}

.reset-info strong {
    display: block;

    margin-bottom: 3px;

    color: var(--gcihs-text);

    font-size: 15px;
}

.reset-info p {
    margin: 0;

    color: var(--gcihs-muted);

    font-size: 14px;
}


/* Form */

.reset-field {
    margin-bottom: 22px;
}

.reset-field label {
    display: block;

    margin-bottom: 9px;

    color: var(--gcihs-text);

    font-size: 15px;
    font-weight: 600;
}

.reset-input-wrapper {
    position: relative;
}

.reset-input-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    font-size: 18px;

    opacity: 0.65;

    pointer-events: none;
}

.reset-input {
    height: 57px;

    padding-left: 50px !important;

    font-size: 15px;
}

.reset-field-help {
    display: block;

    margin-top: 8px;

    color: var(--gcihs-muted);

    font-size: 12px;
}


/* Continue button */

.reset-continue {
    width: 100%;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    font-size: 16px;
}

.reset-arrow {
    position: absolute;
    right: 26px;

    font-size: 23px;

    line-height: 1;
}


/* ASP.NET response messages */

.reset-message {
    margin-top: 20px;
    margin-bottom: 0;

    font-size: 14px;
}


/* Help section */

.reset-help {
    margin-top: 29px;

    text-align: center;
}

.reset-help-divider {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
}

.reset-help-divider span {
    flex: 1;

    height: 1px;

    background:
        rgba(38, 68, 102, 0.14);
}

.reset-help-divider small {
    color: #8b98aa;
}

.reset-help > strong {
    display: block;

    color: var(--gcihs-blue);

    font-size: 15px;

    margin-bottom: 4px;
}

.reset-help > p {
    margin: 0;

    color: var(--gcihs-muted);

    font-size: 14px;
}


/* Security footer */

.reset-security-note {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: 26px;
    padding-top: 20px;

    border-top:
        1px solid rgba(38, 68, 102, 0.10);

    text-align: center;

    color: #7b899b;
}

.reset-security-note small {
    font-size: 11px;
}


/* ================================================================
   RESPONSIVE RESET CARD
   ================================================================ */

@media (max-width: 767px) {

    .reset-page {
        min-height: auto;

        align-items: flex-start;
    }

    .reset-card {
        padding:
            36px
            24px
            30px;

        border-radius: 15px;
    }

    .reset-card-brand {
        gap: 12px;
    }

    .reset-card-brand span {
        width: 60px;
    }

    .reset-heading h1 {
        font-size: 31px;
    }

    .reset-heading p {
        font-size: 14px;
    }

    .reset-info {
        padding: 15px;

        align-items: flex-start;
    }

    .reset-info-icon {
        flex-basis: 45px;

        width: 45px;
        height: 45px;

        font-size: 19px;
    }
}


@media (max-width: 420px) {

    .reset-card {
        padding:
            30px
            18px
            26px;
    }

    .reset-card-brand span {
        width: 42px;
    }

    .reset-heading h1 {
        font-size: 27px;
    }

    .reset-info {
        gap: 12px;
    }
}