/* assets/css/login.css */

body {
    background-color: #000000; /* Fondo casi negro profundo */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 380px; /* Ancho ajustado para parecerse a la imagen */
    padding: 20px;
    box-sizing: border-box;
}

/* Estilos del Logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-box {
    background-color: #FFCC00; /* Amarillo Patt's */
    color: #000000;
    width: 50px;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.logo-text {
    color: #FFCC00;
    font-size: 30px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1px;
}

.logo-subtext {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 3px;
    margin-top: 5px;
}

/* Estilos del Formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Contenedor de inputs con íconos */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 15px;
    color: #ffffff;
    font-size: 14px;
}

.input-container i.eye-icon {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    background-color: #0a0a0a; /* Fondo gris muy oscuro para el input */
    border: 1px solid #222222;
    color: #ffffff;
    padding: 14px 14px 14px 45px; /* Espacio extra a la izquierda para el ícono */
    box-sizing: border-box;
    font-size: 13px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #FFCC00;
    outline: none;
}

/* Placeholder oscuro */
.form-control::placeholder {
    color: #ffffff;
}

/* Botón de Ingresar */
.btn-submit {
    width: 100%;
    background-color: #FFCC00;
    color: #000000;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #e6b800;
}

/* Texto inferior de ayuda */
.demo-credentials {
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    margin-top: 25px;
}

/* =========================================
   MODAL DE ERROR (OVERLAY + BLUR)
   ========================================= */

/* El fondo oscuro con desenfoque */
.modal-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece el fondo */
    backdrop-filter: blur(6px); /* Aplica el efecto borroso */
    z-index: 9999; /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease-out;
}

/* La caja del error */
.alert-error-modal {
    background-color: #111111;
    border: 1px solid #333;
    border-top: 4px solid #ff4c4c; /* Línea roja superior */
    box-shadow: 0 15px 40px rgba(255, 76, 76, 0.15); /* Resplandor rojo sutil */
    padding: 25px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    /* Animación de entrada y temblor */
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), shake 0.4s ease-in-out 0.4s;
}

.alert-error-modal i.error-icon {
    font-size: 35px;
    color: #ff4c4c;
}

.alert-error-modal .error-text {
    flex: 1;
}

.alert-error-modal .error-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #ff4c4c;
    letter-spacing: 0.5px;
}

.alert-error-modal .error-text span {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
    display: block;
}

/* Botón de cerrar "X" */
.close-alert {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s, transform 0.2s;
}

.close-alert:hover {
    color: #ff4c4c;
    transform: scale(1.1);
}

/* Clases para ocultar con JS suavemente */
.fade-out-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-out-overlay .alert-error-modal {
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

/* =========================================
   ANIMACIONES DEL MODAL
   ========================================= */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}