/* =========================================
    RESET & BASE
    ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* =========================================
    COMPONENTES VISUALES
    ========================================= */
.background-blur {
    position: fixed;
    inset: -20px;
    background: url('../img/backgrounds/background-paisaje.png') center/cover no-repeat;
    filter: blur(5px) brightness(0.75);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 10;
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 850px;
    max-width: 95vw;
    height: 565px;
    max-height: 95vh;
    overflow: hidden;
}

/* =========================================
    SECCIÓN IZQUIERDA (FORMULARIO)
    ========================================= */
.login-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    margin: auto;
}

.login-header h3 {
    font-family: "Carter One", sans-serif;
    font-size: 1.9rem;
    color: #08478e;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.login-header p {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.badge-secure {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 5px;
    margin: 0 auto 20px auto;
    display: table;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2bbae6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 96, 230, 0.1);
}

.input-group input:focus + i {
    color: #065197;
}

/* Checkbox */
.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #4b5563;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0a5b9e;
    margin-right: 8px;
    cursor: pointer;
}

.remember-row label {
    cursor: pointer;
    user-select: none;
}

/* Botón */
.btn-login {
    width: 100%;
    background: #0970c4;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(43, 124, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: #1d84d8;
    transform: translateY(-1px);
}

.btn-login:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Alerta de Error */
.alert-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer del Login */
.login-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    padding-top: 20px;
}

.login-footer a {
    color: #2b82e6;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* =========================================
    SECCIÓN DERECHA (BANNER)
    ========================================= */
.banner-side {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.banner-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-side:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}

.banner-content h3 {
    font-family: 'Lalezar', cursive;
    font-size: 2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* =========================================
    MODAL (VISOR DE IMAGEN)
    ========================================= */
.modal-bg {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-bg.active {
    display: flex;
}

.modal-img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* =========================================
    RESPONSIVE
    ========================================= */
@media (max-width: 850px) {
    .login-card {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }
    .banner-side {
        display: none;
    }
    .login-side {
        padding: 30px;
    }
}

    
/* =========================================
   11. CSS PARA EL SLIDER
   ========================================= */
/* Sustituye tu .slide-in y @keyframes por esto */
.slide-in {
    animation: zoomFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes zoomFade {
    0% {
        transform: scale(1.1);
        opacity: 0;
        filter: blur(5px); /* Toque extra de suavizado */
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}
/* Contenedor Principal */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 1. Estilo de la Imagen (Logo Icono) */
.header-logo {
    width: 260px;      /* Tamaño moderado */
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    margin-bottom: 40px;
}


.login-header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el badge bajo el texto IAL */
}
