.portal-login-page {
    background: #f1f5ff !important;
}

.portal-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 2.5rem 1rem;
}

.portal-login-main > [data-pwa-update] {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.portal-login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    padding: 2.25rem;
    border: 1px solid #e0e7f0;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(37, 87, 180, .1), 0 2px 6px rgba(31, 41, 55, .03);
}

.portal-login-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #245df5, #6ca6ff);
    content: "";
}

.portal-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.6rem;
    border: 1px solid #4178ff;
    border-radius: .7rem;
    background: #245df5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(36, 93, 245, .22);
}

.portal-login-brand svg {
    width: 24px;
    height: 24px;
}

.portal-login-header {
    margin-bottom: 1.9rem;
}

.portal-login-header h1 {
    margin: 0 0 .5rem;
    color: #172033;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.25;
}

.portal-login-header p {
    margin: 0;
    color: #64748b;
    font-size: .85rem;
    line-height: 1.6;
}

.portal-login-card .form-group {
    margin-bottom: 1.25rem;
}

.portal-login-card label {
    margin-bottom: .45rem;
    color: #263247;
    font-size: .8125rem;
    font-weight: 600;
}

.portal-login-card .form-control {
    height: 46px;
    padding: .7rem .85rem;
    border: 1px solid #dce3ec;
    border-radius: .5rem;
    background: #fff;
    color: #1f2937;
    font-size: .85rem;
}

.portal-login-card .form-control:focus {
    border-color: #6794ff;
    box-shadow: 0 0 0 3px rgba(36, 93, 245, .12);
}

.portal-login-card .form-control::placeholder {
    color: #78879a;
    opacity: 1;
}

.portal-login-password {
    position: relative;
}

.portal-login-password .form-control {
    padding-right: 3rem;
}

.portal-login-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.portal-login-password-toggle[hidden] {
    display: none;
}

.portal-login-password-toggle:hover {
    color: #245df5;
}

.portal-login-password-toggle:focus-visible {
    outline: 2px solid #245df5;
    outline-offset: -4px;
}

.portal-login-eye {
    width: 20px;
    height: 20px;
}

.portal-login-eye-slash {
    display: none;
}

.portal-login-password-toggle[aria-pressed="true"] .portal-login-eye-slash {
    display: block;
}

.portal-login-recovery {
    margin: -.15rem 0 1.6rem;
    text-align: right;
}

.portal-login-card a {
    color: #2458df;
    font-size: .8rem;
    font-weight: 600;
}

.portal-login-card a:hover {
    color: #1743b4;
}

.portal-login-card .portal-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: .55rem;
    border: 1px solid #245df5;
    border-radius: .5rem;
    background: #245df5;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(36, 93, 245, .18);
}

.portal-login-card .portal-login-submit:hover,
.portal-login-card .portal-login-submit:focus {
    border-color: #174bd7;
    background: #174bd7;
    box-shadow: 0 4px 12px rgba(36, 93, 245, .25);
    transform: none;
}

.portal-login-submit svg {
    width: 18px;
    height: 18px;
}

.portal-login-first-access {
    margin: 1.6rem 0 0;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.7;
    text-align: center;
}

.portal-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.15rem;
    color: #64748b;
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
}

.portal-login-footer svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

@media (max-width: 575.98px) {
    .portal-login-main {
        padding: 1.5rem 1rem;
    }

    .portal-login-card {
        padding: 1.75rem 1.5rem;
    }

    .portal-login-header h1 {
        font-size: 1.375rem;
    }
}
