/* RESET Y FUENTE */
body {
    /* El background se maneja inline desde PHP */
    font-family: 'Nunito', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* CONTENEDOR PRINCIPAL */
.login-card {
    display: flex;
    width: 850px;
    height: 500px;
    background: #ffffff70;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Sombra más fuerte para resaltar sobre la foto */
    overflow: hidden;
}

/* COLUMNA IZQUIERDA */
.login-brand-side {
    width: 45%;
    background-color: #2c3e50; /* Azul oscuro elegante */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.brand-logo-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 10px;
}

.brand-logo-circle i { font-size: 40px; color: #2c3e50; }
.brand-title { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.brand-subtitle { font-size: 13px; opacity: 0.7; margin-bottom: 30px; }

.btn-outline-light-custom {
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}
.btn-outline-light-custom:hover { background: white; color: #2c3e50; }

/* COLUMNA DERECHA */
.login-form-side {
    width: 55%;
    background: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title { font-size: 18px; font-weight: 700; color: #444; margin-bottom: 25px; display: flex; align-items: center; }
.text-primary { color: #3b82f6; }
.ml-2 { margin-left: 10px; }

/* INPUTS */
.form-group { margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 700; color: #666; margin-bottom: 8px; display: block; }

.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee; /* Borde suave */
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    transition: all 0.3s;
    box-sizing: border-box; /* Importante para que no se salga */
}
.form-control-custom:focus { border-color: #3b82f6; outline: none; background: #f8fbff; }

/* BOTÓN */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}
.btn-login:hover { background-color: #2563eb; transform: translateY(-1px); }

/* FOOTER Y ERRORES */
.login-footer { margin-top: 25px; text-align: center; font-size: 12px; color: #999; }
.login-footer a { color: #3b82f6; text-decoration: none; }
.alert-error {
    background: #fee2e2; color: #b91c1c; padding: 12px;
    border-radius: 8px; font-size: 13px; margin-bottom: 20px;
    text-align: center; border: 1px solid #fecaca;
}