:root {
    --forest: #07529a;
    --forest-deep: #063b70;
    --leaf: #f58220;
    --paper: #f5f7fa;
    --ink: #202a35;
    --muted: #737f8c;
    --line: #e1e7ed;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', sans-serif;
}
h1, h2, h3, .brand-mark { font-family: 'Manrope', sans-serif; }
a { color: inherit; }
.site-nav {
    min-height: 76px;
    border-bottom: 1px solid rgba(7, 82, 154, .12);
    background: rgba(245, 247, 250, .96);
}
.brand-mark { font-weight: 800; letter-spacing: 0; }
.brand-logo {
    display: block; width: min(260px, 48vw); height: 42px;
    object-fit: contain; object-position: left center;
}
.hero-band {
    position: relative; overflow: hidden; color: #fff;
    background-color: var(--forest);
    background-image: linear-gradient(90deg, rgba(4, 34, 77, .9), rgba(5, 55, 116, .68) 58%, rgba(5, 55, 116, .42)), url('images/backdrop.jpeg');
    background-position: center 42%;
    background-size: cover;
}
.hero-band::after {
    position: absolute; right: -70px; bottom: -185px; width: 440px; height: 440px;
    border: 1px solid rgba(245, 130, 32, .38); border-radius: 50%; content: '';
    box-shadow: 0 0 0 38px rgba(245, 130, 32, .07), 0 0 0 78px rgba(245, 130, 32, .04);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner .col-lg-8 { width: 100%; }
.hero-kicker, .eyebrow {
    color: #ffbd7d; font-size: .73rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}
.hero-title { max-width: none; font-size: 3rem; font-weight: 800; line-height: 1.16; }
.hero-title em { color: var(--leaf); font-style: normal; }
.hero-copy { max-width: 510px; color: rgba(255,255,255,.72); line-height: 1.7; }
.form-shell { margin-top: -1px; background: var(--paper); }
.form-panel {
    position: relative; z-index: 2; margin-top: -44px; padding: 34px;
    background: #fff; border: 1px solid var(--line); border-radius: 7px;
    box-shadow: 0 18px 50px rgba(22, 50, 79, .08);
}
.section-label { color: var(--forest); font-size: 1rem; font-weight: 800; }
.form-label { margin-bottom: .45rem; color: #37463f; font-size: .84rem; font-weight: 700; }
.form-control, .form-select {
    min-height: 48px; border-color: #dfe4dc; border-radius: 4px;
    font-size: .93rem;
}
.form-control:focus, .form-select:focus { border-color: #4d83b6; box-shadow: 0 0 0 .2rem rgba(7,82,154,.13); }
.btn-forest { color: white; background: var(--forest); border: 1px solid var(--forest); border-radius: 4px; font-weight: 700; }
.btn-forest:hover, .btn-forest:focus { color: white; background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-leaf { color: var(--forest-deep); background: var(--leaf); border: 1px solid var(--leaf); border-radius: 4px; font-weight: 800; }
.btn-leaf:hover { color: var(--forest-deep); background: #ff9d4b; border-color: #ff9d4b; }
.page-footer { color: #748078; font-size: .82rem; }
.auth-wrap {
    display: grid; min-height: 100vh; place-items: center; padding: 24px;
    background-color: var(--forest);
    background-image: linear-gradient(rgba(3, 35, 79, .78), rgba(3, 35, 79, .88)), url('images/backdrop.jpeg');
    background-position: center; background-size: cover;
}
.auth-panel { width: min(100%, 440px); padding: 36px; background: white; border-radius: 6px; }
.auth-panel .brand-logo { width: min(280px, 100%); height: 48px; margin-bottom: 25px; }
.admin-top {
    color: white;
    background-color: var(--forest);
    background-image: linear-gradient(rgba(3, 35, 79, .88), rgba(3, 35, 79, .88)), url('images/backdrop.jpeg');
    background-position: center 28%; background-size: cover;
}
.admin-top .navbar-brand { color: white; }
.admin-main { max-width: 1440px; }
.metric { padding: 19px 20px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.metric-label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.metric-value { margin-top: 3px; color: var(--forest); font-family: 'Manrope', sans-serif; font-size: 1.8rem; font-weight: 800; }
.toolbar, .table-wrap { background: white; border: 1px solid var(--line); border-radius: 5px; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th { padding: 13px 14px; color: #69756e; background: #f6f7f2; border-bottom-color: var(--line); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { padding: 13px 14px; border-bottom-color: #edf0e9; vertical-align: middle; font-size: .85rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 3px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status-present { color: #245b3a; background: #e5f1dc; }
.status-absent { color: #725d27; background: #f4efd9; }
.pagination .page-link { color: var(--forest); border-color: var(--line); }
.pagination .active .page-link { color: white; background: var(--forest); border-color: var(--forest); }
.filter-control { min-width: 150px; }
.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }
.subtle-link { color: var(--forest); font-weight: 700; text-decoration: none; }
.subtle-link:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
    .site-nav { min-height: 65px; }
    .site-nav .brand-logo { width: min(190px, 50vw); height: 34px; }
    .site-nav .brand-mark, .admin-top .brand-mark { display: none; }
    .admin-top .brand-logo { width: min(185px, 49vw); height: 34px; }
    .hero-band { padding-top: 56px !important; padding-bottom: 76px !important; }
    .hero-title { font-size: 1.45rem; }
    .form-panel { margin-top: -38px; padding: 23px 19px; }
    .auth-panel { padding: 28px 23px; }
    .hero-band::after { right: -270px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-title { font-size: 2.4rem; }
}