/* === ESTILOS ENTERPRISE PARA LA PÁGINA DE LOGIN - GRUPO IT ARVIC === */

body {
    background: linear-gradient(135deg, #0a0f1d 0%, #0f172a 35%, #1e293b 70%, #172554 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    position: relative;
    overflow-y: auto;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

/* Patrón de fondo corporativo con orbes y cuadrícula */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(30, 58, 138, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
    pointer-events: none;
}

/* Container principal del login */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.4), 0 10px 15px -5px rgba(0, 0, 0, 0.2);
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
}


/* Sección del logo */
.logo-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.logo-section .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-svg-complete {
    width: 110px;
    height: auto;
}

.welcome-text {
    color: #64748b;
    margin: 8px 0 0 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Estilos de formulario */
.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Password input wrapper */
.input-password-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.input-password-wrapper input {
    width: 100% !important;
    padding-right: 44px !important;
    box-sizing: border-box !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 6px 8px !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    z-index: 5 !important;
}

.password-toggle-btn i {
    pointer-events: none !important;
}

.password-toggle-btn:hover {
    color: #0f172a !important;
}

/* Botón de login profesional */
.login-btn {
    width: 100%;
    background-color: #1e3a8a;
    color: #ffffff;
    border: 1px solid #1e40af;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.login-btn:hover {
    background-color: #1d4ed8;
    border-color: #2563eb;
}

.login-btn:active {
    background-color: #1e40af;
}

.login-btn.loading {
    opacity: 0.75;
    pointer-events: none;
}

/* Forgot password link */
.forgot-password-section {
    margin-top: 12px;
    text-align: center;
}

.forgot-password-link {
    color: #64748b;
    font-size: 0.82rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.forgot-password-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Formulario de recuperación */
.forgot-password-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.forgot-form-header h3 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-form-header p {
    margin: 0 0 14px 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.recovery-btn {
    background-color: #475569;
    border-color: #334155;
}

.recovery-btn:hover {
    background-color: #334155;
}

.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
}

.back-to-login-link:hover {
    color: #2563eb;
}

/* Mensajes de error y éxito */
.error-message {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
}

.success-message {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
}

/* Contenedor de input de contraseña con icono dentro */
.password-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-input-wrapper input {
    width: 100% !important;
    padding-right: 44px !important;
    box-sizing: border-box !important;
}

.toggle-password-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
    z-index: 5 !important;
}

.toggle-password-btn:hover {
    color: #0284c7 !important;
}

.toggle-password-btn i {
    pointer-events: none;
}

/* Barra de fuerza de contraseña */
.password-strength {
    margin: 8px 0 14px 0;
    text-align: left;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 480px) {
    body {
        padding: 16px !important;
    }
    .login-container {
        padding: 26px 18px !important;
        width: 100% !important;
        border-radius: 12px !important;
    }
    .logo-svg-complete {
        width: 95px !important;
    }
    .form-group input {
        font-size: 16px !important; /* Previene auto-zoom en iOS Safari */
    }
}