/* ============================================================
   Theme "basic" — trang dang nhap / dang ky / quen mat khau / 2FA.
   Bo cuc chia doi: form sang ben trai, panel gradient tim-hong ben phai
   (mobile: panel thanh dai gradient phia tren). Chi la lop giao dien.
   ============================================================ */
:root {
    --auth-accent: #7c5cf5;
    --auth-accent-2: #a855f7;
    --auth-pink: #ec4899;
    --auth-accent-soft: rgba(124, 92, 245, .12);
    --auth-text: #1f2433;
    --auth-muted: #6b7280;
    --auth-border: #e4e6ee;
    --auth-grad: linear-gradient(90deg, #8b7cf8, #b78cf7 55%, #c4a1f5);
    --auth-side: linear-gradient(160deg, #6a5cd8 0%, #8a52c9 45%, #c2549a 100%);
}

body:has(.auth-bg),
.ba-auth-body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    background: #fff;
    color: var(--auth-text);
}

/* ---------------- Bo cuc chia doi ---------------- */
.ba-auth {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    min-height: 100vh;
}

.ba-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
}

.ba-auth-panel {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.ba-auth-panel.is-center {
    text-align: center;
}

.ba-auth-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.ba-auth-logo img {
    display: block;
    max-width: 140px;
    max-height: 56px;
    object-fit: contain;
}

.ba-auth-title {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--auth-text);
}

.ba-auth-sub {
    margin: -14px 0 18px;
    font-size: 14px;
    color: var(--auth-muted);
}

.ba-auth-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
}

.ba-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.ba-auth-social-btn:hover {
    border-color: #cfd3e0;
    background: #f8f8fc;
    color: var(--auth-text);
}

.ba-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
    font-size: 13px;
    color: #8a90a2;
}

.ba-auth-divider::before,
.ba-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--auth-border), transparent);
}

.ba-auth-field {
    position: relative;
    margin-bottom: 14px;
    text-align: left;
}

.ba-auth-field .form-control {
    height: 46px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
    color: var(--auth-text);
    font-size: 14.5px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ba-auth-field.has-eye .form-control {
    padding-right: 46px;
}

.ba-auth-field .form-control::placeholder {
    color: #9aa1b2;
}

.ba-auth-field .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.ba-auth-field small {
    display: block;
    margin-top: 4px;
}

.ba-auth-eye {
    position: absolute;
    top: 0;
    right: 6px;
    width: 38px;
    height: 46px;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 19px no-repeat;
    cursor: pointer;
}

.ba-auth-eye.is-on {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cf5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A10.6 10.6 0 0 1 12 6c6.4 0 10 6 10 6a17.7 17.7 0 0 1-3.2 3.9M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

.ba-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
    font-size: 13.5px;
}

.ba-auth-row .form-check-label,
.ba-auth-check .form-check-label {
    color: #4b5263;
    font-size: 13.5px;
}

.ba-auth-check {
    margin: 4px 0 18px;
    text-align: left;
}

.ba-auth-check a,
.ba-auth-link,
.ba-auth-foot a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.ba-auth-link:hover,
.ba-auth-foot a:hover,
.ba-auth-check a:hover {
    color: var(--auth-pink);
}

.ba-auth .form-check-input {
    border-color: #cfd3e0;
}

.ba-auth .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.ba-auth .form-check-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.ba-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-grad);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px rgba(124, 92, 245, .8);
    transition: filter .15s ease, transform .1s ease;
}

.ba-auth-submit:hover:not(:disabled) {
    filter: brightness(1.05) saturate(1.15);
    color: #fff;
}

.ba-auth-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.ba-auth-submit:disabled {
    opacity: .7;
}

.ba-auth-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-text);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}

.ba-auth-ghost:hover {
    border-color: #cfd3e0;
    background: #f8f8fc;
    color: var(--auth-text);
}

.ba-auth-back {
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--auth-accent);
    font-size: 14px;
    font-weight: 600;
}

.ba-auth-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.ba-auth-captcha-img {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ba-auth-captcha-img img {
    height: 50px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    cursor: pointer;
}

.ba-auth-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-muted);
    font-size: 18px;
}

.ba-auth-foot {
    margin: 20px 0 12px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
}

.ba-auth-foot .sep {
    margin: 0 8px;
    color: #d1d5e0;
}

.ba-auth .dropdown-toggle {
    color: var(--auth-muted) !important;
    font-size: 13px;
}

.ba-auth .dropdown-menu {
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px -10px rgba(31, 36, 51, .25);
    overflow: hidden;
}

/* ---------------- Khoi "kiem tra email / nhap ma" ---------------- */
.ba-auth-email-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-text);
    word-break: break-all;
}

.ba-auth-email-chip svg {
    flex-shrink: 0;
    color: var(--auth-accent);
}

.ba-auth-codebox {
    margin-bottom: 12px;
    padding: 20px 22px 22px;
    border: 1px solid #ece7fb;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6f3ff 0%, #fbf7fd 55%, #fdf5f8 100%);
    text-align: center;
}

