/* ========================================
   ESTILOS DE LOGIN MODERNOS - EquisoftFleet
   Usando colores de equisoft-styles.css
   ======================================== */

/* Variables de colores EquisoftFleet basadas en equisoft-styles.css */
:root {
    --equisoft-primary-blue: #2467c3; /* rgb(36,103,195) */
    --equisoft-secondary-blue: #3483c1;
    --equisoft-secondary-gray: #070808;
    --equisoft-light-blue: #EAF4FF;
    --equisoft-dark-blue: #1e52a6;
    --equisoft-text-gray: #6c757d;
    --equisoft-border-gray: #dee2e6;
    --equisoft-gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --equisoft-gradient-gray: linear-gradient(135deg, #677077 0%, #070808 100%);
}

/* Media queries para ocultar elementos en dispositivos pequeños */
@media only screen and (max-width: 700px) {
    .imgContainer, .imglogin {
        display: none !important;
    }
}

@media only screen and (max-width: 1200px) {
    .imglogin {
        display: none !important;
    }
}

/* Botón "Leer más" moderno con colores EquisoftFleet */
.btnAspFleetPersonalizado {
    background: rgba(36, 103, 195, 0.15) !important;
    border: 2px solid rgba(36, 103, 195, 0.4) !important;
    border-radius: 25px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 15px rgba(36, 103, 195, 0.2) !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.btnAspFleetPersonalizado:hover {
    background: rgba(36, 103, 195, 0.25) !important;
    border-color: rgba(36, 103, 195, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(36, 103, 195, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

.btnAspFleetPersonalizado:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* Contenedor principal centrado */
.login-center-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 20px !important;
}

/* Formulario compacto y moderno más pequeño */
.compact-login-form-modern {
    background: white !important;
    border-radius: 12px !important;
    padding: 28px 24px !important;
    box-shadow: 0 8px 25px rgba(36, 103, 195, 0.12), 0 3px 6px rgba(36, 103, 195, 0.08) !important;
    max-width: 360px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border: 1px solid var(--equisoft-border-gray) !important;
    position: relative !important;
}

.compact-login-form-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--equisoft-gradient-gray);
    border-radius: 12px 12px 0 0;
}

/* Header del formulario más compacto */
.login-header {
    margin-bottom: 20px;
    text-align: center;
}

/* Título elegante y compacto */
.login-title-modern {
    color: var(--equisoft-primary-blue) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -0.02em !important;
}

.login-subtitle-modern {
    color: var(--equisoft-text-gray) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Campos de entrada mejorados */
.txtFondoBlancoFleet {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    
    background: #fafbfc !important;
    font-family: 'Montserrat', sans-serif !important;
    padding: 18px 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #2d3748 !important;
}

.txtFondoBlancoFleet::placeholder {
    color: #a0aec0 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

.txtFondoBlancoFleet:focus {
    border-color: var(--login-primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0,0,0,0.08) !important;
    background: white !important;
    outline: none !important;
}

.txtFondoBlancoFleet:hover:not(:focus) {
    border-color: var(--login-secondary-blue) !important;
    background: white !important;
}

/* Botón de login moderno con icono */
.btnAspPersonalizado {
    background: linear-gradient(135deg, var(--login-primary-blue), var(--login-secondary-blue)) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    padding: 18px 26px !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.02em !important;
    gap: 10px !important;
}

.btnAspPersonalizado::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" /></svg>') no-repeat center;
    background-size: contain;
    
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btnAspPersonalizado:hover::before {
    transform: translateX(2px) !important;
}

.btnAspPersonalizado:active:not([disabled]) {
    transform: translateY(0) !important;
}

/* Contenido del formulario */
.login-form-content {
    margin-top: 20px;
}

/* Campos de entrada modernos y más compactos */
.txtEquisoftModern {
    border: 2px solid var(--equisoft-border-gray) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    
    background: #fafbfc !important;
    font-family: 'Montserrat', sans-serif !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #2d3748 !important;
}

.txtEquisoftModern::placeholder {
    color: #a0aec0 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

    .txtEquisoftModern:focus {
        border-color: var(--equisoft-secondary-gray) !important;
        box-shadow: 0 0 0 3px rgba(36, 103, 195, 0.1), 0 4px 12px rgba(36, 103, 195, 0.08) !important;
        background: white !important;
        outline: none !important;
    }

    .txtEquisoftModern:hover:not(:focus) {
        border-color: var(--equisoft-secondary-gray) !important;
        background: white !important;
    }

/* Botón de login moderno EquisoftFleet */
.btnEquisoftModern {
    background: var(--equisoft-gradient-gray) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 12px rgba(7, 8, 8, 0.3) !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.02em !important;
    gap: 8px !important;
    position: relative !important;
}

.btnEquisoftModern::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" /></svg>') no-repeat center;
    background-size: contain;
    
    box-shadow: 0 6px 20px rgba(7, 8, 8, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btnEquisoftModern:hover::before {
    transform: translateX(2px) !important;
}

.btnEquisoftModern:active:not([disabled]) {
    transform: translateY(0) !important;
}

/* Grupo de formulario moderno */
.form-group-modern {
    margin-bottom: 16px !important;
    width: 100%;
}

/* Iconos SVG modernos para inputs */
.user-icon::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%236c757d"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.password-icon::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%236c757d"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-9a2 2 0 00-2-2H6a2 2 0 00-2 2v9a2 2 0 002 2z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 11V7a4 4 0 118 0v4" /></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .txtEquisoftModern {
    padding-left: 40px !important;
}

/* Contenedor de error */
.error-container {
    width: 100%; 
    margin-bottom: 12px;
}

.validation-error-modern {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    color: #dc2626 !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* Link de contraseña moderno */
.forgot-password-container {
    text-align: center; 
    width: 100%;
    margin: 20px 0 16px 0;
}

.forgot-password-link-modern {
    color: var(--equisoft-secondary-blue) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif !important;
    position: relative !important;
}

.forgot-password-link-modern::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-9a2 2 0 00-2-2H6a2 2 0 00-2 2v9a2 2 0 002 2z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 11V7a4 4 0 118 0v4" /></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

.forgot-password-link-modern:hover {
    color: var(--equisoft-primary-blue) !important;
    background: rgba(36, 103, 195, 0.05) !important;
    text-decoration: none !important;
    transform: translateX(2px) !important;
}

/* Sección Google OAuth moderna */
.oauth-section-modern {
    margin-top: 20px !important;
    padding-top: 20px !important;
    position: relative !important;
    text-align: center !important;
}

/* Sección Google OAuth moderna - SIN DEBUG */
.oauth-section-modern {
    margin-top: 20px !important;
    padding-top: 20px !important;
    position: relative !important;
    text-align: center !important;
}

.oauth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--equisoft-border-gray);
}

.oauth-divider span {
    background: white;
    color: var(--equisoft-text-gray);
    font-weight: 500;
    font-size: 12px !important;
    padding: 0 12px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

.oauth-description-modern {
    color: var(--equisoft-text-gray) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-align: center !important;
}

/* Centrar mejor el botón de Google */
.oauth-section-modern > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Estilos específicos para OpenAuthProviders */
uc\:OpenAuthProviders, [id*="OpenAuthLogin"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Botón de Google específico más compacto y bien centrado */
.oauth-section-modern input[type="submit"], 
.oauth-section-modern button, 
.oauth-section-modern .btn {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
    font-size: 0 !important; /* Oculta el texto para que solo se vea la imagen */
    padding: 0 !important;
    border-radius: 6px !important;
    
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    width: 280px !important;
    height: 48px !important;
    max-width: 100% !important;
}

/* Forzar visibilidad del botón de Google - SIN BORDE */
div[id*="OpenAuth"] button,
div[id*="OpenAuth"] input[type="submit"],
uc\:OpenAuthProviders button,
uc\:OpenAuthProviders input[type="submit"] {
    background-image: url('../Images/Fleet/Continua_con_google.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 280px !important;
    height: 48px !important;
    max-width: 100% !important;
    margin: 10px auto !important;
    display: block !important;
    cursor: pointer !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    
    box-shadow: none !important;
}

/* Agregar efectos hover sutiles al botón de Google - SIN BORDE */
div[id*="OpenAuth"] button:hover,
div[id*="OpenAuth"] input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    opacity: 0.9 !important;
    filter: brightness(1.05) !important;
}

div[id*="OpenAuth"] button:active,
div[id*="OpenAuth"] input[type="submit"]:active {
    transform: translateY(0) !important;
    opacity: 0.95 !important;
    filter: brightness(0.98) !important;
}

div[id*="OpenAuth"] button:focus,
div[id*="OpenAuth"] input[type="submit"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(36, 103, 195, 0.2) !important;
}

/* Animación suave */
.compact-login-form-modern {
    
}


    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive mejorado para formulario más pequeño */
@media (max-width: 768px) {
    .compact-login-form-modern {
        margin: 15px;
        padding: 24px 20px;
        max-width: calc(100% - 30px);
    }

    .login-title-modern {
        font-size: 1.8rem !important;
    }

    .col-lg-6 {
        min-height: auto !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .compact-login-form-modern {
        padding: 20px 16px;
        margin: 10px;
    }

    .login-title-modern {
        font-size: 1.6rem !important;
    }

    .login-subtitle-modern {
        font-size: 0.9rem !important;
    }

    .txtEquisoftModern {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }

    .input-with-icon .txtEquisoftModern {
        padding-left: 38px !important;
    }

    .oauth-description-modern {
        font-size: 12px !important;
    }

    .forgot-password-link-modern {
        font-size: 13px !important;
    }
}

/* Estados de validación mejorados */
.validation-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    color: #dc2626 !important;
    font-weight: 500 !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    text-align: center !important;
}

/* Texto descriptivo del lado izquierdo más grande */
.login-left-description {
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

/* Fondo blanco limpio y profesional para toda la página */
body {
    background: white !important;
    min-height: 100vh !important;
}

/* Degradado elegante con colores EquisoftFleet */
.login-center-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
    position: relative !important;
}

/* Efecto adicional con colores EquisoftFleet */
.login-center-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(36, 103, 195, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(52, 131, 193, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Asegurar que el formulario esté por encima del efecto */
.compact-login-form-modern {
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 8px 25px rgba(7, 8, 8, 0.12), 0 3px 6px rgba(7, 8, 8, 0.08) !important;
    background: white !important;
}




/* Formulario 2FA más ancho */
    .compact-login-form-modern.twofa-form {
        max-width: 520px !important; 
        padding: 15px 15px !important;
    }

/* QR agrandado y responsivo */
.qr-code-image {
    width: 250px;
    max-width: 85%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    padding: 14px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Contenedor clave secreta */
.secret-key-container {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0 10px 0;
    border: 1px solid #e2e8f0;
}

    .secret-key-container .subtitle {
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        margin-bottom: 8px;
    }

/* Clave secreta centrada y con wrap */
.secret-key {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 2px;
    color: #1e40af;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
    width: 100%;
    text-align: center;
    word-break: break-all;
    box-sizing: border-box;
}

/* Botón confirmar */
.btnEquisoftModern {
    font-size: 15px !important;
    padding: 14px 20px !important;
}

/* Mensaje de resultado - estilo neutral / success */
.validation-error-modern {
    margin-top: 12px;
    display: block;
    text-align: center;
}

    /* Clase success (verde) */
    .validation-error-modern.success {
        color: #065f46;
        background-color: #ecfdf5;
        border-color: #bbf7d0;
    }

.login2fa-title-modern {
    color: var(--equisoft-primary-blue) !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -0.02em !important;
}

.login2fa-subtitle-modern {
    color: var(--equisoft-text-gray) !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Estilo base del label */
.validation-message {
    margin-top: 12px;
    display: block;
    text-align: center;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
}

    /* Mensajes de error en rojo */
    .validation-message.error {
        color: #b91c1c;
        background-color: #fee2e2;
        border: 1px solid #fecaca;
    }

    /* Mensajes de éxito en verde */
    .validation-message.success {
        color: #065f46;
        background-color: #ecfdf5;
        border: 1px solid #bbf7d0;
    }


/* Ajuste para mobile: que no quede demasiado grande */
@media (max-width: 480px) {
    .compact-login-form-modern.twofa-form {
        max-width: calc(100% - 32px) !important;
        padding: 20px !important;
    }

    .qr-code-image {
        width: 200px;
    }
}


/* Contenedor principal centrado */
.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Caja de error */
.error-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

/* Logo */
.error-logo {
    max-height: 60px;
    margin-bottom: 12px;
}

/* Título */
.error-box h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: #b91c1c;
}

/* Mensaje */
.error-message {
    font-size: 15px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Botón */
.error-btn {
    background: var(--equisoft-primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    
    }

