html, body {
    height: 100%;
    margin: 0;
    background: #f4f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 290px;
    background: #12c7cf;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 3px 0 15px rgba(0,0,0,.08);
}

.sidebar-top {
    padding: 0;
}

.brand-box {
    background: #ffffff;
    color: #222;
    padding: 28px 18px;
    min-height: 180px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 4px solid #12c7cf;
}

.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #e8fbfc;
    color: #12c7cf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.brand-title {
    margin: 0;
    font-weight: 800;
}

.brand-subtitle {
    margin: 0;
    color: #666;
    font-size: .9rem;
}

.user-panel {
    padding: 16px 18px;
    background: rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.menu-links {
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-btn {
    background: #ffffff;
    color: #111;
    text-decoration: none;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all .2s ease;
    border: 2px solid transparent;
}

    .menu-btn:hover {
        transform: translateX(4px);
        border-color: #0aa7ae;
        color: #0c0c0c;
    }

    .menu-btn i {
        font-size: 1.1rem;
        color: #12c7cf;
    }

.sidebar-bottom {
    padding: 14px 12px 18px 12px;
}

.btn-cerrar-sesion {
    background: #1be4ef;
    color: #003438;
    font-weight: 700;
    border: 2px solid white;
}

    .btn-cerrar-sesion:hover {
        background: #10d6e0;
        color: #00292c;
    }

.btn-salir {
    background: #ff1f1f;
    color: white;
    font-weight: 700;
    border: none;
}

    .btn-salir:hover {
        background: #df1111;
        color: white;
    }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
}

.topbar {
    background: white;
    padding: 18px 28px;
    border-bottom: 1px solid #e8edf3;
}

.page-body {
    padding: 28px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border-left: 5px solid #12c7cf;
}

    .dashboard-card h6 {
        margin-bottom: 10px;
        color: #6b7280;
        font-weight: 700;
    }

    .dashboard-card h3 {
        margin: 0;
        font-weight: 800;
        color: #1f2937;
    }

.quick-access {
    margin-top: 26px;
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

    .quick-access .btn {
        margin: 5px;
    }

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        flex-direction: column;
    }

    .menu-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .menu-btn {
        flex: 1 1 220px;
    }
}
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eaf9fb 0%, #f4f7fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
    padding: 32px;
    border: 1px solid #e9eef3;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

    .auth-brand h2 {
        margin: 0;
        font-weight: 800;
        color: #1f2937;
    }

    .auth-brand p {
        margin: 0;
        color: #6b7280;
    }

.auth-brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #e8fbfc;
    color: #12c7cf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6b7280;
    margin-bottom: 22px;
}

.auth-input {
    height: 48px;
    border-radius: 12px;
}

.auth-btn-primary {
    background: #12c7cf;
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 18px;
}

    .auth-btn-primary:hover {
        background: #0fb5bc;
        color: #fff;
    }

.auth-footer-note {
    margin-top: 18px;
    font-size: .92rem;
    color: #6b7280;
    text-align: center;
}

.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border: 1px solid #e8edf3;
}

/* CAPTCHA */

.captcha-box {
    background: #212529;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    letter-spacing: 3px;
    font-size: 20px;
    min-width: 100px;
    text-align: center;
}

/* PRIVACIDAD */

.auth-privacy {
    text-align: center;
    color: #6c757d;
    line-height: 1.4;
}

/* INPUTS */

.auth-input {
    height: 48px;
    border-radius: 10px;
}

/* BOTON */

.auth-btn-primary {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
}