/* ==========================================
   ESTILOS LOGIN - ASOVICAA
   ========================================== */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* ========================================== */
/* SECCIÓN DE INFORMACIÓN (IZQUIERDA)       */
/* ========================================== */

.auth-info-section {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: white;
}

.info-content {
    text-align: center;
    max-width: 400px;
}

.info-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-subtitle {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ========================================== */
/* CARACTERÍSTICAS EN SIDEBAR                */
/* ========================================== */

.info-features {
    margin: 2rem 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    color: #48bb78;
}

.feature-text {
    color: #ecf0f1;
    font-weight: 500;
}

.info-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-style: italic;
}

/* ========================================== */
/* SECCIÓN DE FORMULARIO (DERECHA)          */
/* ========================================== */

.auth-form-section {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================== */
/* ENCABEZADO DEL FORMULARIO                */
/* ========================================== */

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ========================================== */
/* CAMPOS DE FORMULARIO                      */
/* ========================================== */

.login-form {
    width: 100%;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* ========================================== */
/* GRUPO DE CONTRASEÑA CON TOGGLE            */
/* ========================================== */

.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group .form-control {
    padding-right: 45px;
}

.btn-show-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0;
    color: #7f8c8d;
}

.btn-show-password:hover {
    color: #2563eb;
}

/* ========================================== */
/* OPCIONES DEL FORMULARIO                   */
/* ========================================== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #1e293b;
    font-weight: 500;
    user-select: none;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.forgot-password {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ========================================== */
/* BOTÓN DE ENVÍO                            */
/* ========================================== */

.btn-login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================== */
/* SEPARADORES Y FOOTER DEL FORMULARIO       */
/* ========================================== */

.form-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: #7f8c8d;
    font-weight: 500;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ecf0f1, transparent);
}

.form-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
}

.form-footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.contact-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* ========================================== */
/* SECCIÓN DE SOPORTE                        */
/* ========================================== */

.support-section {
    margin-top: 2rem;
    text-align: center;
    color: #7f8c8d;
}

.support-section p {
    font-size: 0.9rem;
}

.support-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.support-link:hover {
    text-decoration: underline;
}

/* ========================================== */
/* RESPONSIVE DESIGN                         */
/* ========================================== */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info-section {
        display: none;
    }
    
    .auth-form-section {
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .auth-form-section {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