.ba-auth-codebox h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--auth-text);
}

.ba-auth-codebox p {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--auth-muted);
}

.ba-auth-codebox .ba-auth-field {
    max-width: 320px;
    margin: 0 auto 8px;
}

.ba-auth-codebox .ba-auth-field .form-control.is-code {
    height: 60px;
    padding: 0 12px;
    border: 2px solid #d9d3f5;
    border-radius: 14px;
    background-image: none;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .55em;
    color: #2b2d63;
}

.ba-auth-codebox .ba-auth-field .form-control.is-code::placeholder {
    letter-spacing: .35em;
    font-size: 20px;
    color: #c7c3e0;
}

.ba-auth-codebox .ba-auth-submit {
    max-width: 320px;
    margin: 18px auto 0;
}

.ba-auth-codebox .ba-auth-field.is-left {
    max-width: none;
    text-align: left;
}

.ba-auth-codebox .ba-auth-field.is-left .form-control {
    text-align: left;
}

.ba-auth-timer {
    font-size: 12.5px;
    color: var(--auth-muted);
}

.ba-auth-timer b {
    color: var(--auth-accent);
}

.ba-auth-guide {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: #f6f7fb;
    list-style: none;
    counter-reset: baguide;
    text-align: left;
}

.ba-auth-guide li {
    position: relative;
    padding: 4px 0 4px 32px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5263;
    counter-increment: baguide;
}

.ba-auth-guide li + li {
    margin-top: 6px;
}

.ba-auth-guide li::before {
    content: counter(baguide);
    position: absolute;
    left: 0;
    top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cf5, #c2549a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ba-auth-resend {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.ba-auth-resend-ico {
    flex-shrink: 0;
    color: #7c5cf5;
}

.ba-auth-resend.is-ready .ba-auth-resend-ico {
    animation: baHourglass 2.4s ease-in-out infinite;
}

@keyframes baHourglass {
    0%, 70% { transform: rotate(0); }
    85%, 100% { transform: rotate(180deg); }
}

.ba-auth-resend-body {
    flex: 1;
    min-width: 0;
}

.ba-auth-resend-text {
    font-size: 13px;
    color: #4b5263;
}

.ba-auth-resend-text b {
    color: #f97316;
}

.ba-auth-resend-bar {
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: #eceef4;
    overflow: hidden;
}

.ba-auth-resend-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 1s linear;
}

.ba-auth-resend.is-ready .ba-auth-resend-bar span {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.ba-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ba-auth-actions .ba-auth-submit {
    height: 46px;
    font-size: 14.5px;
}

.ba-auth-actions .ba-auth-ghost {
    height: 46px;
}

/* Icon trong o nhap (theo ten field) */
.ba-auth-field input[name="username"],
.auth-bg input[name="username"].form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.ba-auth-field input[name="email"],
.auth-bg input[name="email"].form-control,
.auth-bg input[type="email"].form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
}

.ba-auth-field input[type="password"],
.ba-auth-field.has-eye input,
.auth-bg input[type="password"].form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.ba-auth-field input[name="phone"],
.auth-bg input[name="phone"].form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.ba-auth-field input[name="captcha_code"],
.ba-auth-field input[name="two_factor_code"],
.auth-bg input[name="captcha_code"].form-control,
.auth-bg input[name="code"].form-control,
.auth-bg input[name="two_factor_code"].form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8 8 9 4.6-1 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* ---------------- Panel gradient ben phai ---------------- */
.ba-auth-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 32px;
    background: var(--auth-side);
    color: #fff;
}

.ba-auth-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1.4px 1.4px at 78% 9%, rgba(255, 255, 255, .55), transparent),
        radial-gradient(1.8px 1.8px at 88% 42%, rgba(255, 255, 255, .6), transparent),
        radial-gradient(1.4px 1.4px at 24% 64%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.6px 1.6px at 64% 78%, rgba(255, 255, 255, .55), transparent),
        radial-gradient(1.2px 1.2px at 40% 30%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1.6px 1.6px at 92% 88%, rgba(255, 255, 255, .6), transparent),
        radial-gradient(1.2px 1.2px at 8% 90%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(600px 420px at 70% 20%, rgba(255, 255, 255, .08), transparent);
    animation: baAuthTwinkle 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes baAuthTwinkle {
    from { opacity: .7; }
    to { opacity: 1; }
}

.ba-auth-side-inner {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.ba-auth-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 44px;
}

.ba-auth-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(120, 140, 255, .28));
    box-shadow: 0 18px 40px -20px rgba(30, 10, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-align: left;
    animation: baAuthFloat 6s ease-in-out infinite;
}

.ba-auth-stat:nth-child(2) {
    animation-delay: -2s;
}

.ba-auth-stat:nth-child(3) {
    animation-delay: -4s;
}

@keyframes baAuthFloat {
    50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .ba-auth-stat,
    .ba-auth-stars,
    .ba-auth-resend.is-ready .ba-auth-resend-ico {
        animation: none;
    }
}

