@charset "UTF-8";

:root {
    --login-navy: #06295b;
    --login-navy-dark: #031f47;
    --login-green: #0a9c62;
    --login-text: #12213a;
    --login-muted: #7b8799;
    --login-border: #dfe5ec;
}

* {
    box-sizing: border-box;
}

html,
body,
form {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--login-text);
    background: #f7f9fc url("/Content/images/login-pattern.png") center / cover fixed no-repeat;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgba(249, 251, 254, .78);
}

.page-spinner {
    position: fixed;
    z-index: 4000;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(7, 18, 39, .42);
}

.page-spinner.is-visible {
    display: grid;
}

.page-spinner-box {
    display: grid;
    gap: 12px;
    min-width: 160px;
    padding: 22px 28px;
    color: #17324d;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .2);
    place-items: center;
    font-size: 14px;
    font-weight: 650;
}

.page-spinner .spinner-border {
    width: 2.4rem;
    height: 2.4rem;
    border-width: .28em;
    color: #0a9c62;
}

.login-shell {
    display: flex;
    min-height: 100vh;
    padding: 34px 28px 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-card {
    display: grid;
    width: min(920px, 100%);
    min-height: 560px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(23, 43, 77, .16);
    grid-template-columns: 42% 58%;
}

.login-brand-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 48px;
    color: #fff;
    background: linear-gradient(155deg, #06295b, #031f47);
    align-items: center;
}

.login-brand-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .38;
    background: url("/Content/images/login-pattern.png") center bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 12%, transparent 34%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 12%, transparent 34%, #000 100%);
    mix-blend-mode: screen;
}

.login-brand-panel::after {
    display: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-logo {
    display: block;
    width: min(280px, 92%);
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
}

.brand-message {
    margin-top: 48px;
    padding-left: 18px;
    border-left: 2px solid rgba(22, 199, 132, .7);
}

.brand-message strong,
.brand-message span {
    display: block;
}

.brand-message strong {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 700;
}

.brand-message span {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}

.login-form-panel {
    display: flex;
    padding: 42px 48px;
    align-items: center;
    justify-content: center;
}

.login-form-content {
    width: min(380px, 100%);
}

.token-redirect {
    display: flex;
    width: min(380px, 100%);
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.token-redirect-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    color: #fff;
    background: var(--login-green);
    border-radius: 50%;
    place-items: center;
    font-size: 38px;
    box-shadow: 0 10px 22px rgba(10, 156, 98, .28);
    animation: tokenIconPop .55s cubic-bezier(.2, 1.4, .3, 1) both, tokenIconPulse 1.6s ease-in-out .55s infinite;
}

.token-redirect-icon i {
    line-height: 1;
}

.token-redirect p {
    margin: 0;
    color: var(--login-text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
    animation: tokenTextIn .45s ease .12s both;
}

.token-dots {
    display: inline-block;
    overflow: hidden;
    width: 0;
    vertical-align: bottom;
    letter-spacing: .04em;
    animation: tokenDots 1.2s steps(4, end) infinite;
}

@keyframes tokenIconPop {
    0% {
        opacity: 0;
        transform: scale(.4);
    }

    70% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tokenIconPulse {
    0%,
    100% {
        box-shadow: 0 10px 22px rgba(10, 156, 98, .28);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 14px 28px rgba(10, 156, 98, .42);
        transform: scale(1.05);
    }
}

@keyframes tokenTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tokenDots {
    0% {
        width: 0;
    }

    100% {
        width: 1.15em;
    }
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.7px;
}

.login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 15px;
}

.login-alert {
    display: flex;
    gap: 9px;
    margin-bottom: 22px;
    padding: 11px 14px;
    align-items: center;
    font-size: 14px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    color: #657287;
    font-size: 20px;
    transform: translateY(-50%);
}

.input-wrap .form-control {
    height: 46px;
    padding: 0 44px 0 46px;
    color: #172033;
    background: #fff;
    border: 1px solid var(--login-border);
    border-radius: 6px;
    font-size: 14px;
    box-shadow: none;
}

.input-wrap .form-control::placeholder {
    color: #9aa5b5;
}

.input-wrap .form-control:focus {
    border-color: var(--login-green);
    box-shadow: 0 0 0 3px rgba(10, 156, 98, .1);
}

.password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #657287;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 19px;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--login-green);
    background: #f1f7f4;
}

.login-options {
    display: flex;
    margin: 4px 0 24px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.remember-option {
    display: flex;
    gap: 9px;
    cursor: pointer;
    align-items: center;
}

.remember-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--login-green);
}

.forgot-link {
    color: #0757b8;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 46px;
    color: #fff;
    background: linear-gradient(90deg, #0aa76d, #07945e);
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(10, 156, 98, .2);
}

.login-submit:hover,
.login-submit:focus {
    color: #fff;
    background: linear-gradient(90deg, #099660, #087f53);
}

.login-divider {
    display: flex;
    gap: 18px;
    margin: 28px 0 20px;
    color: #98a2b3;
    align-items: center;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    height: 1px;
    content: "";
    background: #e5e9ef;
    flex: 1;
}

.authorized-note {
    display: flex;
    gap: 10px;
    margin: 0;
    color: #7a8699;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.login-footer {
    margin-top: 25px;
    color: #7d8898;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .login-card {
        width: min(620px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 220px;
        padding: 38px 48px;
    }

    .login-logo {
        width: 250px;
    }

    .brand-message {
        margin-top: 30px;
    }

    .login-form-panel {
        padding: 52px 48px;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 0;
        justify-content: flex-start;
    }

    .login-card {
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        min-height: 175px;
        padding: 28px;
    }

    .login-logo {
        width: 220px;
    }

    .brand-message {
        display: none;
    }

    .login-form-panel {
        padding: 42px 25px;
    }

    .login-heading h1 {
        font-size: 28px;
    }

    .login-options {
        font-size: 14px;
    }

    .login-footer {
        padding: 0 15px 18px;
    }
}
