.auth-modern-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(32, 172, 234, 0.1),
            transparent 28%
        ),
        radial-gradient(
            circle at left 12%,
            rgba(11, 94, 215, 0.1),
            transparent 24%
        ),
        linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.login-hero,
.register-hero,
.userlist-hero {
    padding: 3.25rem 0 2.25rem;
    margin-bottom: 2rem;
}

.login-container,
.registration-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.login-cards-grid,
.registration-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.login-card,
.form-card,
.info-card,
.user-card {
    padding: 1.4rem;
}

.login-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 94, 215, 0.12);
}

.login-card-header h2,
.form-card h2,
.info-card h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-method-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(11, 94, 215, 0.04);
    border: 1px solid rgba(11, 94, 215, 0.08);
}

.form-check-inline {
    margin-right: 0;
}

.form-check-label {
    font-weight: 600;
    color: #334155;
}

.password-input-wrapper,
.otp-entry-section,
.otp-section,
.register-banner {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    color: #0b5ed7;
}

.password-strength {
    height: 6px;
    border-radius: 999px;
    background: rgba(11, 94, 215, 0.12);
    overflow: hidden;
    margin-top: 0.65rem;
}

.password-strength-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1);
}

.otp-entry-section,
.otp-section {
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(11, 94, 215, 0.06),
        rgba(32, 172, 234, 0.05)
    );
    border: 1px solid rgba(11, 94, 215, 0.12);
    padding: 1.1rem;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.otp-box,
.otp-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.8rem 0.4rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.register-banner {
    margin-top: 1.25rem;
    padding: 1.4rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 50%, #20acea 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.register-banner-content h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.register-banner-content p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.btn-register {
    background: #fff;
    color: #0b5ed7;
    border: 0;
    padding: 0.8rem 1.1rem;
}

.btn-gradient,
.btn-success-gradient,
.btn-verify {
    width: 100%;
}

.btn-outline-gradient {
    width: 100%;
    justify-content: center;
}

.btn-gradient:hover,
.btn-success-gradient:hover,
.btn-outline-gradient:hover,
.btn-verify:hover,
.btn-register:hover {
    color: #fff;
}

.forgot-password-link {
    color: #0b5ed7;
    font-weight: 600;
}

