  @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

    html, body {
        height: 100vh;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* =============================================
       SPLIT SCREEN LAYOUT (desktop)
       ============================================= */
    @media (min-width: 601px) {
        #app > .main-content,
        #app > .main-content > .container-fluid {
            height: 100vh;
            padding: 0 !important;
            margin: 0 !important;
            max-width: 100% !important;
        }

        .login-split-wrapper {
            display: flex;
            height: 100vh;
            width: 100%;
        }

        /* Panel izquierdo: fondo oscuro con logo Bond */
        .login-left-panel {
            flex: 0 0 50%;
            width: 50%;
            background: linear-gradient(145deg, #12141f 0%, #1a1d30 60%, #1e2240 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 28px;
            position: relative;
            overflow: hidden;
        }

        .login-left-panel::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(108,63,228,0.15) 0%, transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        /* Floating animated orbs */
        .login-left-orb {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            filter: blur(60px);
            opacity: 0.35;
        }
        .login-left-orb--1 {
            width: 220px; height: 220px;
            background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
            top: 15%; left: 10%;
            animation: orbFloat1 8s ease-in-out infinite;
        }
        .login-left-orb--2 {
            width: 180px; height: 180px;
            background: radial-gradient(circle, #05d1e9 0%, transparent 70%);
            bottom: 20%; right: 12%;
            animation: orbFloat2 10s ease-in-out infinite;
        }
        .login-left-orb--3 {
            width: 140px; height: 140px;
            background: radial-gradient(circle, #a855f7 0%, transparent 70%);
            top: 55%; left: 60%;
            animation: orbFloat3 12s ease-in-out infinite;
        }
        @keyframes orbFloat1 {
            0%, 100% { transform: translate(0, 0); }
            33% { transform: translate(30px, -20px); }
            66% { transform: translate(-15px, 15px); }
        }
        @keyframes orbFloat2 {
            0%, 100% { transform: translate(0, 0); }
            33% { transform: translate(-25px, 18px); }
            66% { transform: translate(20px, -25px); }
        }
        @keyframes orbFloat3 {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-20px, -30px); }
        }

        /* Feature bubbles flotantes */
        .login-bubble { display: none; }

        /* Pro feature pills */
        .login-pill {
            position: absolute;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(255,255,255,0.75);
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 28px;
            padding: 5px 14px 5px 5px;
            pointer-events: none;
            white-space: nowrap;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
            letter-spacing: 0.02em;
        }
        .login-pill__icon {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            flex-shrink: 0;
        }
        .login-pill__text {
            padding-right: 2px;
        }

        .login-pill--1 { top: 14%; left: 6%;   animation: pillFloat1 14s ease-in-out infinite; }
        .login-pill--2 { top: 7%;  right: 8%;  animation: pillFloat2 16s ease-in-out infinite 1s; }
        .login-pill--3 { bottom: 18%; left: 4%; animation: pillFloat3 12s ease-in-out infinite 0.5s; }
        .login-pill--4 { bottom: 8%; right: 6%; animation: pillFloat4 15s ease-in-out infinite 2s; }
        .login-pill--5 { top: 34%; left: 2%;   animation: pillFloat5 13s ease-in-out infinite 1.5s; }
        .login-pill--6 { top: 32%; right: 3%;  animation: pillFloat6 11s ease-in-out infinite 0.8s; }
        .login-pill--7 { bottom: 30%; left: 8%;  animation: pillFloat7 15s ease-in-out infinite 1.2s; }
        .login-pill--8 { top: 22%; right: 5%;   animation: pillFloat8 13s ease-in-out infinite 0.3s; }
        .login-pill--9 { bottom: 5%; left: 12%;  animation: pillFloat9 16s ease-in-out infinite 2.5s; }
        .login-pill--10 { top: 45%; right: 7%;  animation: pillFloat10 14s ease-in-out infinite 1.8s; }
        .login-pill--11 { bottom: 38%; right: 2%; animation: pillFloat11 12s ease-in-out infinite 0.6s; }
        .login-pill--12 { top: 4%;  left: 18%;  animation: pillFloat12 16s ease-in-out infinite 0.9s; }
        .login-pill--13 { bottom: 24%; right: 10%; animation: pillFloat13 14s ease-in-out infinite 2.2s; }
        .login-pill--14 { top: 18%; left: 22%;  animation: pillFloat14 12s ease-in-out infinite 1.6s; }
        .login-pill--15 { bottom: 12%; left: 18%; animation: pillFloat15 17s ease-in-out infinite 0.4s; }
        .login-pill--16 { top: 42%; left: 14%;  animation: pillFloat16 15s ease-in-out infinite 2.8s; }
        .login-pill--17 { top: 10%; right: 16%; animation: pillFloat17 13s ease-in-out infinite 1.1s; }
        .login-pill--18 { bottom: 42%; left: 1%; animation: pillFloat18 14s ease-in-out infinite 2.0s; }
        .login-pill--19 { bottom: 15%; right: 14%; animation: pillFloat19 16s ease-in-out infinite 0.7s; }

        @keyframes pillFloat1 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
            25% { transform: translateY(-14px) rotate(1deg); opacity: 0.85; }
            75% { transform: translateY(8px) rotate(-0.5deg); opacity: 0.6; }
        }
        @keyframes pillFloat2 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
            30% { transform: translateY(12px) rotate(-1deg); opacity: 0.8; }
            70% { transform: translateY(-10px) rotate(0.5deg); opacity: 0.55; }
        }
        @keyframes pillFloat3 {
            0%, 100% { transform: translate(0, 0); opacity: 0.5; }
            40% { transform: translate(10px, -16px); opacity: 0.85; }
            80% { transform: translate(-5px, 6px); opacity: 0.55; }
        }
        @keyframes pillFloat4 {
            0%, 100% { transform: translate(0, 0); opacity: 0.45; }
            35% { transform: translate(-12px, -10px); opacity: 0.75; }
            65% { transform: translate(6px, 8px); opacity: 0.5; }
        }
        @keyframes pillFloat5 {
            0%, 100% { transform: translateY(0); opacity: 0.4; }
            50% { transform: translateY(-18px); opacity: 0.7; }
        }
        @keyframes pillFloat6 {
            0%, 100% { transform: translateY(0); opacity: 0.45; }
            50% { transform: translateY(14px); opacity: 0.75; }
        }
        @keyframes pillFloat7 {
            0%, 100% { transform: translate(0, 0); opacity: 0.4; }
            40% { transform: translate(8px, -14px); opacity: 0.7; }
            80% { transform: translate(-4px, 6px); opacity: 0.45; }
        }
        @keyframes pillFloat8 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
            50% { transform: translateY(12px) rotate(-0.8deg); opacity: 0.8; }
        }
        @keyframes pillFloat9 {
            0%, 100% { transform: translate(0, 0); opacity: 0.4; }
            35% { transform: translate(-10px, -8px); opacity: 0.7; }
            70% { transform: translate(5px, 10px); opacity: 0.5; }
        }
        @keyframes pillFloat10 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
            50% { transform: translateY(-15px) rotate(0.8deg); opacity: 0.75; }
        }
        @keyframes pillFloat11 {
            0%, 100% { transform: translate(0, 0); opacity: 0.45; }
            40% { transform: translate(-8px, 12px); opacity: 0.7; }
            80% { transform: translate(6px, -6px); opacity: 0.5; }
        }
        @keyframes pillFloat12 {
            0%, 100% { transform: translateY(0); opacity: 0.35; }
            50% { transform: translateY(14px); opacity: 0.65; }
        }
        @keyframes pillFloat13 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
            45% { transform: translate(-10px, -12px) rotate(0.6deg); opacity: 0.7; }
        }
        @keyframes pillFloat14 {
            0%, 100% { transform: translateY(0); opacity: 0.38; }
            35% { transform: translateY(-16px); opacity: 0.72; }
            70% { transform: translateY(6px); opacity: 0.42; }
        }
        @keyframes pillFloat15 {
            0%, 100% { transform: translate(0, 0); opacity: 0.35; }
            50% { transform: translate(12px, -8px); opacity: 0.65; }
        }
        @keyframes pillFloat16 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
            40% { transform: translateY(10px) rotate(-0.5deg); opacity: 0.68; }
            80% { transform: translateY(-6px) rotate(0.3deg); opacity: 0.42; }
        }
        @keyframes pillFloat17 {
            0%, 100% { transform: translate(0, 0); opacity: 0.38; }
            50% { transform: translate(-6px, 14px); opacity: 0.7; }
        }
        @keyframes pillFloat18 {
            0%, 100% { transform: translateY(0); opacity: 0.35; }
            30% { transform: translateY(-12px); opacity: 0.65; }
            65% { transform: translateY(8px); opacity: 0.4; }
        }
        @keyframes pillFloat19 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
            45% { transform: translate(8px, -10px) rotate(0.5deg); opacity: 0.68; }
            85% { transform: translate(-4px, 4px) rotate(-0.3deg); opacity: 0.42; }
        }

        /* Right panel decorative shapes */
        .login-right-shape {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0.5;
        }
        .login-right-shape--1 {
            width: 180px; height: 180px;
            background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
            top: 8%; right: 5%;
            animation: rightShape1 16s ease-in-out infinite;
        }
        .login-right-shape--2 {
            width: 120px; height: 120px;
            background: radial-gradient(circle, rgba(5,209,233,0.06) 0%, transparent 70%);
            bottom: 12%; left: 8%;
            animation: rightShape2 20s ease-in-out infinite;
        }
        .login-right-shape--3 {
            width: 80px; height: 80px;
            background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 70%);
            top: 45%; left: 4%;
            animation: rightShape3 14s ease-in-out infinite;
        }
        @keyframes rightShape1 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(-15px, 20px) scale(1.15); }
        }
        @keyframes rightShape2 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, -10px) scale(1.1); }
        }
        @keyframes rightShape3 {
            0%, 100% { transform: scale(1); opacity: 0.4; }
            50% { transform: scale(1.3); opacity: 0.6; }
        }

        .login-split-wrapper.dark-mode .login-right-shape--1 {
            background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
        }
        .login-split-wrapper.dark-mode .login-right-shape--2 {
            background: radial-gradient(circle, rgba(5,209,233,0.08) 0%, transparent 70%);
        }
        .login-split-wrapper.dark-mode .login-right-shape--3 {
            background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
        }



        .login-left-panel .login-mobile-logo--split {
            display: flex !important;
            justify-content: center;
            margin: 0;
            padding: 0;
        }

        .login-left-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
        }

        .login-left-panel .login-mobile-logo--split img {
            width: 500px;
            max-width: 85%;
            height: auto;
            margin: 0;
            padding: 0;
            filter: drop-shadow(0 8px 32px rgba(108,63,228,0.35));
            animation: logoBreath 6s ease-in-out infinite;
        }
        @keyframes logoBreath {
            0%, 100% { filter: drop-shadow(0 8px 32px rgba(108,63,228,0.35)); transform: scale(1); }
            50% { filter: drop-shadow(0 12px 48px rgba(108,63,228,0.5)); transform: scale(1.02); }
        }

        .login-left-tagline {
            color: rgba(255,255,255,0.4);
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.5px;
            text-align: center;
        }

        /* Panel derecho: fondo claro con formulario centrado */
        .login-right-panel {
            flex: 0 0 50%;
            width: 50%;
            background: #e8eaef;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 40px 24px;
            position: relative;
        }

        .login-right-welcome {
            width: 100%;
            max-width: 400px;
            margin-bottom: 16px;
        }

        .login-right-welcome h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.85rem;
            font-weight: 800;
            color: #1a1d30;
            margin: 0 0 6px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .login-right-welcome p {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.92rem;
            color: #888;
            margin: 0 0 10px 0;
        }

        .login-split-wrapper.dark-mode .login-right-welcome h2 {
            color: rgba(255,255,255,0.92);
        }

        .login-split-wrapper.dark-mode .login-right-welcome p {
            color: rgba(255,255,255,0.45);
        }

        .login-right-panel .transparent-card.login-form {
            width: 100%;
            max-width: 400px;
            margin: 0 !important;
            background: #ffffff !important;
            box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06) !important;
            z-index: 2;
        }

        .login-security-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.72rem;
            font-weight: 500;
            color: #10b981;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.18);
            border-radius: 20px;
            padding: 4px 12px;
            margin-top: 12px;
            letter-spacing: 0.02em;
        }
        .login-split-wrapper.dark-mode .login-security-badge {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.2);
            color: #34d399;
        }

        /* Ocultar fondo legacy */
        .background-image {
            display: none !important;
        }

        /* Dark mode: panel derecho y card */
        .login-split-wrapper.dark-mode .login-right-panel {
            background: #0f1219;
        }

        .login-split-wrapper.dark-mode .transparent-card.login-form {
            background: rgba(28, 32, 44, 0.97) !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35) !important;
        }

        /* Dark mode: panel izquierdo más oscuro */
        .login-split-wrapper.dark-mode .login-left-panel {
            background: linear-gradient(145deg, #080a12 0%, #0f1118 60%, #131826 100%);
        }

        /* Transición suave al cambiar tema */
        .login-right-panel,
        .login-left-panel,
        .transparent-card.login-form {
            transition: background 0.3s ease;
        }
    }

    /* Estilos para el formulario de login */
    .transparent-card.login-form {
        border: none !important;
        border-radius: 18px !important;
        height: auto !important;
        min-height: unset;
        position: relative;
        overflow: hidden;
        background-clip: padding-box;
    }
    .transparent-card.login-form::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        padding: 2.5px;
        background: linear-gradient(135deg, rgba(5,209,233,0.5), rgba(0,150,199,0.45), rgba(124,58,237,0.4), rgba(5,209,233,0.45));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: 4;
    }

    /* Desktop: comprime el padding del card-body */
    @media (min-width: 601px) {
        .transparent-card.login-form .card-body {
            padding: 20px 24px !important;
        }
        .transparent-card.login-form .form-group {
            margin-bottom: 14px !important;
        }
    }

    .btn-next {
        background: linear-gradient(135deg, #0096c7 0%, #05d1e9 50%, #22d3ee 100%);
        color: #fff !important;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(0,150,199,0.22);
        border-radius: 12px !important;
        position: relative;
        height: 48px;
        font-size: 1.05em;
        transition: all 0.25s cubic-bezier(.4,0,.2,1);
    }
    .btn-next:hover, .btn-next:focus {
        background: linear-gradient(135deg, #05d1e9 0%, #0096c7 60%, #0077b6 100%);
        box-shadow: 0 6px 24px rgba(0,150,199,0.35);
        color: #fff !important;
        outline: none;
        transform: translateY(-2px);
    }
    .btn-custom {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1.08em;
        letter-spacing: 0.02em;
        text-transform: none;
    }
    .form-control.transparent-input {
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 400 !important;
        font-size: 0.95em !important;
        border: 1.5px solid #e2e5ea !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 38px 0 16px !important;
        height: 48px;
        line-height: 48px;
        background: #ffffff;
        transition: box-shadow 0.25s, background 0.25s, border-color 0.25s;
        letter-spacing: normal !important;
        text-align: left;
        vertical-align: middle;
        color: #1a1d30;
    }
    .form-control.transparent-input:focus {
        border-color: #7c3aed !important;
        background: #fff !important;
        box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.08) !important;
    }
    .form-control.transparent-input[type='password'] {
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 400 !important;
        font-size: 1.3em !important; /* Puntos más grandes */
        letter-spacing: 2px !important; /* Espaciado entre puntos */
    }
    #register-btn a {
        text-decoration: none !important;
        transition: box-shadow 0.2s, border-color 0.2s;
    }
    #register-btn a:focus, #register-btn a:hover {
        box-shadow: 0 0 0 3px #05d1e944, 0 0 8px 1px #0096c744;
        border-color: #05d1e9 !important;
        color: #0096c7 !important;
        background: #eaf6fb !important;
    }
    .password-eye {
        position: absolute;
        right: 18px;
        top: 70%; /* Ajuste para centrar mejor el logo */
        transform: translateY(-50%);
        cursor: pointer;
        color: #bfc3c7;
        font-size: 1.2em;
        height: 44px;
        display: flex;
        align-items: center;
    }
    .bond-logo-input {
        opacity: 0.7;
        transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    }
    .password-eye:active .bond-logo-input,
    .password-eye:focus .bond-logo-input,
    .password-eye:hover .bond-logo-input {
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) grayscale(0%) contrast(200%);
    }
    .bond-logo-input-active {
        opacity: 1 !important;
        filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) grayscale(0%) contrast(200%) !important;
        transform: scale(1.12);
    }

      .form-group.position-relative {
        position: relative;
    }

    /* Estilos para el checkbox "Recordar" */
    .remember-group {
        text-align: left;
        padding: 2px 0;
    }

    .remember-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
        font-size: 0.9rem;
    }

    .remember-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #7c3aed;
        cursor: pointer;
        margin: 0;
        border-radius: 4px;
    }

    .remember-text {
        color: #555;
        font-weight: 500;
        font-size: 0.88rem;
    }
    /* Eliminado para que btn-next controle el focus/hover */
    #reset a:focus, #reset a:hover {
        color: #232323;
        font-weight: 600;
        text-shadow: none;
        outline: none;
        transition: font-weight 0.2s;
    }
    .form-label {
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 600 !important;
        font-size: 0.88em !important;
        color: #4b5563 !important;
        letter-spacing: 0.01em;
        margin-bottom: 6px !important;
    }

        /* --- Responsive Styles --- */
            @media (max-width: 900px) {
                html, body {
                    height: 100vh;
                    min-height: 100vh;
                    overflow-x: hidden;
                }
            }
        @media (max-width: 900px) {
            .background-image img {
                height: 100vh;
                object-fit: cover;
            }
            .transparent-card.login-form {
                margin-left: auto !important;
                margin-right: auto !important;
                max-width: 420px;
                width: 94vw;
                min-width: 0;
                box-sizing: border-box;
                min-height: unset;
                margin-top: 12vh !important;
            }
            .card-body {
                padding: 32px 20px 52px 20px !important;
                min-height: unset !important;
            }
            .form-control.transparent-input {
                font-size: 1em !important;
                height: 42px;
                padding: 0 38px 0 14px !important;
            }
            .password-eye {
                right: 10px;
                top: 50%;
                transform: translateY(-50%);
            }
            #register-btn, #reset {
                margin-top: 10px !important;
            }
            .btn-custom {
                font-size: 1em;
            }
        }

