/* ============================================================
   CRYPTO WALLET LOGIN — Premium Landing Page
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables (Dark — default) ---------- */
:root {
    --login-bg-primary: #0a0e17;
    --login-bg-secondary: #0f1623;
    --login-bg-card: rgba(15, 22, 40, 0.65);
    --login-border: rgba(255, 255, 255, 0.06);
    --login-border-focus: rgba(99, 140, 255, 0.4);
    --login-text: #e8ecf4;
    --login-text-muted: #6b7a99;
    --login-accent: #638cff;
    --login-accent-2: #00d4aa;
    --login-accent-3: #a855f7;
    --login-gradient-1: linear-gradient(135deg, #638cff 0%, #00d4aa 100%);
    --login-gradient-2: linear-gradient(135deg, #a855f7 0%, #638cff 100%);
    --login-glow: rgba(99, 140, 255, 0.15);
    --login-input-bg: rgba(255, 255, 255, 0.04);
    --login-input-border: rgba(255, 255, 255, 0.08);
    --login-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --login-font-display: 'Space Grotesk', sans-serif;
}

/* ---------- CSS Variables (Light) ---------- */
.crypto-login-page.light-mode {
    --login-bg-primary: #f0f2f8;
    --login-bg-secondary: #ffffff;
    --login-bg-card: rgba(255, 255, 255, 0.85);
    --login-border: rgba(0, 0, 0, 0.08);
    --login-border-focus: rgba(99, 140, 255, 0.5);
    --login-text: #1a1d2e;
    --login-text-muted: #6b7a99;
    --login-accent: #4a6cf7;
    --login-accent-2: #00b894;
    --login-accent-3: #9b59b6;
    --login-gradient-1: linear-gradient(135deg, #4a6cf7 0%, #00b894 100%);
    --login-gradient-2: linear-gradient(135deg, #9b59b6 0%, #4a6cf7 100%);
    --login-glow: rgba(74, 108, 247, 0.12);
    --login-input-bg: rgba(0, 0, 0, 0.03);
    --login-input-border: rgba(0, 0, 0, 0.10);
}

/* ---------- Reset for Login Page ---------- */
.crypto-login-page {
    min-height: 100vh;
    background: var(--login-bg-primary);
    font-family: var(--login-font);
    color: var(--login-text);
    overflow-x: hidden;
    position: relative;
}
.crypto-login-page *,
.crypto-login-page *::before,
.crypto-login-page *::after {
    box-sizing: border-box;
}

/* ---------- Animated Mesh Gradient Background ---------- */
.crypto-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.crypto-login-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(99, 140, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 75% 20%, rgba(168, 85, 247, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 700px 700px at 60% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(99, 140, 255, 0.06) 0%, transparent 70%);
    animation: meshFloat 20s ease-in-out infinite;
}
@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(3%, -2%) rotate(1deg); }
    50% { transform: translate(-2%, 3%) rotate(-1deg); }
    75% { transform: translate(2%, 1%) rotate(0.5deg); }
}

/* ---------- Grid Pattern Overlay ---------- */
.crypto-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99, 140, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 140, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* ---------- Floating Particles ---------- */
.crypto-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.crypto-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}
.crypto-particle:nth-child(1) {
    width: 4px; height: 4px;
    background: var(--login-accent);
    left: 10%; animation-duration: 18s; animation-delay: 0s;
}
.crypto-particle:nth-child(2) {
    width: 3px; height: 3px;
    background: var(--login-accent-2);
    left: 25%; animation-duration: 22s; animation-delay: 3s;
}
.crypto-particle:nth-child(3) {
    width: 5px; height: 5px;
    background: var(--login-accent-3);
    left: 45%; animation-duration: 16s; animation-delay: 1s;
}
.crypto-particle:nth-child(4) {
    width: 3px; height: 3px;
    background: var(--login-accent);
    left: 65%; animation-duration: 24s; animation-delay: 5s;
}
.crypto-particle:nth-child(5) {
    width: 4px; height: 4px;
    background: var(--login-accent-2);
    left: 80%; animation-duration: 19s; animation-delay: 2s;
}
.crypto-particle:nth-child(6) {
    width: 2px; height: 2px;
    background: var(--login-accent-3);
    left: 92%; animation-duration: 21s; animation-delay: 4s;
}
.crypto-particle:nth-child(7) {
    width: 3px; height: 3px;
    background: var(--login-accent);
    left: 35%; animation-duration: 17s; animation-delay: 6s;
}
.crypto-particle:nth-child(8) {
    width: 4px; height: 4px;
    background: var(--login-accent-2);
    left: 55%; animation-duration: 23s; animation-delay: 1.5s;
}
@keyframes particleFloat {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- Floating Crypto Icons ---------- */
.crypto-floating-icons {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.crypto-float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.06;
    animation: iconDrift linear infinite;
}
.crypto-float-icon:nth-child(1) { left: 5%; top: 15%; animation-duration: 30s; font-size: 36px; }
.crypto-float-icon:nth-child(2) { left: 15%; top: 70%; animation-duration: 25s; animation-delay: -5s; }
.crypto-float-icon:nth-child(3) { right: 10%; top: 20%; animation-duration: 35s; animation-delay: -10s; font-size: 42px; }
.crypto-float-icon:nth-child(4) { right: 20%; top: 65%; animation-duration: 28s; animation-delay: -3s; }
.crypto-float-icon:nth-child(5) { left: 40%; top: 10%; animation-duration: 32s; animation-delay: -8s; font-size: 32px; }
.crypto-float-icon:nth-child(6) { right: 35%; top: 80%; animation-duration: 26s; animation-delay: -12s; }
@keyframes iconDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-15px, -10px) rotate(180deg); }
    75% { transform: translate(10px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ---------- Main Layout ---------- */
.crypto-login-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 70px;
}
.crypto-login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--login-bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--login-border);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(99, 140, 255, 0.05);
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Left Panel (Branding) ---------- */
.crypto-login-brand {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(99, 140, 255, 0.08) 0%, rgba(0, 212, 170, 0.04) 50%, rgba(168, 85, 247, 0.06) 100%);
    border-right: 1px solid var(--login-border);
}
.crypto-login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(99, 140, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.brand-logo {
    position: relative;
    margin-bottom: 40px;
}
.brand-logo img {
    height: 42px;
    filter: brightness(1.1);
}
.dark-mode .brand-logo .brand-logo-light { display: none; }
.brand-logo .brand-logo-dark { display: none; }
.dark-mode .brand-logo .brand-logo-dark { display: block; }

.brand-headline {
    position: relative;
    font-family: var(--login-font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.brand-headline .gradient-text {
    background: var(--login-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-subtitle {
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: var(--login-text-muted);
    margin-bottom: 25px !important;
    max-width: 380px;
}

/* Feature Pills */
.brand-features {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}
.brand-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 140, 255, 0.15);
    transform: translateX(4px);
}
.brand-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.brand-feature-icon.blue {
    background: rgba(99, 140, 255, 0.12);
    color: var(--login-accent);
}
.brand-feature-icon.green {
    background: rgba(0, 212, 170, 0.12);
    color: var(--login-accent-2);
}
.brand-feature-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--login-accent-3);
}
.brand-feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--login-text);
    opacity: 0.85;
}