.login-link {
    border-top: 1px solid rgba(11, 94, 215, 0.12);
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.userlist-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.userlist-hero-button {
    white-space: nowrap;
}

.users-section {
    background: transparent;
    padding: 0 0 3rem;
    margin-top: 0;
}

.user-card {
    cursor: pointer;
    border-radius: 22px;
    text-align: center;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.user-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #132238;
}

.user-role {
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .login-cards-grid,
    .registration-content {
        grid-template-columns: 1fr;
    }

    .userlist-hero .container {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .login-hero,
    .register-hero,
    .userlist-hero {
        padding-top: 2rem;
    }

    .register-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .otp-inputs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body .alert {
        padding: 0.9rem 1rem !important;
        border-radius: 14px !important;
        align-items: flex-start !important;
        gap: 0.55rem !important;
        line-height: 1.45 !important;
    }

    body .alert i {
        margin-top: 0.1rem;
        font-size: 1rem;
        flex-shrink: 0;
    }

    body .btn-gradient,
    body .btn-success-gradient,
    body .btn-outline-gradient,
    body .btn-register,
    body .btn-verify {
        width: 100% !important;
    }

    body .btn-register {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body .form-control,
    body .form-select,
    body .otp-box,
    body .otp-input {
        min-height: 46px !important;
        padding: 0.75rem 0.9rem !important;
        font-size: 0.98rem !important;
    }

    body .otp-box,
    body .otp-input {
        width: 46px !important;
        height: 46px !important;
        padding: 0.55rem 0.2rem !important;
        font-size: 1rem !important;
    }

    body .otp-inputs {
        gap: 0.5rem !important;
    }
}

@media (min-width: 768px) {
    body .alert {
        padding: 1rem 1.1rem !important;
        margin-bottom: 1.15rem !important;
    }

    body .btn-gradient,
    body .btn-success-gradient,
    body .btn-outline-gradient,
    body .btn-register,
    body .btn-verify {
        min-height: 50px !important;
        padding: 0.85rem 1.2rem !important;
    }

    body .btn-register {
        min-width: 180px !important;
        width: auto !important;
    }

    body .btn-gradient,
    body .btn-success-gradient,
    body .btn-outline-gradient,
    body .btn-verify {
        width: 100% !important;
    }
}

/* High-specificity overrides for legacy inline view styles */
body .auth-modern-page .login-hero,
body .auth-modern-page .register-hero,
body .auth-modern-page .userlist-hero,
body .login-hero,
body .register-hero,
body .userlist-hero {
    padding: 3.25rem 0 2.25rem !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    background: linear-gradient(
        135deg,
        #0b5ed7 0%,
        #0a58ca 52%,
        #20acea 100%
    ) !important;
    color: #fff !important;
}

body .login-card,
body .form-card,
body .info-card,
body .user-card {
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(18, 38, 63, 0.08) !important;
    border: 1px solid rgba(11, 94, 215, 0.12) !important;
}

body.auth-modern-page .login-card,
body.auth-modern-page .form-card,
body.auth-modern-page .info-card {
    padding: 1.25rem !important;
}

body.auth-modern-page .login-card-header {
    gap: 0.8rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.85rem !important;
}

body.auth-modern-page .login-card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
}

body.auth-modern-page .login-card-header h2,
body.auth-modern-page .form-card h2,
body.auth-modern-page .info-card h3 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
}

body.auth-modern-page .form-label {
    margin-bottom: 0.55rem !important;
}

body.auth-modern-page .login-method-options {
    padding: 0.75rem !important;
    gap: 0.6rem !important;
}

body.auth-modern-page .form-check-label {
    padding: 0.45rem 0.85rem !important;
}

body.auth-modern-page .benefits-list li {
    padding: 0.9rem 0 !important;
    gap: 0.9rem !important;
}

body.auth-modern-page .benefits-list .icon {
    font-size: 1.25rem !important;
    min-width: 24px !important;
}

body .login-card-header {
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(11, 94, 215, 0.12) !important;
}

body .login-method-options {
    border-radius: 18px !important;
    background: rgba(11, 94, 215, 0.04) !important;
    border: 1px solid rgba(11, 94, 215, 0.08) !important;
}

body .form-control,
body .form-select,
body .otp-box,
body .otp-input {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(11, 94, 215, 0.16) !important;
    font-size: 1rem !important;
}

body .btn-gradient,
body .btn-success-gradient,
body .btn-outline-gradient,
body .btn-register,
body .btn-verify {
    border-radius: 14px !important;
    min-height: 48px !important;
    font-weight: 700 !important;
}

body .btn-register:hover {
    background: linear-gradient(
        135deg,
        #0b5ed7 0%,
        #0a58ca 52%,
        #20acea 100%
    ) !important;
    color: #fff !important;
}

body .register-banner {
    border-radius: 24px !important;
    background: linear-gradient(
        135deg,
        #0b5ed7 0%,
        #0a58ca 52%,
        #20acea 100%
    ) !important;
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.22) !important;
}

body .otp-entry-section,
body .otp-section {
    border-radius: 20px !important;
    background: linear-gradient(
        135deg,
        rgba(11, 94, 215, 0.06),
        rgba(32, 172, 234, 0.05)
    ) !important;
    border: 1px solid rgba(11, 94, 215, 0.12) !important;
}

body .alert {
    border-radius: 14px !important;
}

body .profile-avatar {
    border-radius: 50% !important;
}

body .users-section {
    background: transparent !important;
}

/* Final premium auth polish */
body.auth-modern-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(21, 197, 207, 0.12),
            transparent 24%
        ),
        radial-gradient(
            circle at left 10%,
            rgba(5, 47, 139, 0.09),
            transparent 20%
        ),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%) !important;
}

