html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.portal-auth-page {
    min-height: 100vh;
    font-family: "Source Sans Pro", Arial, sans-serif;
    background: linear-gradient(90deg, #071633 0%, #132a66 55%, #1f3f99 100%);
}

.portal-auth-page * {
    box-sizing: border-box;
}

.portal-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 15px;
}

.portal-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.portal-auth-logo {
    margin-bottom: 10px;
}

.portal-logo-img {
    max-width: 120px;
    width: 100%;
    height: auto;
    opacity: 0.95;
}

.portal-auth-title {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0a1733;
    margin-bottom: 8px;
}

.portal-auth-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #41536f;
    max-width: 360px;
    margin: 0 auto;
}

.portal-alert {
    border-radius: 10px;
    font-size: 0.94rem;
    margin-bottom: 16px;
}

.portal-label {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0a1733;
    margin-bottom: 8px;
}

.portal-label-icon {
    font-size: 0.88rem;
    margin-right: 8px;
    color: #4a67b3;
}

.portal-input {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #cfd8e6;
    font-size: 0.98rem;
    padding: 10px 14px;
    box-shadow: none !important;
}

.portal-input:focus {
    border-color: #2d4ea2;
    box-shadow: 0 0 0 0.15rem rgba(45, 78, 162, 0.15) !important;
}

.portal-btn-submit {
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #1f3f99;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.2s ease-in-out;
}

.portal-btn-submit:hover,
.portal-btn-submit:focus {
    background: #19357f;
    color: #ffffff;
}

.portal-link {
    color: #1f3f99;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-link:hover {
    color: #132d70;
    text-decoration: underline;
}

.portal-auth-footer small {
    display: inline-block;
    color: #7a869c;
    font-size: 0.66rem;
    line-height: 1.25;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .portal-auth-card {
        max-width: 100%;
        padding: 24px 20px 26px;
        border-radius: 18px;
    }

    .portal-auth-title {
        font-size: 1.65rem;
    }

    .portal-auth-subtitle {
        font-size: 0.94rem;
    }

    .portal-logo-img {
        max-width: 130px;
    }

    .portal-input {
        height: 44px;
    }

    .portal-btn-submit {
        height: 46px;
    }
}

.portal-alert {
    border-radius: 10px;
    font-size: 0.90rem;
    line-height: 1.4;
    margin-bottom: 14px;
    text-align: left;
}