/* ---------- Right Panel (Form) ---------- */
.crypto-login-form-panel {
    flex: 1;
    max-width: 500px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 36px;
}
.form-header h2 {
    font-family: var(--login-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--login-text);
    margin: 0 0 8px 0;
}
.form-header p {
    font-size: 14px;
    color: var(--login-text-muted);
    margin: 0;
}

/* Form Inputs */
.crypto-form .form-group {
    margin-bottom: 22px;
    position: relative;
}
.crypto-form .input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--login-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.crypto-form .input-wrapper {
    position: relative;
}
.crypto-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 2;
}
.crypto-form .form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    background: var(--login-input-bg);
    border: 1px solid var(--login-input-border);
    border-radius: 12px;
    color: var(--login-text);
    font-family: var(--login-font);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}
.crypto-form .form-control::placeholder {
    color: rgba(107, 122, 153, 0.6);
}
.crypto-form .form-control:focus {
    border-color: var(--login-border-focus);
    background: rgba(99, 140, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 140, 255, 0.08);
}
.crypto-form .form-control:focus ~ .input-icon,
.crypto-form .form-control:focus + .input-icon {
    color: var(--login-accent);
}
.crypto-form .form-control.is-invalid {
    border-color: rgba(255, 82, 82, 0.5);
}

/* Password Toggle */
.crypto-form .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-text-muted);
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}
.crypto-form .toggle-password:hover {
    color: var(--login-accent);
}