body.auth-modern-page .login-hero,
body.auth-modern-page .register-hero {
    position: relative;
    overflow: hidden;
    padding: 3.6rem 0 2.7rem !important;
    margin-bottom: 1.35rem !important;
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 48%,
        #15c5cf 100%
    ) !important;
}

body.auth-modern-page .login-hero::after,
body.auth-modern-page .register-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.18),
            transparent 24%
        ),
        radial-gradient(
            circle at left 16%,
            rgba(255, 255, 255, 0.08),
            transparent 22%
        );
    pointer-events: none;
}

body.auth-modern-page .login-hero .container,
body.auth-modern-page .register-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1040px !important;
}

body.auth-modern-page .auth-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.auth-modern-page .login-hero h1,
body.auth-modern-page .register-hero h1 {
    margin-bottom: 0.9rem !important;
    font-size: clamp(2.2rem, 4vw, 3.3rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em;
}

body.auth-modern-page .login-hero p,
body.auth-modern-page .register-hero p {
    max-width: 760px !important;
    font-size: 1.02rem !important;
    line-height: 1.85;
}

body.auth-modern-page .auth-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

body.auth-modern-page .auth-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.9rem;
    font-weight: 600;
}

body.auth-modern-page .login-container,
body.auth-modern-page .registration-container {
    max-width: 1180px !important;
    margin: 0 auto;
    padding: 0 1rem 3rem !important;
}

body.auth-modern-page .registration-content {
    grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.45fr) !important;
    gap: 1.35rem !important;
}

body.auth-modern-page .login-cards-grid {
    gap: 1.35rem !important;
    align-items: stretch;
}

body.auth-modern-page .login-card,
body.auth-modern-page .form-card,
body.auth-modern-page .info-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px !important;
    padding: 1.7rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
    box-shadow: 0 26px 60px rgba(18, 38, 63, 0.1) !important;
    border: 1px solid rgba(11, 94, 215, 0.12) !important;
}

body.auth-modern-page .login-card::before,
body.auth-modern-page .form-card::before,
body.auth-modern-page .info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #052f8b 0%, #1248b3 50%, #15c5cf 100%);
    opacity: 0.85;
}

body.auth-modern-page .auth-panel-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    color: #052f8b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.auth-modern-page .login-card-header {
    align-items: flex-start !important;
    gap: 0.95rem !important;
    margin-bottom: 1.2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(5, 47, 139, 0.1) !important;
}

body.auth-modern-page .login-card-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 55%,
        #15c5cf 100%
    ) !important;
    box-shadow: 0 14px 28px rgba(5, 47, 139, 0.2) !important;
}

body.auth-modern-page .login-card-header h2,
body.auth-modern-page .form-card h2,
body.auth-modern-page .info-card h3 {
    color: #10243f !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

body.auth-modern-page .form-card h2,
body.auth-modern-page .info-card h3 {
    margin-bottom: 1.1rem !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

body.auth-modern-page .form-label {
    color: #1b2b41 !important;
    font-weight: 700 !important;
}

body.auth-modern-page .form-control,
body.auth-modern-page .form-select {
    min-height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(5, 47, 139, 0.14) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

body.auth-modern-page .form-control::placeholder {
    color: #8a98ad;
}

body.auth-modern-page .login-method-options {
    gap: 0.6rem !important;
    padding: 0.8rem !important;
    border-radius: 20px !important;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.04),
        rgba(21, 197, 207, 0.05)
    ) !important;
    border: 1px solid rgba(5, 47, 139, 0.08) !important;
}

body.auth-modern-page .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(5, 47, 139, 0.08);
    background: #fff;
    color: #334155 !important;
}

body.auth-modern-page .form-check-input:checked + .form-check-label {
    background: rgba(5, 47, 139, 0.06) !important;
    border-color: rgba(5, 47, 139, 0.16);
    color: #052f8b !important;
}

