.portal-login-page {
    background: linear-gradient(180deg, #f8f3ed 0%, #f4eee7 100%);
    padding: 42px 0 60px;
}

.portal-login-shell {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: stretch;
}

.portal-login-card,
.portal-login-aside {
    background: rgba(255,255,255,.88);
    border: 1px solid #ead9cc;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(94, 64, 44, .08);
}

.portal-login-card {
    overflow: hidden;
}

.portal-card-head {
    padding: 30px 28px 22px;
    background: linear-gradient(135deg, #c94f4f 0%, #b54444 100%);
    color: #fff;
    text-align: center;
}

.portal-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(255,255,255,.18);
    font-size: 28px;
}

.portal-card-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

.portal-card-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: .95;
}

.portal-card-body {
    padding: 28px;
}

.portal-label {
    display: block;
    margin-bottom: 8px;
    color: #24364f;
    font-weight: 700;
    font-size: 14px;
}

.portal-input {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid #e7d8ca;
    background: #fffdfa;
    color: #24364f;
    padding: 0 16px;
    font-size: 16px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.portal-input:focus {
    outline: none;
    border-color: #c94f4f;
    box-shadow: 0 0 0 4px rgba(201,79,79,.12);
    transform: translateY(-1px);
}

.portal-input-otp {
    text-align: center;
    letter-spacing: .4em;
    font-weight: 700;
    font-size: 22px;
}

.portal-help {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #66758b;
}

.portal-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 54px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.portal-btn-primary {
    background: linear-gradient(135deg, #c94f4f 0%, #b54444 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(201,79,79,.22);
}

.portal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(201,79,79,.28);
    color: #fff;
}

.portal-remember {
    margin-top: 15px;
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid #efe1d4;
    background: #fffaf6;
    color: #304159;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.portal-remember input {
    margin-top: 3px;
    accent-color: #c94f4f;
}

.portal-remember small {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-weight: 500;
    line-height: 1.5;
}

.portal-captcha {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.portal-subactions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #69788e;
}

.portal-link {
    background: none;
    border: none;
    color: #c94f4f;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.portal-link:hover {
    color: #b54444;
    text-decoration: underline;
}

.portal-message {
    margin-top: 16px;
    border-radius: 16px;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.portal-message.success {
    background: #edf7f1;
    color: #2e7d4a;
    border: 1px solid #d7ebdf;
}

.portal-message.error {
    background: #fff1ef;
    color: #b54444;
    border: 1px solid #f1d4d0;
}

.portal-trust {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #efe1d4;
    display: grid;
    gap: 10px;
}

.portal-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5f7087;
    font-size: 13px;
}

.portal-trust-item i {
    color: #c94f4f;
}

.portal-login-aside {
    padding: 42px 38px;
    position: relative;
    overflow: hidden;
}

.portal-login-aside::before,
.portal-login-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal-login-aside::before {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(201,79,79,.16) 0%, rgba(201,79,79,0) 72%);
    top: -70px;
    right: -40px;
}

.portal-login-aside::after {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(244,162,97,.16) 0%, rgba(244,162,97,0) 70%);
    bottom: -30px;
    left: -30px;
}

.portal-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbe3df;
    color: #b54444;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.portal-login-title {
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.08;
    color: #24364f;
    margin: 0 0 14px;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

.portal-login-text {
    font-size: 16px;
    line-height: 1.8;
    color: #5e6f86;
    margin: 0 0 26px;
    max-width: 560px;
}

.portal-login-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 20px;
    background: #fffaf6;
    border: 1px solid #efe1d4;
    color: #42546d;
    font-size: 14px;
    line-height: 1.6;
}

.portal-point i {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fbe3df;
    color: #c94f4f;
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .portal-login-shell {
        grid-template-columns: 1fr;
    }

    .portal-login-card {
        order: 1;
    }

    .portal-login-aside {
        order: 2;
    }

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

@media (max-width: 575.98px) {
    .portal-login-page {
        padding: 24px 0 40px;
    }

    .portal-login-aside,
    .portal-card-body,
    .portal-card-head {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portal-login-title {
        font-size: 28px;
    }

    .portal-captcha {
        transform: scale(.92);
        transform-origin: center top;
        margin-bottom: -8px;
    }
}
.portal-captcha {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fffaf6;
    border: 1px solid #ead9cc;
}

    .portal-captcha table {
        width: 100%;
    }

    .portal-captcha img {
        border-radius: 14px;
        border: 1px solid #ead9cc;
        background: #faf8f5;
        max-width: 100%;
    }

.portal-captcha-input {
    margin-top: 10px;
}