/* Remember & Forgot */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.crypto-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.crypto-checkbox input[type="checkbox"] {
    display: none;
}
.crypto-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--login-input-border);
    background: var(--login-input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.crypto-checkbox .checkmark i {
    font-size: 10px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}
.crypto-checkbox input:checked + .checkmark {
    background: var(--login-accent);
    border-color: var(--login-accent);
}
.crypto-checkbox input:checked + .checkmark i {
    opacity: 1;
    transform: scale(1);
}
.crypto-checkbox .check-label {
    font-size: 13px;
    color: var(--login-text-muted);
    user-select: none;
}
.forgot-link {
    font-size: 13px;
    color: var(--login-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.forgot-link:hover {
    color: var(--login-accent-2);
    text-decoration: none;
}

/* Submit Button */
.crypto-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    font-family: var(--login-font);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--login-gradient-1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.crypto-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.crypto-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 30px rgba(99, 140, 255, 0.3),
        0 0 60px rgba(99, 140, 255, 0.1);
}
.crypto-submit-btn:hover::before {
    opacity: 1;
}
.crypto-submit-btn:active {
    transform: translateY(0);
}
.crypto-submit-btn .btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--login-border);
}
.form-divider span {
    font-size: 12px;
    color: var(--login-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Register Link */
.form-footer {
    text-align: center;
}
.form-footer p {
    font-size: 14px;
    color: var(--login-text-muted);
    margin: 0;
}
.form-footer a {
    color: var(--login-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-footer a:hover {
    color: var(--login-accent-2);
}

/* Captcha */
.captcha-wrapper {
    margin-bottom: 22px;
}

/* ---------- TradingView Ticker Strip ---------- */
.tradingview-ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-top: 1px solid var(--login-border);
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tradingview-ticker-wrap iframe {
    display: block;
}

/* ---------- Glow Orbs ---------- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}
.glow-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 140, 255, 0.15);
    top: -100px;
    right: -50px;
    animation: orbPulse 6s ease-in-out infinite;
}
.glow-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(0, 212, 170, 0.12);
    bottom: -60px;
    left: -40px;
    animation: orbPulse 8s ease-in-out infinite reverse;
}
@keyframes orbPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* ---------- Security Badge ---------- */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid rgba(0, 212, 170, 0.1);
}
.security-badge i {
    color: var(--login-accent-2);
    font-size: 16px;
}
.security-badge span {
    font-size: 12px;
    color: var(--login-text-muted);
}

/* ---------- Stagger-In Animations ---------- */
.stagger-in {
    opacity: 0;
    transform: translateY(16px);
    animation: staggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-in:nth-child(1) { animation-delay: 0.1s; }
.stagger-in:nth-child(2) { animation-delay: 0.2s; }
.stagger-in:nth-child(3) { animation-delay: 0.3s; }
.stagger-in:nth-child(4) { animation-delay: 0.4s; }
.stagger-in:nth-child(5) { animation-delay: 0.5s; }
.stagger-in:nth-child(6) { animation-delay: 0.6s; }
.stagger-in:nth-child(7) { animation-delay: 0.7s; }
.stagger-in:nth-child(8) { animation-delay: 0.8s; }
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile: Theme btn next to hamburger ---------- */
.mobile-theme-btn {
    display: none;
}
@media (max-width: 1199px) {
    /* Show extracted theme btn next to toggler */
    .mobile-theme-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--login-input-border);
        background: transparent;
        cursor: pointer;
        color: var(--login-text-muted);
        font-size: 15px;
        padding: 0;
        outline: none;
        margin-right: 10px;
        transition: all 0.2s ease;
        order: 2;
    }
    .mobile-theme-btn:hover {
        border-color: var(--login-accent);
        color: var(--login-accent);
        background: rgba(99, 140, 255, 0.08);
    }
    .mobile-theme-btn .la-sun  { display: none; }
    .mobile-theme-btn .la-moon { display: inline-block; }
    .dark-mode .mobile-theme-btn .la-sun  { display: inline-block; color: var(--login-accent); }
    .dark-mode .mobile-theme-btn .la-moon { display: none; }
    .crypto-login-page.light-mode .mobile-theme-btn .la-sun  { display: none; }
    .crypto-login-page.light-mode .mobile-theme-btn .la-moon { display: inline-block; }

    /* Hide original theme-btn inside collapsed menu */
    .crypto-login-page .navbar-nav .theme-btn {
        display: none !important;
    }
    .crypto-login-page .navbar-nav li:has(.theme-btn) {
        display: none !important;
    }

    /* Navbar layout on mobile */
    .crypto-login-page .navbar {
        flex-wrap: nowrap;
        align-items: center;
    }
    .crypto-login-page .navbar-toggler {
        order: 3;
        flex-shrink: 0;
    }
    .crypto-login-page .site-logo {
        order: 1;
        flex: 1;
        min-width: 0;
    }
}

/* ============================================================
   REGISTER PAGE — Step Wizard
   ============================================================ */

/* Register wrapper — wider to fit wizard content */
.crypto-register-wrapper {
    max-width: 1200px;
}
.crypto-register-form-panel {
    max-width: 580px;
    padding: 40px 50px;
}

/* Two-column row inside wizard */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

/* Select styling to match inputs */
.crypto-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 48px;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.crypto-form select.form-control option {
    background: var(--login-bg-secondary);
    color: var(--login-text);
}

/* Date input fix */
.crypto-form input[type="date"] {
    padding-left: 48px;
}
.crypto-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
}

/* ----- Wizard Step Indicator ----- */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 10px;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.wizard-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--login-font-display);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--login-input-border);
    background: var(--login-input-bg);
    color: var(--login-text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.wizard-step-check {
    display: none;
    font-size: 14px;
}
.wizard-step.active .wizard-step-circle {
    border-color: var(--login-accent);
    background: rgba(99, 140, 255, 0.15);
    color: var(--login-accent);
    box-shadow: 0 0 0 4px rgba(99, 140, 255, 0.1), 0 0 20px rgba(99, 140, 255, 0.15);
    transform: scale(1.08);
}
.wizard-step.completed .wizard-step-circle {
    border-color: var(--login-accent-2);
    background: var(--login-accent-2);
    color: #fff;
}
.wizard-step.completed .wizard-step-num {
    display: none;
}
.wizard-step.completed .wizard-step-check {
    display: block;
}
.wizard-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--login-text-muted);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
.wizard-step.active .wizard-step-label {
    color: var(--login-accent);
}
.wizard-step.completed .wizard-step-label {
    color: var(--login-accent-2);
}