body.auth-modern-page .password-input-wrapper .form-control {
    padding-right: 3rem !important;
}

body.auth-modern-page .otp-entry-section,
body.auth-modern-page .otp-section {
    padding: 1.45rem !important;
    border-radius: 24px !important;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.05),
        rgba(21, 197, 207, 0.08)
    ) !important;
    border: 1px solid rgba(5, 47, 139, 0.1) !important;
}

body.auth-modern-page .otp-entry-section h4,
body.auth-modern-page .otp-section h3 {
    color: #052f8b !important;
    font-weight: 800 !important;
}

body.auth-modern-page .otp-entry-section .otp-inputs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 320px;
    margin: 1rem auto 0;
}

body.auth-modern-page .otp-section .otp-inputs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    max-width: 320px;
    margin: 1rem auto 1.15rem !important;
}

body.auth-modern-page .otp-box,
body.auth-modern-page .otp-input {
    width: auto !important;
    height: 56px !important;
    min-height: 56px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(5, 47, 139, 0.18) !important;
    box-shadow: 0 8px 18px rgba(18, 38, 63, 0.05);
}

body.auth-modern-page .btn-gradient,
body.auth-modern-page .btn-success-gradient,
body.auth-modern-page .btn-outline-gradient,
body.auth-modern-page .btn-register,
body.auth-modern-page .btn-verify {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 52px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

body.auth-modern-page .btn-gradient,
body.auth-modern-page .btn-success-gradient,
body.auth-modern-page .btn-verify {
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 58%,
        #15c5cf 100%
    ) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 16px 30px rgba(5, 47, 139, 0.18) !important;
}

body.auth-modern-page .btn-outline-gradient {
    border: 1px solid rgba(5, 47, 139, 0.16) !important;
    background: rgba(5, 47, 139, 0.03) !important;
    color: #052f8b !important;
}

body.auth-modern-page .btn-register {
    background: #fff !important;
    color: #052f8b !important;
    box-shadow: 0 16px 30px rgba(3, 28, 84, 0.18) !important;
}

body.auth-modern-page .info-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

body.auth-modern-page .benefits-list li {
    gap: 0.95rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(5, 47, 139, 0.08) !important;
}

body.auth-modern-page .benefits-list .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px !important;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.12)
    );
    color: #052f8b !important;
}

body.auth-modern-page .benefits-list .text h4 {
    color: #10243f !important;
    font-weight: 800 !important;
}

body.auth-modern-page .benefits-list .text p {
    color: #5f728c !important;
    line-height: 1.7;
}

body.auth-modern-page .auth-referral-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.05),
        rgba(21, 197, 207, 0.08)
    );
    border: 1px solid rgba(5, 47, 139, 0.1);
}

body.auth-modern-page .auth-referral-banner i {
    color: #052f8b;
    font-size: 1.15rem;
    margin-top: 0.1rem;
}

body.auth-modern-page .auth-referral-banner strong {
    display: block;
    color: #10243f;
    font-size: 0.98rem;
    margin-bottom: 0.18rem;
}

body.auth-modern-page .auth-referral-banner span {
    display: block;
    color: #5f728c;
    line-height: 1.6;
}

body.auth-modern-page .register-banner {
    margin-top: 1.5rem !important;
    padding: 1.55rem 1.65rem !important;
    border-radius: 28px !important;
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 52%,
        #15c5cf 100%
    ) !important;
    box-shadow: 0 22px 44px rgba(5, 47, 139, 0.2) !important;
}

body.auth-modern-page .forgot-hero,
body.auth-modern-page .reset-hero {
    position: relative;
    overflow: hidden;
    padding: 3.6rem 0 2.7rem !important;
    margin-bottom: 1.35rem !important;
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 48%,
        #15c5cf 100%
    ) !important;
    color: #fff !important;
}