/* --- Mobile logo & tagline (managed by split layout) --- */
.login-mobile-logo {
    display: none;
}
/* Mobile-only elements: hidden on desktop */
.login-mobile-logo-top {
    display: none;
}
.login-security-badge-bottom {
    display: none;
}
.login-mobile-tagline {
    display: none;
}
.login-mobile-features {
    display: none;
}

        @media (max-width: 600px) {
            body {
                background: #1a1d30 !important;
                min-height: 100vh;
                min-height: 100dvh;
                overflow-x: hidden;
            }
            #app {
                flex-direction: column !important;
                min-height: 100vh !important;
                min-height: 100dvh !important;
                justify-content: center;
                align-items: center;
            }
            #app > .main-content {
                display: flex;
                flex-direction: column;
                flex: 1;
                width: 100%;
            }
            #app > .main-content > .container-fluid {
                padding: 0 !important;
                display: flex;
                flex-direction: column;
                flex: 1;
                width: 100%;
            }
            .background-image {
                display: none !important;
            }

            /* --- Split wrapper: fondo oscuro único --- */
            .login-split-wrapper {
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                min-height: 100vh;
                min-height: 100dvh;
                width: 100%;
                position: relative;
                background: linear-gradient(145deg, #12141f 0%, #1a1d30 60%, #1e2240 100%);
            }

            /* --- Ocultar paneles como contenedores --- */
            .login-left-panel {
                display: none !important;
            }
            .login-right-panel {
                flex: none;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding: 0.5vh 16px 0;
                background: transparent !important;
                position: static;
                min-height: 100vh;
                min-height: 100dvh;
            }

            /* --- Ocultar flotantes: pills, orbs, shapes --- */
            .login-pill,
            .login-left-orb,
            .login-right-shape {
                display: none !important;
            }

            /* --- Mobile logo arriba del form --- */
            .login-mobile-logo-top {
                display: flex !important;
                justify-content: center;
                margin-bottom: 12px;
            }
            .login-mobile-logo-top img {
                width: 420px;
                max-width: 80%;
                height: auto;
            }

            /* --- Ocultar welcome text en mobile --- */
            .login-right-welcome {
                display: none !important;
            }

            /* --- Security badge debajo del form --- */
            .login-security-badge-bottom {
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 6px;
                font-family: 'Montserrat', sans-serif;
                font-size: 0.72rem;
                font-weight: 500;
                color: rgba(255,255,255,0.4);
                margin-top: 16px;
            }
            .login-security-badge-bottom svg {
                opacity: 0.5;
            }

            /* --- Card centrada --- */
            .transparent-card.login-form {
                position: relative;
                z-index: 1;
                margin: 0 auto !important;
                width: 100%;
                max-width: 92vw;
                min-width: 0;
                border-radius: 18px !important;
                box-shadow: 0 8px 40px rgba(0,0,0,0.25);
                height: auto !important;
                min-height: unset !important;
                border: 1px solid rgba(255,255,255,0.08) !important;
                background: #fff !important;
            }
            .transparent-card.login-form::after {
                border-radius: 18px !important;
            }

            /* --- Mini features grid mobile --- */
            .login-mobile-features {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
                margin-top: 24px;
                padding: 0 8px 32px;
                width: 100%;
                max-width: 92vw;
            }
            .login-mobile-feature {
                display: flex;
                align-items: center;
                gap: 6px;
                background: rgba(255,255,255,0.05);
                border: 1px solid rgba(5,209,233,0.15);
                border-radius: 20px;
                padding: 6px 14px;
                font-family: 'Montserrat', sans-serif;
                font-size: 0.75rem;
                font-weight: 600;
                color: rgba(255,255,255,0.55);
                letter-spacing: 0.02em;
            }
            .login-mobile-feature span:first-child {
                font-size: 0.9rem;
            }

            /* --- Dark mode mobile --- */
            .login-split-wrapper.dark-mode {
                background: linear-gradient(145deg, #0a0c14 0%, #0f1219 60%, #12141f 100%);
            }
            .login-card.dark-mode.transparent-card.login-form {
                background: rgba(28,32,44,0.97) !important;
                border-color: rgba(255,255,255,0.1) !important;
                box-shadow: 0 8px 40px rgba(0,0,0,0.4);
            }

            /* --- Theme toggle: visible en mobile --- */
            .theme-toggle {
                display: flex !important;
                top: 10px;
                right: 10px;
                width: 30px;
                height: 30px;
            }

            .card-body {
                padding: 10px 18px 10px 18px !important;
                min-height: unset !important;
            }
            .card-body .form-group {
                margin-bottom: 4px !important;
            }

            /* --- Light mode mobile fields --- */
            .form-label {
                font-size: 0.88em !important;
                margin-bottom: 3px !important;
            }
            .form-control.transparent-input {
                font-size: 0.95em !important;
                height: 34px;
                padding: 0 40px 0 14px !important;
                border-radius: 10px !important;
            }

            /* --- Dark mode mobile field overrides --- */
            .login-card.dark-mode .form-label {
                color: rgba(255,255,255,0.85) !important;
            }
            .login-card.dark-mode .transparent-input {
                background: rgba(255,255,255,0.07) !important;
                border-color: rgba(255,255,255,0.12) !important;
                color: #fff !important;
            }
            .login-card.dark-mode .transparent-input::placeholder {
                color: rgba(255,255,255,0.3) !important;
            }
            .login-card.dark-mode .transparent-input:focus {
                border-color: #05d1e9 !important;
                background: rgba(255,255,255,0.1) !important;
                box-shadow: 0 0 0 2px rgba(5,209,233,0.15) !important;
            }
            .login-card.dark-mode .remember-text {
                color: rgba(255,255,255,0.6) !important;
            }
            .login-card.dark-mode .btn-google-custom {
                background: rgba(255,255,255,0.06);
                border-color: rgba(255,255,255,0.15);
                color: #fff;
            }
            .login-card.dark-mode .password-eye .bond-logo-input {
                filter: invert(1) brightness(1.2);
            }

            /* --- Shared mobile styles --- */
            .btn-custom {
                font-size: 0.95em;
                padding: 8px 16px;
            }
            .btn-custom.btn-next {
                border-radius: 10px !important;
                height: 34px;
            }
            .btn-google-custom {
                border-radius: 12px;
                padding: 8px 16px;
                font-size: 13px;
            }
            .remember-group a {
                color: #05d1e9 !important;
            }
            .password-eye {
                right: 10px;
                height: 44px;
                top: 65%;
                transform: translateY(-40%);
            }
            .password-eye .bond-logo-input {
                width: 28px;
                height: 28px;
            }
            .login-back-btn {
                top: 14px;
                left: 14px;
                width: 36px;
                height: 36px;
            }
            .register-bottom .register-google-link {
                display: block;
                margin-top: 3px;
            }
            /* ¿Olvidaste? movido debajo del botón Google en mobile */
            .forgot-desktop {
                display: none !important;
            }
            .forgot-mobile {
                display: block !important;
                margin-top: 4px;
                margin-bottom: 2px;
            }
        }

/* ---- LOGIN BACK BUTTON ---- */
.login-back-btn {
  position: fixed; top: 22px; left: 24px; z-index: 999;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(13,10,22,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.login-back-btn svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.login-back-btn:hover {
  color: #fff;
  background: rgba(124,58,237,.25);
  border-color: rgba(124,58,237,.4);
}
.login-back-btn:hover svg { transform: translateX(-3px); }

/* Toggle de tema */
.login-card {
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(5,209,233,0.15);
    border-color: #0096c7;
    color: #0096c7;
}

/* Separador con 'o' */
.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0d3d8, transparent);
}
.login-divider span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b0b4ba;
    text-transform: lowercase;
}
.login-card.dark-mode .login-divider::before,
.login-card.dark-mode .login-divider::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.login-card.dark-mode .login-divider span {
    color: rgba(255,255,255,0.35);
}

