/* ============================================================
   Bynicx Auth Pages — Custom Styles
   Dark crypto MLM theme, responsive, modern
   ============================================================ */

/* ── Auth Layout ── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--xvt-body-bg, #0b1220);
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #087E8B 0%, #06BEE1 50%, #087E8B 100%);
    min-height: 100vh;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: authBgPulse 8s ease-in-out infinite;
}

@keyframes authBgPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--xvt-body-bg, #0b1220);
    min-height: 100vh;
    overflow-y: auto;
}

/* ── Left Side Content ── */
.auth-branding {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.auth-branding h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.auth-branding p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ── Plan Highlights ── */
.plan-highlights {
    color: #fff;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.plan-highlights h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
}

.plan-item:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,0.18);
}

.plan-item i {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    color: #06BEE1;
}

.plan-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.plan-price {
    text-align: center;
    margin-top: 1.5rem;
    padding: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.plan-price .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.plan-price .period {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ── Crypto Floating Elements ── */
.crypto-float {
    position: absolute;
    color: rgba(255,255,255,0.08);
    font-size: 3rem;
    z-index: 0;
    animation: floatCrypto 6s ease-in-out infinite;
}

.crypto-float:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.crypto-float:nth-child(2) { top: 70%; left: 15%; animation-delay: 1.5s; font-size: 2rem; }
.crypto-float:nth-child(3) { top: 30%; right: 10%; animation-delay: 3s; font-size: 4rem; }
.crypto-float:nth-child(4) { bottom: 15%; right: 20%; animation-delay: 0.8s; font-size: 2.5rem; }
.crypto-float:nth-child(5) { top: 50%; left: 5%; animation-delay: 2.2s; font-size: 1.8rem; }

@keyframes floatCrypto {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Auth Card (Right Side) ── */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--xvt-card-bg, #1e293b);
    border: 1px solid var(--xvt-border, #334155);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.auth-card-lg {
    max-width: 540px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-header .brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--xvt-text, #e2e8f0);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.auth-card-header .brand-logo i {
    color: var(--xvt-accent, #06BEE1);
}

.auth-card-header h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--xvt-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.auth-card-header p {
    color: var(--xvt-muted, #94a3b8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ── Form Styles ── */
.auth-card .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--xvt-muted, #94a3b8);
    margin-bottom: 0.375rem;
}

.auth-card .form-control,
.auth-card .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--xvt-border, #334155);
    color: var(--xvt-text, #e2e8f0);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--xvt-primary, #087E8B);
    box-shadow: 0 0 0 3px rgba(8,126,139,0.2);
    color: var(--xvt-text, #e2e8f0);
}

.auth-card .form-control::placeholder {
    color: var(--xvt-muted, #94a3b8);
    opacity: 0.6;
}

.auth-card .form-select option {
    background: var(--xvt-card-bg, #1e293b);
    color: var(--xvt-text, #e2e8f0);
}

/* ── Input Group with Icons ── */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .fa-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xvt-muted, #94a3b8);
    font-size: 0.9rem;
    z-index: 2;
}

.input-icon-wrap .form-control {
    padding-left: 2.5rem;
}

/* ── Password Toggle ── */
.password-toggle {
    position: relative;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--xvt-muted, #94a3b8);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9rem;
    z-index: 2;
    transition: color 0.2s;
}

.password-toggle .toggle-btn:hover {
    color: var(--xvt-accent, #06BEE1);
}

/* ── Password Strength Meter ── */
.password-strength {
    margin-top: 6px;
}

.strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.strength-bar .bar-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--xvt-border, #334155);
    transition: background 0.3s;
}

.strength-bar.score-1 .bar-segment:nth-child(1) { background: #ef4444; }
.strength-bar.score-2 .bar-segment:nth-child(1),
.strength-bar.score-2 .bar-segment:nth-child(2) { background: #f59e0b; }
.strength-bar.score-3 .bar-segment:nth-child(1),
.strength-bar.score-3 .bar-segment:nth-child(2),
.strength-bar.score-3 .bar-segment:nth-child(3) { background: #06BEE1; }
.strength-bar.score-4 .bar-segment:nth-child(1),
.strength-bar.score-4 .bar-segment:nth-child(2),
.strength-bar.score-4 .bar-segment:nth-child(3),
.strength-bar.score-4 .bar-segment:nth-child(4) { background: #10b981; }

.strength-text {
    font-size: 0.75rem;
    color: var(--xvt-muted, #94a3b8);
}

/* ── Sponsor Feedback ── */
.sponsor-feedback {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2em;
}

.sponsor-feedback.valid { color: #10b981; }
.sponsor-feedback.invalid { color: #ef4444; }
.sponsor-feedback.checking { color: var(--xvt-muted, #94a3b8); }

/* ── Gradient Button ── */
.btn-gradient {
    background: linear-gradient(135deg, var(--xvt-primary, #087E8B), var(--xvt-accent, #06BEE1));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6,190,225,0.3);
    color: #fff;
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-gradient .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

/* ── Form Divider ── */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: var(--xvt-muted, #94a3b8);
    font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--xvt-border, #334155);
}

/* ── Terms Checkbox ── */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--xvt-muted, #94a3b8);
}

.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--xvt-primary, #087E8B);
    flex-shrink: 0;
}

.terms-check a {
    color: var(--xvt-accent, #06BEE1);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

/* ── Auth Footer Links ── */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--xvt-muted, #94a3b8);
}

.auth-footer a {
    color: var(--xvt-primary, #087E8B);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--xvt-accent, #06BEE1);
}

/* ── OTP Input ── */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--xvt-border, #334155);
    border-radius: 10px;
    color: var(--xvt-text, #e2e8f0);
    transition: border-color 0.2s;
}

.otp-inputs input:focus {
    border-color: var(--xvt-primary, #087E8B);
    box-shadow: 0 0 0 3px rgba(8,126,139,0.2);
    outline: none;
}

/* ── Blocked Screen ── */
.blocked-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--xvt-body-bg, #0b1220);
}

.blocked-screen .blocked-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.blocked-screen .blocked-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #ef4444;
    text-transform: uppercase;
}

.blocked-screen .blocked-reason-box {
    background: var(--xvt-card-bg, #1e293b);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* ── Verification Success ── */
.verify-success {
    text-align: center;
    padding: 2rem 0;
}

.verify-success .verify-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .auth-right {
        min-height: auto;
        padding: 1.5rem;
    }

    .auth-branding h1 {
        font-size: 1.8rem;
    }

    .plan-highlights {
        max-width: 100%;
    }

    .plan-item {
        padding: 8px 12px;
    }

    .plan-price .amount {
        font-size: 2.2rem;
    }

    .crypto-float {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .auth-branding h1 {
        font-size: 1.5rem;
    }

    .otp-inputs input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }

    .plan-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* ── Toast Notification Override ── */
.toast-container {
    z-index: 9999;
}

/* ── SweetAlert2 Dark Overrides ── */
.swal2-popup {
    background: var(--xvt-card-bg, #1e293b) !important;
    color: var(--xvt-text, #e2e8f0) !important;
    border: 1px solid var(--xvt-border, #334155) !important;
}

.swal2-title {
    color: var(--xvt-text, #e2e8f0) !important;
}

.swal2-html-container {
    color: var(--xvt-muted, #94a3b8) !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--xvt-primary, #087E8B), var(--xvt-accent, #06BEE1)) !important;
    border: none !important;
    border-radius: 8px !important;
}
