/* css/login.css */

body {
    background-color: #f4f7f6;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nav-simple {
    margin-bottom: 25px;
    text-align: center;
}

.nav-logo {
    max-height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-card {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.login-card h2 {
    text-align: center; 
    color: #1a202c; 
    margin-top: 0;
    font-size: 1.8rem;
}

.login-card p.subtitle {
    text-align: center; 
    color: #718096; 
    margin-bottom: 25px;
}

/* Alertas */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600; 
    color: #4a5568;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    display: block;
    margin: 0 auto;
    width: 150px; 
    padding: 12px; /* Reduje un poco de 14px a 12px para que no se vea tan tosco */
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold;
    background-color: #00b4d8;
    color: white;
    font-size: 16px;
    /*text-transform: uppercase; /* Opcional: hace que "ENTRAR" se vea más imponente */
    text-align: center;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #1d4ed8;
}

.footer-copy {
    margin-top: 25px; 
    color: #a0aec0; 
    font-size: 13px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
}

.register-link a {
    color: #00b4d8; /* Usamos el mismo azul de tu botón para mantener coherencia */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #1d4ed8; /* El mismo color que usas en el hover del botón */
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #718096;
    border-top: 1px solid #edf2f7; /* Una línea muy tenue para separar */
    padding-top: 15px;
}

.auth-footer p {
    margin: 8px 0; /* Espacio entre los dos enlaces */
}

.auth-footer a {
    color: #00b4d8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-footer .forgot-password {
    font-weight: 400; /* Un poco más delgado para que no compita con el de registro */
    font-size: 13px;
    color: #a0aec0;
}

.auth-footer .forgot-password:hover {
    color: #4a5568;
}

/* Botón Flotante de Soporte */
.support-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ffffff; /* Fondo blanco para que resalte el icono */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid #f0f4f8;
}

.support-float:hover {
    transform: translateY(-5px); /* Pequeño salto hacia arriba */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: #00b4d8; /* Cambia al azul de WRSoft al pasar el mouse */
}

.support-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .support-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .support-img {
        width: 28px;
        height: 28px;
    }
}

.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; 
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    align-items: center; 
    justify-content: center;
}

/* 2. La tarjeta blanca del modal centrada en el medio exacto */
.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px; /* Alineado al diseño moderno de tus cards */
    width: 90%;
    max-width: 420px; /* Tamaño ideal y compacto para pantallas de escritorio */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    
    /* El truco del centrado absoluto perfecto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    animation: modalFadeIn 0.3s ease-out; /* Animación suave de aparición */
}

/* Estilos para el botón de cerrar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #334155;
}

/* Animación opcional para una transición fluida */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%); /* Viene ligeramente desde arriba */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Botón independiente para el modal de recuperación */
.btn-recuperar {
    width: 100%;
    padding: 12px;
    background-color: #00b4d8; /* Ajusta a tu azul primario si es distinto */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-recuperar:hover {
    background-color: #0096c7;
}

.btn-recuperar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}