/* Botón Google personalizado */
.btn-google-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1.5px solid #e2e5ea;
    border-radius: 12px;
    color: #3c4043;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    height: 48px;
}
.btn-google-custom:hover {
    background: #f8f9fa;
    border-color: #c8ccd2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    color: #3c4043;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ========== DARK MODE ========== */
.login-card.dark-mode {
    background: rgba(30,35,45,0.95) !important;
    backdrop-filter: blur(10px);
}

.login-card.dark-mode .theme-toggle {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

.login-card.dark-mode .theme-toggle:hover {
    background: rgba(5,209,233,0.2);
    border-color: #05d1e9;
    color: #05d1e9;
}

.login-card.dark-mode .sun-icon {
    display: block !important;
}

.login-card.dark-mode .moon-icon {
    display: none !important;
}

.login-card.dark-mode .form-label {
    color: rgba(255,255,255,0.85) !important;
}

.login-card.dark-mode .transparent-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1.5px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

.login-card.dark-mode .transparent-input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

.login-card.dark-mode .transparent-input:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: #05d1e9 !important;
    box-shadow: 0 0 0 3px rgba(5,209,233,0.15) !important;
}

.login-card.dark-mode .remember-text {
    color: rgba(255,255,255,0.7) !important;
}

.login-card.dark-mode .btn-google-custom {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}

.login-card.dark-mode .btn-google-custom:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.login-card.dark-mode .btn-google-custom svg path {
    fill: #fff;
}

.login-card.dark-mode span[style*="color: #777"] {
    color: rgba(255,255,255,0.6) !important;
}

.login-card.dark-mode .password-eye .bond-logo-input {
    filter: invert(1) brightness(1.2);
    opacity: 0.8;
}

/* Barra de carga login */
.login-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    z-index: 20;
}
.login-loading-bar-inner {
    height: 100%;
    width: 40%;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #05d1e9, #22d3ee, #05d1e9, transparent);
    animation: loginBarSlide 1.2s ease-in-out infinite;
}
@keyframes loginBarSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Spinner del botón */
.login-spinner {
    animation: loginSpin 0.7s linear infinite;
}
@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* Estado cargando del botón */
.btn-custom.btn-loading {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Inputs deshabilitados durante carga */
.login-form-loading .transparent-input {
    opacity: 0.55 !important;
    pointer-events: none;
}
.login-form-loading .remember-checkbox,
.login-form-loading .btn-google-custom {
    opacity: 0.5;
    pointer-events: none;
}
