/* Fuentes personalizadas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #294713; /* Color principal */
    --secondary-color: #4CAF50; /* Color secundario */
    --accent-color: #8BC34A; /* Color de acento */
    --background-color: #f8f9fa; /* Color de fondo */
    --text-color: #333; /* Color de texto principal */
    --border-color: #ddd; /* Color de bordes */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.auth {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ocupa la altura disponible */
}

.auth-container {
    max-width: 1100px;
    width: 90%;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    background-color: white;
    max-height: 80vh; /* Limita la altura máxima */
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

.brand-section {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i0.wp.com/portal.fmvz.usac.edu.gt/wp-content/uploads/2019/06/MG_0807-3.jpg?w=1964');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 1;
}

.brand-logo {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 300px;
    height: auto;
}

.form-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    overflow-y: auto; /* Permite scroll interno si el contenido es muy largo */
}

.form-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* Centra el contenido del formulario */
}

.form-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 71, 19, 0.1);
    outline: none;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.forgot-password a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    margin-right: 10px;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Ajustes responsivos */
@media (max-width: 767.98px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px; /* Limita el ancho en móviles */
        margin: 20px auto; /* Centra el contenedor en móviles */
        max-height: 90vh; /* Limita la altura máxima en móviles */
    }

    .brand-section {
        display: none;
    }

    .form-section {
        width: 100%;
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .btn-login {
        padding: 10px;
    }

    .forgot-password {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .login-container {
        width: 80%;
        max-width: 900px;
    }

    .brand-section {
        width: 40%;
    }

    .form-section {
        width: 60%;
    }
}

@media (min-width: 1200px) {
    .login-container {
        width: 90%;
        max-width: 1100px;
        max-height: 70vh; /* Limita la altura máxima en pantallas grandes */
    }

    .brand-section {
        width: 50%;
    }

    .form-section {
        width: 50%;
    }
}