body.auth-modern-page .forgot-hero::after,
body.auth-modern-page .reset-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.18),
            transparent 24%
        ),
        radial-gradient(
            circle at left 16%,
            rgba(255, 255, 255, 0.08),
            transparent 22%
        );
    pointer-events: none;
}

body.auth-modern-page .forgot-hero .container,
body.auth-modern-page .reset-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1040px !important;
}

body.auth-modern-page .forgot-hero h1,
body.auth-modern-page .reset-hero h1 {
    margin-bottom: 0.9rem !important;
    font-size: clamp(2.2rem, 4vw, 3.3rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em;
    color: #fff !important;
}

body.auth-modern-page .forgot-hero p,
body.auth-modern-page .reset-hero p {
    max-width: 760px !important;
    margin: 0 auto !important;
    font-size: 1.02rem !important;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92) !important;
}

body.auth-modern-page .forgot-container,
body.auth-modern-page .reset-container {
    max-width: 640px !important;
    margin: 0 auto;
    padding: 0 1rem 3rem !important;
}

body.auth-modern-page .forgot-card,
body.auth-modern-page .reset-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px !important;
    padding: 1.7rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
    box-shadow: 0 26px 60px rgba(18, 38, 63, 0.1) !important;
    border: 1px solid rgba(11, 94, 215, 0.12) !important;
}

body.auth-modern-page .forgot-card::before,
body.auth-modern-page .reset-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #052f8b 0%, #1248b3 50%, #15c5cf 100%);
    opacity: 0.85;
}

body.auth-modern-page .delivery-method-options {
    gap: 0.6rem !important;
    padding: 0.8rem !important;
    border-radius: 20px !important;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.04),
        rgba(21, 197, 207, 0.05)
    ) !important;
    border: 1px solid rgba(5, 47, 139, 0.08) !important;
}

body.auth-modern-page .password-requirements {
    margin-top: 0.65rem;
    color: #5f728c !important;
    line-height: 1.6;
}

body.auth-modern-page .validation-summary-errors {
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.14);
    background: linear-gradient(
        180deg,
        rgba(220, 53, 69, 0.06),
        rgba(255, 107, 107, 0.08)
    );
    color: #a72833;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

body.auth-modern-page .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

body.auth-modern-page .back-to-login {
    color: #052f8b !important;
    font-weight: 700 !important;
    text-decoration: none;
}

body.auth-modern-page .back-to-login:hover {
    color: #031c54 !important;
    text-decoration: underline;
}

body.auth-modern-page .auth-success-icon {
    color: #14b88a;
    font-size: 4rem;
    line-height: 1;
}

body.auth-modern-page .auth-success-title {
    color: #10243f;
    font-weight: 800;
}

body.auth-modern-page .auth-success-copy {
    color: #5f728c;
}

body.auth-modern-page .auth-inline-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.05),
        rgba(21, 197, 207, 0.08)
    );
    border: 1px solid rgba(5, 47, 139, 0.1);
    color: #415067;
}

body.auth-modern-page .auth-inline-note i {
    color: #052f8b;
    margin-top: 0.1rem;
}

body.auth-modern-page .login-link {
    margin-top: 1.35rem !important;
    padding-top: 1rem !important;
}

body.auth-modern-page .forgot-password-link,
body.auth-modern-page .login-link a {
    color: #052f8b !important;
    font-weight: 700 !important;
}

body.auth-modern-page .alert {
    border-radius: 18px !important;
    box-shadow: 0 14px 28px rgba(18, 38, 63, 0.08);
}

