/* public/assets/auth/css/login.css (versión mejorada) */

:root {
    --primary-color: #3A86FF;
    --dark-color: #2A2A2A;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER ESTILOS */
header {
    /* padding: 15px 0; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}



/* Contenedor principal - Misma estructura */
.custom-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    background-color: white;
}

/* Sección del formulario - Mismos estilos pero más refinados */
#login {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    text-align: center;
}

#login>p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15);
    background-color: white;
}

.remember-forgot {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-forgot a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.remember-forgot a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(58, 134, 255, 0.4);
}

.register-link {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* ---------- SECCIÓN DEL CARRUSEL REDISEÑADO ---------- */
.info-section {
    flex: 1;
    position: relative;
    background-color: #1a1a2e;
    /* Un color oscuro de respaldo */
    overflow: hidden;
}

#infoCarousel {
    height: 100%;
    width: 100%;
}

#infoCarousel .carousel-inner {
    height: 100%;
}

#infoCarousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay oscuro para mejorar la legibilidad del texto */
#infoCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Contenedor del texto, centrado sobre la imagen */
.carousel-caption-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.carousel-caption-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Animación para el texto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicadores del carrusel (puntos) */
#infoCarousel .carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

#infoCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    border: none;
}

#infoCarousel .carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 992px) {
    .custom-container {
        flex-direction: column;
        min-height: auto;
    }

    .info-section {
        display: none;
        /* <--- Esto hace que el carrusel desaparezca por completo */
    }

    .carousel-caption-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    #login {
        padding: 40px 25px;
    }

    #login h1 {
        font-size: 1.8rem;
    }

    .carousel-caption-content h2 {
        font-size: 1.8rem;
    }
}