/* ======== ESTILOS GENERALES ======== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    /* Evita el scroll en la página de login */
}

/* ======== CONTENEDOR PRINCIPAL (PANTALLA DIVIDIDA) ======== */
.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ======== PANEL IZQUIERDO (IMAGEN) ======== */
.image-panel {
    flex: 1;
    /* Ocupa la mitad del espacio */
    background: linear-gradient(rgba(0, 109, 59, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1593560708920-61dd98c46a4e?q=80&w=1935') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.image-overlay h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    padding: 2rem;
}

/* ======== PANEL DERECHO (OPCIONES) ======== */
.options-panel {
    flex: 1;
    /* Ocupa la otra mitad */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f8f9fa;
}

.options-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideInFromRight 0.8s ease-out forwards;
    /* Animación de entrada */
}

.form-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.options-content h1 {
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* ======== BOTONES DE ROL (CON ANIMACIÓN) ======== */
.role-selection {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.role-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.role-btn:hover {
    transform: translateY(-4px) scale(1.02);
    /* Animación de elevación y escala */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.role-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.8rem;
}

.client-btn {
    background-color: #ffcc00;
    color: #000;
}

.admin-btn {
    background-color: #006d3b;
    color: #fff;
}

/* ======== TEXTO DE AYUDA ======== */
.helper-text {
    color: #666;
}

.helper-text a {
    color: #006d3b;
    font-weight: 600;
    text-decoration: none;
}

.helper-text a:hover {
    text-decoration: underline;
}

/* ======== ANIMACIÓN DE ENTRADA ======== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* ======== RESPONSIVO (para móviles) ======== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        /* Apila los paneles en vertical */
    }

    .image-panel {
        flex: 0.5;
        /* Ocupa menos espacio */
        height: 30vh;
    }

    .image-overlay h2 {
        font-size: 2rem;
    }

    .options-panel {
        flex: 1.5;
        /* Ocupa más espacio */
        height: 70vh;
    }
}