 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        min-height: 100vh;
        display: flex;
        background-color: #f8fafc;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .container {
        display: flex;
        width: 100%;
        min-height: 100vh;
    }

    /* Left Panel */
    .left-panel {
        display: none;
        flex: 1;
        background: transparent; /* Para mostrar el patrón de puntos del body */
        padding: 48px;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    /* Estilos específicos cuando HAY fondo de imagen */
    .left-panel.has-bg {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Overlay oscuro solo si hay fondo */
    .left-panel.has-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    @media (min-width: 1024px) {
        .left-panel {
            display: flex;
        }
    }

    .left-content {
        width: 100%;
        max-width: 360px; /* Mismo ancho que el formulario */
        position: relative;
        z-index: 2;
        padding-top: 0; /* Ajuste fino de centrado vertical */
        margin-top: -25px; /* Subir un poco el contenido */
    }

    .brand-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 24px; /* Reducido para acercar al bloque de features */
        transition: all 0.3s ease;
    }
    
    /* Glassmorphism para logo cuando hay fondo */
    .left-panel.has-bg .brand-section {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 28px 32px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .brand-logo {
        width: 310px;
        height: 60px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 24px;
        font-weight: 700;
        color: #111827;
        margin: 0;
        line-height: 1.2;
    }
    
    /* Texto blanco cuando hay fondo */
    .left-panel.has-bg .brand-name {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .brand-subtitle {
        font-size: 12px;
        color: #6b7280;
        margin-top: 2px;
    }
    
    .left-panel.has-bg .brand-subtitle {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .features-section {
        display: flex;
        flex-direction: column;
        gap: 16px; /* Reducido de 20px a 16px */
    }
    
    /* Estilo Recuadro (Glassmorphism) SOLO si hay fondo */
    .features-section.has-bg {
        background: rgba(255, 255, 255, 0.95);
        padding: 24px;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .feature-title {
        font-size: 11px;
        font-weight: 700;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
    }

    .feature-text {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.5;
    }

    /* Right Panel */
    .right-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .form-container {
        width: 100%;
        max-width: 360px;
    }

    /* Card */
    .card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid #f3f4f6;
        padding: 28px;
    }

    .card-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 6px;
    }

    .card-header-line {
        width: 60px;
        height: 3px;
        background: linear-gradient(to right, #0099D8, rgba(0, 153, 216, 0.5));
        border-radius: 2px;
        margin-bottom: 8px;
    }

    .card-header p {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 20px;
    }

    /* Form */
    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
    }

    .form-input {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        outline: none;
        transition: all 0.2s;
    }

    .form-input:focus {
        background: white;
        border-color: #0099D8;
        box-shadow: 0 0 0 3px rgba(0, 153, 216, 0.1);
    }

    .form-input::placeholder {
        color: #9ca3af;
    }

    .password-wrapper {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        color: #9ca3af;
        padding: 4px;
    }

    .password-toggle:hover {
        color: #6b7280;
    }

    /* Links */
    .links-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .link {
        font-size: 12px;
        font-weight: 500;
        color: #0099D8;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .link:hover {
        color: #0088C0;
    }

    /* Submit Button */
    .btn-submit {
        width: 100%;
        height: 40px;
        background: #0099D8;
        color: white;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: 0 4px 14px rgba(0, 153, 216, 0.3);
        transition: all 0.2s;
    }

    .btn-submit:hover {
        background: #0088C0;
        box-shadow: 0 6px 20px rgba(0, 153, 216, 0.4);
    }

    /* Divider */
    .divider {
        display: flex;
        align-items: center;
        margin: 16px 0;
    }

    .divider-line {
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

    .divider-text {
        padding: 0 16px;
        font-size: 12px;
        color: #9ca3af;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* Google Button */
    .btn-google {
        width: 100%;
        height: 40px;
        background: white;
        color: #374151;
        font-size: 13px;
        font-weight: 500;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.2s;
        text-decoration: none;
    }

    .btn-google:hover {
        background: #fff8f8;
        border-color: #EA4335;
        color: #EA4335;
        box-shadow: 0 2px 8px rgba(234, 67, 53, 0.15);
    }

    /* Microsoft Button */
    .btn-microsoft {
        width: 100%;
        height: 40px;
        background: white;
        color: #374151;
        font-size: 13px;
        font-weight: 500;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.2s;
        text-decoration: none;
        margin-top: 8px;
    }

    .btn-microsoft:hover {
        background: #f0f7ff;
        border-color: #00A4EF;
        color: #00A4EF;
        box-shadow: 0 2px 8px rgba(0, 164, 239, 0.15);
    }


    /* Mobile logo */
    .mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }

    @media (min-width: 1024px) {
        .mobile-logo {
            display: none;
        }
    }

    /* Footer */
    .footer {
        text-align: center;
        margin-top: 16px;
        font-size: 11px;
        color: #9ca3af;
    }

    /* Toast Notification - Premium Style */
    .toast-container {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-width: 380px;
        width: 100%;
    }

    .toast {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        padding: 16px;
        padding-right: 44px;
        border-radius: 12px;
        border: 1px solid;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(4px);
        animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Variant: Error/Destructive */
    .toast.error {
        border-color: #fecaca;
        background: linear-gradient(to right, #fef2f2, #fee2e2);
        color: #7f1d1d;
    }

    .toast.error .toast-icon {
        color: #dc2626;
        background: rgba(220, 38, 38, 0.1);
    }

    .toast.error .toast-close:hover {
        background: rgba(220, 38, 38, 0.15);
        color: #b91c1c;
    }

    /* Variant: Success */
    .toast.success {
        border-color: #a7f3d0;
        background: linear-gradient(to right, #ecfdf5, #d1fae5);
        color: #064e3b;
    }

    .toast.success .toast-icon {
        color: #059669;
        background: rgba(5, 150, 105, 0.1);
    }

    .toast.success .toast-close:hover {
        background: rgba(5, 150, 105, 0.15);
        color: #047857;
    }

    /* Variant: Warning */
    .toast.warning {
        border-color: #fde68a;
        background: linear-gradient(to right, #fffbeb, #fef3c7);
        color: #78350f;
    }

    .toast.warning .toast-icon {
        color: #d97706;
        background: rgba(217, 119, 6, 0.1);
    }

    .toast.warning .toast-close:hover {
        background: rgba(217, 119, 6, 0.15);
        color: #b45309;
    }

    /* Variant: Info */
    .toast.info {
        border-color: #bfdbfe;
        background: linear-gradient(to right, #eff6ff, #dbeafe);
        color: #1e3a8a;
    }

    .toast.info .toast-icon {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.1);
    }

    .toast.info .toast-close:hover {
        background: rgba(37, 99, 235, 0.15);
        color: #1d4ed8;
    }

    .toast-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }

    .toast-content {
        flex: 1;
        min-width: 0;
    }

    .toast-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .toast-message {
        font-size: 14px;
        opacity: 0.9;
        line-height: 1.4;
    }

    .toast-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #9ca3af;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .toast-close:hover {
        transform: scale(1.1);
    }

    @keyframes slideIn {
        from {
            transform: translateX(calc(100% + 16px));
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(calc(100% + 16px));
        }
    }

    @media (min-width: 1024px) {
        .mobile-logo {
            display: none;
        }
    }

    /* Modal de Aviso */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-out;
    }

    .modal-content {
        background: white;
        border-radius: 16px;
        padding: 24px;
        max-width: 420px;
        width: 90%;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        position: relative;
        animation: slideUp 0.3s ease-out;
    }

    .modal-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .modal-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        color: #0099D8;
    }

    .modal-title {
        flex: 1;
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: #9ca3af;
        cursor: pointer;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .modal-close:hover {
        background: #f3f4f6;
        color: #6b7280;
    }

    .modal-body {
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .modal-footer {
        display: flex;
        justify-content: flex-end;
    }

    .modal-button {
        padding: 10px 24px;
        background: #0099D8;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .modal-button:hover {
        background: #0088C0;
        box-shadow: 0 4px 12px rgba(0, 153, 216, 0.3);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }

        to {
            opacity: 0;
            transform: translateY(20px);
        }
    }

    .modal-hidden {
        display: none;
    }

    .mfa-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        animation: fadeIn 0.3s ease-out;
    }

    .mfa-modal-content {
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
        max-width: 420px;
        width: 90%;
        animation: slideUp 0.3s ease-out;
    }

    .mfa-header {
        text-align: center;
        padding: 32px 32px 24px;
        border-bottom: 1px solid #e5e7eb;
    }

    .mfa-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        background: #0099D8;
        border-radius: 16px;
        margin-bottom: 16px;
        color: white;
    }

    .mfa-header h3 {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin: 0 0 8px 0;
    }

    .mfa-header p {
        font-size: 14px;
        color: #6b7280;
        margin: 0;
    }

    .mfa-body {
        padding: 24px 32px 32px;
    }

    .mfa-email-display {
        background: #f3f4f6;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 16px;
        text-align: center;
    }

    .mfa-email-display strong {
        color: #374151;
        font-weight: 600;
        font-size: 14px;
    }

    .mfa-alert {
        background: #dbeafe;
        color: #1e40af;
        border-left: 4px solid #3b82f6;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 24px;
        font-size: 13px;
        line-height: 1.5;
    }

    .mfa-input-group {
        margin-bottom: 24px;
    }

    .mfa-input-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
    }

    .mfa-input-group input {
        width: 100%;
        padding: 12px 16px;
        font-size: 18px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        transition: all 0.2s;
        text-align: center;
        letter-spacing: 6px;
        font-weight: 600;
    }

    .mfa-input-group input:focus {
        outline: none;
        border-color: #0099D8;
        box-shadow: 0 0 0 3px rgba(0, 153, 216, 0.1);
    }

    .mfa-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mfa-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mfa-btn-primary {
        background: #0099D8;
        color: white;
    }

    .mfa-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 153, 216, 0.4);
    }

    .mfa-btn-secondary {
        background: #f3f4f6;
        color: #374151;
    }

    .mfa-btn-secondary:hover {
        background: #e5e7eb;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive - Pantallas pequeñas */
    @media (max-width: 480px) {
        .mfa-modal {
            align-items: flex-start;
            padding: 16px;
            overflow-y: auto;
        }

        .mfa-modal-content {
            width: 100%;
            max-width: 100%;
            border-radius: 12px;
            margin-top: 40px;
        }

        .mfa-header {
            padding: 24px 20px 20px;
        }

        .mfa-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
        }

        .mfa-header h3 {
            font-size: 18px;
        }

        .mfa-header p {
            font-size: 13px;
        }

        .mfa-body {
            padding: 20px;
        }

        .mfa-input-group input {
            font-size: 20px;
            letter-spacing: 6px;
            padding: 12px;
        }

        .mfa-btn {
            padding: 14px 20px;
        }
    }