body {
    display: flex;                /* Flexbox para centrar */
    align-items: center;          /* Centrado vertical */
    justify-content: center;      /* Centrado horizontal */
    min-height: 100vh;            /* Que ocupe toda la pantalla */
    margin: 0;                     /* Evita márgenes por defecto */
    
    /* Fondo */
    background-image: url('/images/fondo-uan.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-container {
    /* background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px; */

    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-left i {
    font-size: 80px;
    margin-bottom: 30px;
}

.login-left h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.login-right {
    padding: 60px 40px;
}

.login-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* @media (max-width: 768px) {
    .login-left {
        padding: 40px 20px;
    }
    
    .login-right {
        padding: 40px 20px;
    }
} */
@media (max-width: 768px) {
    .login-left, .login-right {
        padding: 40px 20px;   /* ya lo tenías */
        text-align: center;   /* opcional, para que se vea mejor */
    }

    .login-left, .login-right {
        flex: 1 1 100%;       /* fuerza ancho completo en móviles */
    }

    .row.g-0 {
        flex-direction: column; /* apilar columnas verticales */
    }
}