.ba-auth-stat-ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 22px;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
}

.ba-auth-stat-ico.is-violet { background: linear-gradient(135deg, #6d6af7, #9b7bf7); }
.ba-auth-stat-ico.is-amber { background: linear-gradient(135deg, #f8b737, #f59e0b); }
.ba-auth-stat-ico.is-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.ba-auth-stat b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.ba-auth-stat small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}

.ba-auth-side-brand {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.01em;
    background: linear-gradient(90deg, #ffe1c4, #ffc6a8 50%, #ffd9e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ba-auth-side-desc {
    margin: 14px auto 26px;
    max-width: 320px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

.ba-auth-ticker {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    transition: opacity .3s ease, transform .3s ease;
}

.ba-auth-ticker.is-out {
    opacity: 0;
    transform: translateY(6px);
}

.ba-auth-hero-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .ba-auth {
        grid-template-columns: 1fr;
    }

    .ba-auth-side {
        display: none;
    }

    .ba-auth-main {
        justify-content: flex-start;
        padding: 0 0 28px;
    }

    .ba-auth-hero-mobile {
        display: block;
        padding: 28px 22px 46px;
        border-radius: 0 0 50% 50% / 0 0 26px 26px;
        background: var(--auth-side);
        color: #fff;
        text-align: center;
    }

    .ba-auth-brand {
        font-size: 22px;
        font-weight: 800;
    }

    .ba-auth-hero-mobile p {
        margin: 6px auto 8px;
        max-width: 360px;
        font-size: 13px;
        line-height: 1.5;
        color: rgba(255, 255, 255, .85);
    }

    .ba-auth-hero-stats {
        font-size: 12px;
        color: rgba(255, 255, 255, .8);
    }

    .ba-auth-panel {
        padding: 22px 18px 0;
    }

    .ba-auth-logo {
        display: none;
    }

    .ba-auth-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .ba-auth-actions {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Cac trang auth con lai (layout the cu) ---------------- */
.auth-bg {
    min-height: 100vh;
    background: radial-gradient(900px 500px at 85% -10%, rgba(168, 85, 247, .18), transparent),
        radial-gradient(800px 500px at -10% 110%, rgba(236, 72, 153, .14), transparent),
        #f7f6fd;
}

.auth-bg:before,
body:has(.auth-header-box) .auth-bg .mx-auto:after,
body:has(.auth-header-box) .auth-bg .mx-auto:before {
    display: none;
}

.auth-bg .card {
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 50px -24px rgba(76, 52, 160, .35);
    overflow: hidden;
}

.auth-bg .auth-header-box {
    border-radius: 0 !important;
    background: var(--auth-side);
}

.auth-bg .auth-header-box > .text-center {
    padding: 26px 24px 22px !important;
}

.auth-bg .auth-header-box h4 {
    margin: 14px 0 0 !important;
    font-size: 20px !important;
    font-weight: 800;
    color: #fff;
}

.auth-bg .auth-logo {
    width: auto !important;
    max-width: 180px;
    max-height: 56px;
    height: auto !important;
    object-fit: contain;
    padding: 6px 12px;
    border-radius: 12px;
    background: #fff;
}

.auth-bg .auth-header-box + .card-body {
    padding: 24px 28px 20px !important;
}

@media (min-width: 992px) {
    .auth-bg .col-lg-4 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 470px;
    }
}

.auth-bg .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #384158;
}

.auth-bg .form-control {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
    font-size: 14px;
    color: var(--auth-text);
    box-shadow: none;
}

.auth-bg input[type="password"].form-control,
.auth-bg input[type="email"].form-control,
.auth-bg input[name="email"].form-control,
.auth-bg input[name="username"].form-control,
.auth-bg input[name="phone"].form-control,
.auth-bg input[name="captcha_code"].form-control,
.auth-bg input[name="code"].form-control,
.auth-bg input[name="two_factor_code"].form-control {
    padding-left: 44px;
}

.auth-bg .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.auth-bg .btn {
    border-radius: 12px;
    font-weight: 700;
}

.auth-bg .btn-primary {
    height: 46px;
    border: 0;
    background: var(--auth-grad);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(124, 92, 245, .8);
}

.auth-bg .btn-primary:hover,
.auth-bg .btn-primary:focus {
    background: var(--auth-grad);
    filter: brightness(1.05);
    color: #fff;
}

.auth-bg .btn-outline-danger {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--auth-border);
    background: #fff;
    color: #384158;
}

.auth-bg .btn-link,
.auth-bg a.text-primary,
.auth-bg .text-primary {
    color: var(--auth-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.auth-bg .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-bg #captcha-img {
    border: 1px solid var(--auth-border);
    border-radius: 10px !important;
}

/* SweetAlert2 */
.swal2-popup {
    border-radius: 22px;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.swal2-popup .btn.btn-primary {
    padding: 10px 26px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-grad);
    color: #fff;
    font-weight: 700;
}