@media (max-width: 991.98px) {
    body.auth-modern-page .registration-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767.98px) {
    body.auth-modern-page .login-hero,
    body.auth-modern-page .register-hero,
    body.auth-modern-page .forgot-hero,
    body.auth-modern-page .reset-hero {
        padding: 2.7rem 0 2.1rem !important;
    }

    body.auth-modern-page .auth-hero-highlights {
        justify-content: center;
    }

    body.auth-modern-page .login-container,
    body.auth-modern-page .registration-container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        padding-bottom: 2rem !important;
    }

    body.auth-modern-page .login-cards-grid {
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }

    body.auth-modern-page .login-card,
    body.auth-modern-page .form-card,
    body.auth-modern-page .info-card {
        padding: 1.15rem !important;
        border-radius: 22px !important;
    }

    body.auth-modern-page .login-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.9rem !important;
    }

    body.auth-modern-page .login-card-header h2,
    body.auth-modern-page .form-card h2,
    body.auth-modern-page .info-card h3 {
        font-size: 1.25rem !important;
    }

    body.auth-modern-page .login-card-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        flex-shrink: 0;
    }

    body.auth-modern-page .login-method-options {
        gap: 0.5rem !important;
        padding: 0.7rem !important;
    }

    body.auth-modern-page .form-check-inline {
        flex: 1 1 100%;
    }

    body.auth-modern-page .form-check-label {
        width: 100%;
        justify-content: center;
    }

    body.auth-modern-page .form-control,
    body.auth-modern-page .form-select {
        min-height: 48px !important;
        border-radius: 14px !important;
    }

    body.auth-modern-page .otp-section .otp-inputs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 220px;
    }

    body.auth-modern-page .otp-entry-section .otp-inputs {
        max-width: none;
    }

    body.auth-modern-page .otp-entry-section,
    body.auth-modern-page .otp-section {
        padding: 1rem !important;
        border-radius: 20px !important;
    }

    body.auth-modern-page .otp-entry-section h4,
    body.auth-modern-page .otp-section h3 {
        font-size: 1rem !important;
        line-height: 1.35;
        text-align: center;
    }

    body.auth-modern-page .otp-entry-section .otp-inputs {
        gap: 0.5rem !important;
        margin-top: 0.85rem !important;
        max-width: 100% !important;
    }

    body.auth-modern-page .otp-box,
    body.auth-modern-page .otp-input {
        height: 50px !important;
        min-height: 50px !important;
        border-radius: 14px !important;
        font-size: 1.1rem !important;
    }

    body.auth-modern-page .btn-gradient,
    body.auth-modern-page .btn-success-gradient,
    body.auth-modern-page .btn-outline-gradient,
    body.auth-modern-page .btn-register,
    body.auth-modern-page .btn-verify {
        width: 100% !important;
    }

    body.auth-modern-page .register-banner {
        padding: 1.15rem !important;
        gap: 0.9rem !important;
        align-items: stretch !important;
    }

    body.auth-modern-page .register-banner-content h3 {
        font-size: 1.2rem !important;
    }

    body.auth-modern-page .register-banner .btn-register {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    body.auth-modern-page .login-hero,
    body.auth-modern-page .register-hero,
    body.auth-modern-page .forgot-hero,
    body.auth-modern-page .reset-hero {
        padding: 2.2rem 0 1.7rem !important;
    }

    body.auth-modern-page .login-hero h1,
    body.auth-modern-page .register-hero h1,
    body.auth-modern-page .forgot-hero h1,
    body.auth-modern-page .reset-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2rem) !important;
    }

    body.auth-modern-page .login-hero p,
    body.auth-modern-page .register-hero p,
    body.auth-modern-page .forgot-hero p,
    body.auth-modern-page .reset-hero p {
        font-size: 0.94rem !important;
    }

    body.auth-modern-page .auth-hero-highlights {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    body.auth-modern-page .auth-hero-pill {
        width: 100%;
        justify-content: center;
    }

    body.auth-modern-page .login-card,
    body.auth-modern-page .form-card,
    body.auth-modern-page .info-card {
        padding: 1rem !important;
    }

    body.auth-modern-page .otp-entry-section .otp-inputs {
        gap: 0.45rem !important;
    }

    body.auth-modern-page .otp-box,
    body.auth-modern-page .otp-input {
        height: 46px !important;
        min-height: 46px !important;
        border-radius: 13px !important;
        font-size: 1rem !important;
    }
}
