.portal-login-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 97, 150, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 28%),
        linear-gradient(135deg, #f4f8fb 0%, #eef3f8 42%, #f8fbfd 100%);
    color: #12304b;
}

.portal-login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-login-topbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(18, 48, 75, 0.08);
    backdrop-filter: blur(14px);
}

.portal-login-topbar-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.portal-login-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.portal-login-brand-full {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.portal-login-topbar-copy {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a647a;
    text-align: right;
}

.portal-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 6px 0;
    min-height: 0;
}

.portal-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
    gap: 16px;
    align-items: stretch;
}

.portal-login-story-panel,
.portal-login-card {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(17, 55, 88, 0.12);
}

.portal-login-story-panel {
    position: relative;
    min-height: 100%;
    padding: 20px 24px;
    background:
        linear-gradient(140deg, rgba(12, 49, 82, 0.96), rgba(16, 78, 122, 0.92)),
        linear-gradient(135deg, #0b3153 0%, #114e7a 100%);
    color: #eff8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-story-panel::after {
    content: "";
    position: absolute;
    inset: auto -70px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.portal-login-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #dff2ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-login-hero {
    width: 100%;
    text-align: center;
}

.portal-login-hero-logo {
    margin-bottom: 12px;
}

.portal-login-hero-logo-image {
    width: min(260px, 72%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(7, 28, 50, 0.24));
}

.portal-login-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.portal-login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.portal-login-feature-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.portal-login-feature-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
}

.portal-login-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 20px 24px;
    border: 1px solid rgba(18, 48, 75, 0.08);
}

.portal-login-card-head h2 {
    margin: 8px 0 4px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #113754;
}

.portal-login-card-head p {
    margin: 0 0 14px;
    color: #597286;
    line-height: 1.45;
    font-size: 0.95rem;
}

.portal-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e3f4ec;
    color: #0f7b53;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-login-alert {
    margin-bottom: 2px;
    border: 0;
    border-radius: 16px;
    background: #eef6ff;
    color: #174a77;
    padding: 10px 14px;
}

.portal-login-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #173a57;
}

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

.portal-login-inputicon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5e7b91;
    font-size: 1rem;
    pointer-events: none;
}

.portal-login-form .form-control {
    min-height: 46px;
    padding: 11px 14px 11px 42px;
    border-radius: 13px;
    border: 1px solid #d6e2ec;
    background: #fbfdff;
    color: #12304b;
    box-shadow: none;
}

.portal-login-form .form-control::placeholder {
    color: #8aa0b1;
}

.portal-login-form .form-control:focus {
    border-color: #1f6aa5;
    box-shadow: 0 0 0 4px rgba(31, 106, 165, 0.12);
    background: #ffffff;
}

.portal-login-submit {
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d5f98 0%, #14926e 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-login-submit:hover,
.portal-login-submit:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(20, 110, 125, 0.24);
}

.portal-login-footer-note {
    margin-top: 10px;
    color: #6b8192;
    font-size: 0.8rem;
    line-height: 1.35;
}

.portal-login-footer {
    padding: 4px 0 8px;
    color: #698092;
    text-align: center;
    font-size: 0.76rem;
}

@media (max-width: 1199.98px) {
    .portal-login-shell {
        overflow: auto;
    }

    .portal-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .portal-login-main {
        padding: 20px 0;
    }

    .portal-login-topbar-inner {
        min-height: 66px;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
        text-align: center;
    }

    .portal-login-topbar-copy {
        text-align: center;
        font-size: 0.85rem;
    }

    .portal-login-story-panel,
    .portal-login-card {
        padding: 24px;
        border-radius: 22px;
    }

    .portal-login-hero-logo-image {
        width: min(240px, 82%);
    }

    .portal-login-brand {
        justify-content: center;
    }

    .portal-login-brand-full {
        height: 32px;
    }
}
