:root {
    --brand: #0f3d3e;
    --accent: #1aa7a1;
    --soft: #f6f8fb;
}

body {
    background: var(--soft);
}

/* NAVBAR */

.navbar {
    background: linear-gradient(90deg, var(--brand), #0b2f30);
}

    .navbar .navbar-brand,
    .navbar .nav-link {
        color: #fff !important;
    }

        .navbar .nav-link:hover {
            opacity: .85;
        }

/* ELEMENTOS GENERALES */

.page-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.badge-soft {
    background: rgba(26,167,161,.12);
    color: #0b5b58;
    border: 1px solid rgba(26,167,161,.25);
}

.kpi {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.kpi-label {
    color: #6b7280;
}

.table thead th {
    color: #374151;
    font-weight: 700;
}

.big-input {
    font-size: 34px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
}

.status-ok {
    color: #146c43;
}

.status-warn {
    color: #b58100;
}

.status-err {
    color: #b02a37;
}

.btn-brand {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .btn-brand:hover {
        filter: brightness(.95);
        color: #fff;
    }

body.app {
    min-height: 100vh;
    min-height: 100dvh; /* iOS moderno */
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    padding-bottom: 24px; /* respiración */
}

.app-footer {
    margin-top: auto;
    position: static; /* importante */
}

/* ================= LOGIN HERO (PANTALLA COMPLETA) ================= */

.login-hero {
    min-height: calc(100vh - 1px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(900px 320px at 15% 12%, rgba(26,167,161,.14), transparent 60%), radial-gradient(900px 420px at 90% 45%, rgba(15,61,62,.12), transparent 60%), linear-gradient(180deg, #f6f8fb, #eef2f7);
    padding: 24px;
}

.login-split {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch;
}

/* ================= PANEL IZQUIERDO ================= */

.login-left {
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15,61,62,.92), rgba(26,167,161,.75)), url('/images/Asamblea.png') center/cover no-repeat;
}

    .login-left::after {
        content: "";
        position: absolute;
        inset: -60px;
        background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.16), transparent 45%), radial-gradient(circle at 70% 55%, rgba(255,255,255,.12), transparent 45%);
        transform: rotate(8deg);
    }

.login-left-inner {
    position: relative;
    z-index: 1;
    padding: 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-left * {
    color: #ffffff;
}

.brand-chip {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    width: fit-content;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(245,179,53,.95);
}

.brand-text {
    font-weight: 700;
    letter-spacing: .2px;
}

.login-h1 {
    font-weight: 900;
    font-size: 36px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.login-p {
    margin: 0 0 14px 0;
    color: rgba(255,255,255,.88);
}

.illus {
    margin-top: 10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 14px;
}

.login-left-foot {
    color: rgba(255,255,255,.82);
    font-size: 13px;
    margin-top: 14px;
}

.login-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 6px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.10));
}

/* ================= PANEL DERECHO (FORMULARIO) ================= */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

.login-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--brand));
}

.login-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    text-align:center;
}

.login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-top: 2px;
    text-align: center;
}

.login-input {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d9e1e7;
    background: #f9fbfc;
    transition: all .2s ease;
}

    .login-input:focus {
        background: #ffffff;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(26,167,161,.18);
    }

.btn-login {
    height: 48px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    box-shadow: 0 8px 18px rgba(15,61,62,.25);
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(15,61,62,.30);
    }
/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-hero {
        padding: 16px;
    }
}


 /*===== Mobile-first tweaks for login screens =====*/ 
@media (max-width: 900px) {

    .login-hero {
        padding: 18px 14px;
        min-height: 100vh;
    }

    .login-split {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
        align-content: start;
    }

     Reducimos el lado visual a un banner 
    .login-left {
        border-radius: 18px;
        overflow: hidden;
    }

    .login-left-inner {
        padding: 18px !important;
    }

    .login-h1 {
        font-size: 22px !important;
        line-height: 1.15;
        margin: 10px 0 6px 0;
    }

    .login-p {
        font-size: 14px !important;
        margin-bottom: 6px;
    }

    .login-left-foot {
        margin-top: 10px;
        font-size: 12px;
        opacity: .85;
    }

     Card de login más compacta pero cómoda 
    .login-right {
        display: block !important;
    }

    .login-card {
        width: 100% !important;
        max-width: 520px;
        margin: 0 auto;
        border-radius: 18px;
        padding: 18px !important;
    }

    .login-logo {
        max-height: 40px;
        width: auto;
    }

    .login-title {
        font-size: 22px !important;
    }

    .login-subtitle {
        font-size: 13px !important;
        margin-bottom: 10px;
    }

     Inputs grandes (touch-friendly) 
    .login-input,
    .form-control {
        height: 52px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
    }

    .btn-login,
    .btn-brand {
        height: 52px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
        font-weight: 800;
    }

     Evitar que el texto/alertas rompan el layout 
    .alert {
        border-radius: 14px;
    }
}


/* Extra: teléfonos pequeños */
@media (max-width: 420px) {
    .login-h1 {
        font-size: 20px !important;
    }

    .login-card {
        padding: 16px !important;
    }
}