/* Connector lines */
.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--login-input-border);
    margin: 0 12px;
    margin-bottom: 24px;
    border-radius: 2px;
    transition: background 0.4s ease;
    min-width: 40px;
    max-width: 80px;
}
.wizard-step-line.completed {
    background: var(--login-accent-2);
}

/* ----- Wizard Panels ----- */
.wizard-panel {
    display: none;
    animation: panelFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-panel.active {
    display: block;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ----- Wizard Navigation Buttons ----- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}
.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--login-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.02em;
}
.wizard-btn-next {
    background: var(--login-gradient-1);
    color: #fff;
    margin-left: auto;
}
.wizard-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 140, 255, 0.3);
}
.wizard-btn-prev {
    background: transparent;
    color: var(--login-text-muted);
    border: 1px solid var(--login-input-border);
}
.wizard-btn-prev:hover {
    border-color: var(--login-accent);
    color: var(--login-accent);
    background: rgba(99, 140, 255, 0.04);
}

/* ----- Password Strength Indicator ----- */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 4px;
    background: var(--login-input-border);
    transition: background 0.3s ease;
}
.strength-text {
    font-size: 12px;
    font-weight: 500;
    min-width: 42px;
    text-align: right;
}

/* ----- Shake animation for validation ----- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.4s ease;
}

/* Terms checkbox links */
.crypto-checkbox .check-label a {
    color: var(--login-accent);
    text-decoration: none;
    font-weight: 500;
}
.crypto-checkbox .check-label a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .crypto-login-wrapper {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }
    .crypto-register-wrapper {
        max-width: 520px;
    }
    .crypto-login-brand {
        padding: 32px 28px 26px;
        border-right: none;
        border-bottom: 1px solid var(--login-border);
    }
    .brand-logo img {
        height: 36px;
    }
    .brand-logo {
        margin-bottom: 24px;
    }
    .brand-headline {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .brand-subtitle {
        margin-bottom: 16px !important;
        font-size: 14px;
    }
    .brand-features {
        display: none;
    }
    .crypto-login-form-panel {
        max-width: 100%;
        padding: 28px;
    }
    .crypto-register-form-panel {
        max-width: 100%;
        padding: 28px;
    }
    .form-header {
        margin-bottom: 24px;
    }
    .form-header h2 {
        font-size: 24px;
    }
    .crypto-form .form-group {
        margin-bottom: 18px;
    }
    .form-options {
        margin-bottom: 22px;
    }
    .security-badge {
        margin-top: 18px;
    }
    .form-divider {
        margin: 20px 0;
    }
    /* Wizard adjustments */
    .wizard-step-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .wizard-steps {
        margin-bottom: 24px;
    }
    .wizard-btn {
        padding: 11px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .crypto-login-container {
        padding: 10px 10px 70px;
    }
    .crypto-login-wrapper {
        border-radius: 18px;
    }
    .crypto-login-brand {
        padding: 24px 20px 20px;
    }
    .brand-logo img {
        height: 32px;
    }
    .brand-logo {
        margin-bottom: 18px;
    }
    /* Wizard mobile */
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .wizard-step-circle {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .wizard-step-label {
        font-size: 11px;
    }
    .wizard-step-line {
        min-width: 24px;
        margin: 0 6px;
        margin-bottom: 20px;
    }
    .wizard-steps {
        margin-bottom: 20px;
        padding: 0;
    }
    .wizard-nav {
        flex-direction: column;
        gap: 10px;
    }
    .wizard-nav .wizard-btn {
        width: 100%;
        justify-content: center;
    }
    .wizard-btn-next {
        margin-left: 0;
        order: 1;
    }
    .wizard-btn-prev {
        order: 2;
    }
    .crypto-register-form-panel {
        padding: 20px 16px;
    }
    .brand-headline {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .brand-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }
    .crypto-login-form-panel {
        padding: 22px 18px;
    }
    .form-header {
        margin-bottom: 20px;
    }
    .form-header h2 {
        font-size: 20px;
    }
    .form-header p {
        font-size: 13px;
    }
    .crypto-form .form-control {
        height: 48px;
        font-size: 14px;
        padding-left: 42px;
    }
    .crypto-form .input-icon {
        left: 14px;
        font-size: 16px;
    }
    .crypto-submit-btn {
        height: 48px;
        font-size: 14px;
    }
    .crypto-form .input-label {
        font-size: 12px;
    }
    .form-options {
        margin-bottom: 20px;
    }
    .crypto-checkbox .check-label {
        font-size: 12px;
    }
    .forgot-link {
        font-size: 12px;
    }
    .security-badge {
        padding: 8px 12px;
        margin-top: 14px;
    }
    .security-badge span {
        font-size: 11px;
    }
    .form-divider {
        margin: 16px 0;
    }
    .form-footer p {
        font-size: 13px;
    }
    .tradingview-ticker-wrap {
        display: none;
    }
}

/* ---------- reCAPTCHA Dark Override ---------- */
.captcha-wrapper iframe {
    border-radius: 10px;
}

/* ---------- Override parent layout styles ---------- */
.crypto-login-page .preloader,
.crypto-login-page .new_preloader {
    display: none !important;
}

/* Header must sit above all fixed overlays */
header.header {
    position: relative;
    z-index: 100 !important;
}

.crypto-login-page .header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
    position: relative;
    z-index: 100 !important;
}
.crypto-login-page .header .main-menu li a {
    color: var(--login-text-muted) !important;
}
.crypto-login-page .header .main-menu li a:hover,
.crypto-login-page .header .main-menu li a.active {
    color: var(--login-accent) !important;
}
.crypto-login-page .main-wrapper {
    min-height: auto !important;
    background: transparent !important;
}
.crypto-login-page .footer-section {
    display: none;
}
.crypto-login-page .site-logo .logo-light {
    display: none;
}
.crypto-login-page .site-logo .logo-dark {
    display: block !important;
}
.crypto-login-page body,
body.crypto-login-body {
    background: var(--login-bg-primary) !important;
}

/* ============================================================
   LIGHT MODE overrides
   ============================================================ */
.crypto-login-page.light-mode {
    background: var(--login-bg-primary);
}

/* Header in light */
.crypto-login-page.light-mode ~ .header,
.crypto-login-page.light-mode .header {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

/* Show light logo, hide dark */
.crypto-login-page.light-mode .site-logo .logo-light {
    display: block !important;
}
.crypto-login-page.light-mode .site-logo .logo-dark {
    display: none !important;
}
.crypto-login-page.light-mode .brand-logo .brand-logo-light {
    display: block !important;
}
.crypto-login-page.light-mode .brand-logo .brand-logo-dark {
    display: none !important;
}

/* Card lighter shadow */
.crypto-login-page.light-mode .crypto-login-wrapper {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 25px 80px rgba(0, 0, 0, 0.10),
        0 0 60px rgba(74, 108, 247, 0.06);
}

/* Brand panel lighter gradient */
.crypto-login-page.light-mode .crypto-login-brand {
    background: linear-gradient(160deg, rgba(74, 108, 247, 0.06) 0%, rgba(0, 184, 148, 0.03) 50%, rgba(155, 89, 182, 0.04) 100%);
}
.crypto-login-page.light-mode .crypto-login-brand::before {
    background:
        radial-gradient(circle at 30% 40%, rgba(74, 108, 247, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 184, 148, 0.05) 0%, transparent 40%);
}

/* Feature pills in light */
.crypto-login-page.light-mode .brand-feature {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}
.crypto-login-page.light-mode .brand-feature:hover {
    background: rgba(74, 108, 247, 0.04);
    border-color: rgba(74, 108, 247, 0.15);
}

/* Glow orbs dimmer in light */
.crypto-login-page.light-mode .glow-orb-1 {
    background: rgba(74, 108, 247, 0.08);
}
.crypto-login-page.light-mode .glow-orb-2 {
    background: rgba(0, 184, 148, 0.06);
}

/* Particles dimmer */
.crypto-login-page.light-mode .crypto-particle {
    opacity: 0;
    animation-name: particleFloatLight;
}
@keyframes particleFloatLight {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Grid lighter */
.crypto-login-page.light-mode .crypto-grid-overlay {
    background-image:
        linear-gradient(rgba(74, 108, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 108, 247, 0.04) 1px, transparent 1px);
}

/* Floating icons lighter */
.crypto-login-page.light-mode .crypto-float-icon {
    opacity: 0.04;
}

/* Mesh gradient lighter */
.crypto-login-page.light-mode .crypto-login-bg::before {
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(74, 108, 247, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 75% 20%, rgba(155, 89, 182, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 700px 700px at 60% 80%, rgba(0, 184, 148, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(74, 108, 247, 0.04) 0%, transparent 70%);
}

/* Security badge */
.crypto-login-page.light-mode .security-badge {
    background: rgba(0, 184, 148, 0.06);
    border-color: rgba(0, 184, 148, 0.12);
}

/* Submit hover in light */
.crypto-login-page.light-mode .crypto-submit-btn:hover {
    box-shadow:
        0 8px 30px rgba(74, 108, 247, 0.25),
        0 0 40px rgba(74, 108, 247, 0.08);
}

/* Autofill in light mode */
.crypto-login-page.light-mode .crypto-form input:-webkit-autofill,
.crypto-login-page.light-mode .crypto-form input:-webkit-autofill:hover,
.crypto-login-page.light-mode .crypto-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1d2e !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

/* TradingView ticker in light */
.crypto-login-page.light-mode .tradingview-ticker-wrap {
    background: rgba(240, 242, 248, 0.9);
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* Header links in light mode */
.crypto-login-page.light-mode .header .main-menu li a {
    color: #555 !important;
}
.crypto-login-page.light-mode .header .main-menu li a:hover,
.crypto-login-page.light-mode .header .main-menu li a.active {
    color: var(--login-accent) !important;
}
.crypto-login-page.light-mode .theme-btn {
    border-color: rgba(0, 0, 0, 0.12);
    color: #555;
}
.crypto-login-page.light-mode .theme-btn:hover {
    border-color: var(--login-accent);
    color: var(--login-accent);
    background: rgba(74, 108, 247, 0.06);
}

/* Theme button in header for login page */
.crypto-login-page .theme-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--login-text-muted);
}
.crypto-login-page .theme-btn:hover {
    border-color: var(--login-accent);
    color: var(--login-accent);
    background: rgba(99, 140, 255, 0.08);
}
.crypto-login-page .navbar-toggler {
    background-color: var(--login-accent) !important;
}

/* ============================================================
   Autofill fix
   ============================================================ */
.crypto-form input:-webkit-autofill,
.crypto-form input:-webkit-autofill:hover,
.crypto-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--login-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--login-bg-secondary) inset !important;
    border-color: var(--login-input-border) !important;
    caret-color: var(--login-text);
}

/* ============================================================
   Invalid feedback
   ============================================================ */
.crypto-form .invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ff5252;
}

/* ============================================================
   Alert blocks
   ============================================================ */
.crypto-form .alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
}
.crypto-form .alert-danger {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff8a80;
}
