/* ============================================================
   portal-shared.css
   Shared styles for all portal pages (login, forgot-password,
   forgot-account-number, request-account, fasttrack).
   ============================================================ */

@font-face {
    font-family: 'Montserrat';
    src: url('./Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('embedded-opentype'), /* Internet Explorer */
    url('./Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('woff2'), /* Super Modern Browsers */
    url('./Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('woff'), /* Pretty Modern Browsers */
    url('./Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype'), /* Safari, Android, iOS */
    url('./Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('svg'); /* Legacy iOS */
}

body {
    background-color: #F4FAFE;
    margin: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Decorative images --- */

.gradient-top-right {
    position: absolute;
    max-height: 51.8%;
    width: auto;
    top: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.gradient-bottom-left {
    position: absolute;
    max-height: 56.2%;
    height: auto;
    left: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.main-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    height: auto;
    width: auto;
    max-height: 42%;
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

/* --- Logo --- */

.allied-logo {
    position: relative;
    width: 175px;
    height: 38.44px;
}

/* --- Page heading --- */

.portal-page-heading {
    position: relative;
    width: auto;
    height: 40px;
    font-family: 'roc-grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    display: block;
    text-align: center;
    color: #052331;
}

/* --- Form elements --- */

.portal-page-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
    width: auto;
    height: auto;
}

.portal-form-field-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: inherit;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.portal-form-validation-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
}

.portal-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
    width: 100%;
    max-width: 480px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.portal-form-label {
    position: relative;
    font-family: 'roc-grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.005em;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.portal-form-control {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
    max-width: 480px;
    height: 49px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: #7F868A;
    background: #FFFFFF;
    border: 1px solid #7F868A;
    border-radius: 8px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.input-group {
    position: relative;
}

.portal-form-submit-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    gap: 4px;
    width: 100%;
    max-width: 480px;
    height: 54px;
    background: #D1EBF8;
    color: #FFFFFF;
    font-family: 'roc-grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    border-radius: 8px;
    border-color: #D1EBF8;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.active-button {
    background: #3EC0FB;
    border-color: #3EC0FB;
}

/* --- Footer --- */

.footer-rect {
    width: 100%;
    min-height: 40px;
    background-color: #FFFFFF;
    position: relative;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.footer-text {
    position: relative;
    padding-right: 100px;
    margin-top: auto;
    margin-bottom: auto;
    vertical-align: middle;
    font-family: 'roc-grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    text-align: right;
    color: #2e2e2e;
}

.portal-link {
    color: #3EC0FB;
}

/* --- Validation toast --- */

.message-container {
    width: 100%;
    height: 60px;
    position: fixed;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 4;
}

.message-rect {
    width: 100%;
    min-height: 60px;
    position: absolute;
    left: 0;
    bottom: -60px;
    display: flex;
    align-items: center;
    justify-content: left;
    background-color: rgba(0, 0, 0, 0.54);
    transition: bottom 0.75s ease-in-out;
    z-index: 2;
}

.message-rect.show-message {
    bottom: 0px;
}

.validation-message {
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 700;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 18.4px;
    padding-left: 20px;
}

.validation-message span {
    display: block;
    margin: 10px 0px 10px 0px;
}

/* ============================================================
   Responsive breakpoints — shared across all portal pages
   ============================================================ */

@media only screen and (max-width: 992px) {
    .main-photo,
    .gradient-bottom-left {
        display: none;
    }

    .footer-rect {
        justify-content: center;
    }

    .footer-text {
        padding-right: 0px;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    .gradient-top-right {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    .allied-logo {
        width: 140px;
        height: auto;
    }

    .portal-page-heading {
        font-size: 24px;
        line-height: 30px;
        height: auto;
    }

    .footer-text {
        font-size: 10px;
        line-height: 14px;
    }
}
