:root {
    --nl-green: #0f7a3d;
    --nl-green-dark: #085c2d;
    --nl-gold: #f4b000;
    --nl-lime: #b6e388;
    --nl-cream: #fffdf5;
    --nl-dark: #1f2933;
    --nl-muted: #6b7280;
    --nl-border: rgba(15, 122, 61, 0.16);
    --nl-shadow: 0 18px 45px rgba(15, 122, 61, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(182, 227, 136, 0.32), transparent 34%),
        linear-gradient(180deg, #fffdf5 0%, #f7fff9 100%);
    color: var(--nl-dark);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.nl-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 14px;
}

.nl-auth-card {
    width: 100%;
    max-width: 460px;
    margin: auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--nl-border);
    border-radius: 28px;
    box-shadow: var(--nl-shadow);
    overflow: hidden;
}

.nl-auth-header {
    padding: 28px 24px 22px;
    background:
        linear-gradient(135deg, rgba(15, 122, 61, 0.96), rgba(8, 92, 45, 0.96)),
        radial-gradient(circle at top right, rgba(244, 176, 0, 0.5), transparent 35%);
    color: white;
}

.nl-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 13px;
    font-weight: 700;
}

.nl-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    background: var(--nl-gold);
    color: #1f2933;
    font-weight: 900;
}

.nl-auth-title {
    margin: 18px 0 6px;
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.nl-auth-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
}

.nl-auth-body {
    padding: 24px;
}

.form-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--nl-dark);
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(31,41,51,0.12);
    min-height: 48px;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nl-green);
    box-shadow: 0 0 0 0.2rem rgba(15,122,61,0.13);
}

.nl-btn {
    border: 0;
    min-height: 50px;
    border-radius: 17px;
    padding: 12px 18px;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nl-btn-primary {
    background: linear-gradient(135deg, var(--nl-green), var(--nl-green-dark));
    color: #fff;
    box-shadow: 0 12px 22px rgba(15,122,61,0.22);
}

.nl-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nl-btn-outline {
    background: white;
    color: var(--nl-green);
    border: 1px solid var(--nl-border);
}

.nl-small-note {
    color: var(--nl-muted);
    font-size: 13px;
    line-height: 1.5;
}

.nl-alert {
    display: none;
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14px;
}

.nl-alert.show {
    display: block;
}

.nl-alert-success {
    background: rgba(15,122,61,0.1);
    color: var(--nl-green-dark);
    border: 1px solid rgba(15,122,61,0.16);
}

.nl-alert-danger {
    background: rgba(220,38,38,0.09);
    color: #991b1b;
    border: 1px solid rgba(220,38,38,0.14);
}

.nl-app-shell {
    min-height: 100vh;
}

.nl-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nl-border);
}

.nl-topbar-inner {
    max-width: 1180px;
    margin: auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nl-dark);
    font-weight: 950;
    letter-spacing: -0.03em;
    font-size: 20px;
}

.nl-brand small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--nl-muted);
    letter-spacing: 0;
}

.nl-page {
    max-width: 1180px;
    margin: auto;
    padding: 22px 16px 90px;
}

.nl-hero-card {
    border-radius: 28px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(15, 122, 61, 0.96), rgba(8, 92, 45, 0.96)),
        radial-gradient(circle at top right, rgba(244, 176, 0, 0.45), transparent 35%);
    color: white;
    box-shadow: var(--nl-shadow);
}

.nl-hero-card h1 {
    font-weight: 950;
    letter-spacing: -0.04em;
    margin: 0;
}

.nl-hero-card p {
    margin: 8px 0 0;
    opacity: 0.92;
}

.nl-stat-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.nl-stat-card {
    background: white;
    border: 1px solid var(--nl-border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(31,41,51,0.06);
}

.nl-stat-label {
    font-size: 13px;
    color: var(--nl-muted);
    font-weight: 800;
}

.nl-stat-value {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.nl-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    border: 1px solid var(--nl-border);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(15,122,61,0.16);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 520px;
    margin: auto;
}

.nl-bottom-nav a {
    color: var(--nl-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 4px;
    border-radius: 18px;
}

.nl-bottom-nav a.active {
    background: rgba(15,122,61,0.1);
    color: var(--nl-green);
}

.nl-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15,122,61,0.1);
    color: var(--nl-green-dark);
    font-weight: 900;
    font-size: 12px;
}

@media (min-width: 768px) {
    .nl-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nl-page {
        padding-bottom: 40px;
    }

    .nl-bottom-nav {
        display: none;
    }
}

.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nl-muted);
    border-bottom-color: var(--nl-border);
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .table {
        min-width: 760px;
    }
}