* {
    box-sizing: border-box;
}

body.login-portal-page {
    margin: 0;
    min-height: 100vh;
    background: #030b16;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.login-bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(244, 185, 87, .12), transparent 24%),
        radial-gradient(circle at 18% 20%, rgba(21, 121, 255, .12), transparent 28%),
        linear-gradient(135deg, #020814 0%, #071422 45%, #020814 100%);
}

.login-bg-pattern::before,
.login-bg-pattern::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    opacity: .36;
    background-image: radial-gradient(circle, rgba(242, 184, 91, .85) 1px, transparent 1.8px);
    background-size: 13px 13px;
    transform: rotate(-22deg);
}

.login-bg-pattern::before {
    left: -180px;
    top: 80px;
}

.login-bg-pattern::after {
    right: -170px;
    top: 115px;
}

.login-shell {
    position: relative;
    z-index: 1;
    max-width: 1260px;
    margin: 0 auto;
    padding: 42px 24px 120px;
}

.login-title {
    text-align: center;
    margin-bottom: 26px;
}

.shield-main {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    color: #f3bd5c;
    display: grid;
    place-items: center;
    font-size: 38px;
    border: 3px solid #f3bd5c;
    clip-path: polygon(50% 0%, 90% 18%, 82% 78%, 50% 100%, 18% 78%, 10% 18%);
}

.login-title h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: .3px;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 14px auto 8px;
}

.title-divider i {
    display: block;
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d5a14c);
}

.title-divider i:last-child {
    background: linear-gradient(90deg, #d5a14c, transparent);
}

.title-divider b {
    width: 8px;
    height: 8px;
    background: #f3bd5c;
    border-radius: 50%;
}

.login-title p {
    color: #f3bd5c;
    font-size: 21px;
    margin: 0;
}

.login-center-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.access-card,
.review-only-card,
.feature-card {
    background: rgba(9, 20, 34, .78);
    border: 1px solid rgba(244, 185, 87, .22);
    border-radius: 10px;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
}

.access-card {
    padding: 28px;
}

.access-card-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
}

.small-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(244, 185, 87, .13);
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #f3bd5c;
}

.access-card-title h2,
.review-title h2 {
    margin: 0;
    font-size: 24px;
}

.access-card-title p {
    margin: 5px 0 0;
    color: #b7c2d1;
    font-size: 15px;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 52px;
    background: rgba(4, 13, 24, .72);
    border: 1px solid #34455e;
    border-radius: 6px;
    color: #fff;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
}

.login-field input:focus {
    border-color: #f3bd5c;
    box-shadow: 0 0 0 3px rgba(243, 189, 92, .11);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.password-wrap button {
    position: absolute;
    right: 9px;
    top: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #9aaabe;
    cursor: pointer;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 18px;
    align-items: center;
    margin-top: 26px;
}

.login-actions a {
    color: #f3bd5c;
    font-size: 13px;
}

.login-actions button {
    border: 0;
    height: 56px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f2ca75, #edae3d);
    color: #0b111b;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}

.login-actions button span {
    margin-left: 18px;
    font-size: 20px;
}

.login-error {
    border: 1px solid rgba(255, 83, 99, .45);
    background: rgba(255, 83, 99, .12);
    color: #ff9ba5;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
}

.review-only-card {
    padding: 30px;
}

.review-title {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #f3bd5c;
    margin-bottom: 22px;
}

.review-title span {
    width: 42px;
    height: 42px;
    border: 2px solid #f3bd5c;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.rule-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.09);
}

.rule-row span {
    color: #f3bd5c;
    font-size: 22px;
}

.rule-row p {
    margin: 0;
    color: #f1f5f9;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1130px;
    margin: 34px auto 0;
}

.feature-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 28px;
    min-height: 150px;
}

.feature-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: #f3bd5c;
    display: grid;
    place-items: center;
    font-size: 34px;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
}

.feature-card p {
    color: #b7c2d1;
    line-height: 1.55;
    margin: 0;
}

.login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid #d5a14c;
    background: rgba(3, 11, 22, .92);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 24px;
    padding: 18px 70px;
    color: #aeb9c8;
    font-size: 13px;
}

.login-footer p {
    margin: 0 0 8px;
}

.login-footer a,
.login-footer strong {
    color: #f3bd5c;
    text-decoration: none;
}

.footer-center {
    text-align: center;
}

.login-footer > div:last-child {
    text-align: right;
}

@media (max-width: 1100px) {
    .login-shell {
        padding-bottom: 30px;
    }

    .login-center-grid,
    .feature-grid,
    .login-footer {
        grid-template-columns: 1fr;
    }

    .login-footer {
        position: relative;
        padding: 20px;
        text-align: left;
    }

    .footer-center,
    .login-footer > div:last-child {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .login-shell {
        padding: 28px 14px 24px;
    }

    .login-title h1 {
        font-size: 31px;
    }

    .login-title p {
        font-size: 16px;
    }

    .title-divider i {
        width: 70px;
    }

    .login-center-grid {
        gap: 16px;
    }

    .access-card,
    .review-only-card {
        padding: 20px;
    }

    .access-card-title {
        align-items: flex-start;
    }

    .login-actions {
        grid-template-columns: 1fr;
    }

    .login-actions button {
        width: 100%;
    }

    .feature-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}