:root {
    --primary: #4B72A6;
    --secondary: #4F6273;
    --accent: #A68A56;
    --bg: #DFE9F2;
    --dark: #0D0D0D;
}

/* =========================
   FONDO GENERAL
========================= */

body.bg-app {
    background-color: var(--bg);

    /* imagen de fondo */
    background-image: url("../img/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

/* overlay oscuro para mejorar contraste */
body.bg-app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}

/* asegura que el contenido esté sobre el overlay */
body.bg-app > * {
    position: relative;
    z-index: 1;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    background-color: var(--secondary);
    min-height: 100vh;
    color: white;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
}

.sidebar a:hover {
    background-color: var(--primary);
}


/* =========================
   BOTONES
========================= */

.btn-primary {
    background-color: var(--primary);
    border: none;
}

.btn-primary:hover {
    background-color: #3f6392;
}


/* =========================
   BADGES
========================= */

.badge-accent {
    background-color: var(--accent);
}


/* =========================
   LOGIN CARD
========================= */

.login-card {
    width: 360px;
    border-radius: 12px;
    border: none;

    /* efecto glass */
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}


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

@media (max-width: 576px) {

    .login-card {
        width: 90%;
    }

}

h3 {
    color: white;
}

/* subtítulos de páginas */

.page-subtitle {
    color: rgba(255,255,255,0.75);
}