* {
    font-family: 'Parkinsans', sans-serif;
}


 a{
    color: black;
 }

.btn-outline-secondary:hover i,
.btn-outline-primary:hover i,
.btn-outline-danger:hover i {
    color: white !important;
}

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --primary-gradient: linear-gradient(135deg, #065f46 0%, #059669 100%);
    --sidebar-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

body {
    background-color: #f1f5f9;
    min-height: 100vh;
}
 

 

 

.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    position: fixed;
    top: 5px;
    left: 10px;
    height: calc(100vh - 10px);
    overflow-y: auto;
    border-radius: 30px;
    width: 260px;
}

.main-content {
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

@media (min-width: 992px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.logo {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: -16px;
    width: 4px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
    display: none;
}

.nav-link.active::before {
    display: block;
}

.nav-link i {
    margin-right: 12px;
    font-size: 20px;
}

.sidebar-dropdown {
    margin-bottom: 4px;
}

.sidebar-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown-toggle {
    gap: 0;
    padding-left: 8px;
    padding-right: 0;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.sidebar-dropdown-toggle > i:first-child {
    margin-right: 6px;
}

.sidebar-dropdown-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sidebar-dropdown-icon {
    margin-right: 0 !important;
    margin-left: 6px;
    font-size: 14px !important;
    transition: transform 0.2s ease;
}

.sidebar-dropdown[open] .sidebar-dropdown-icon {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin: 2px 0 8px 44px;
}

.sidebar-submenu .nav-link {
    padding: 9px 12px;
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.sidebar-submenu .nav-link::before {
    display: none !important;
}

.nav-link.no-active-indicator::before,
.nav-link.no-active-indicator.active::before,
.sidebar-dropdown .nav-link.no-active-indicator.active::before {
    display: none !important;
    content: none !important;
}

.sidebar-submenu .nav-link i {
    font-size: 16px;
}

.promo-card {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 20px;
}

.fixed-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
    margin: 5px 30px 0 30px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input {
    background-color: #f1f5f9;
    border: none;
    border-radius: 30px;
    padding: 12px 16px 12px 44px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.stat-card canvas {
    flex: 1 1 auto;
    width: 100% !important;
    min-height: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.agent-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agent-stat-grid .stat-card {
    border-radius: 16px;
    min-height: 150px;
    padding: 14px;
}

.agent-stat-grid .stat-icon-large {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex: 0 0 auto;
    font-size: 22px;
}

.agent-stat-grid h3 {
    font-size: 1.4rem;
}

.agent-stat-grid small {
    font-size: 0.74rem;
}

@media (max-width: 1199.98px) {
    .agent-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .agent-stat-grid {
        grid-template-columns: 1fr;
    }
}

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

.geography-dashboard {
    color: var(--text-primary);
}

.geography-card {
    min-height: 100%;
    padding: 14px;
}

.drawn-map-visual {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6f3 100%);
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 8px;
}

.congo-map-svg {
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: 510px;
    border: 0;
    display: block;
}

.department-map-tooltip {
    position: absolute;
    z-index: 5;
    left: 12px;
    top: 12px;
    max-width: 220px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    white-space: nowrap;
}

.department-map-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-region {
    cursor: pointer;
    outline: none;
}

.map-region path {
    transition: fill-opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.map-region:hover path,
.map-region:focus path,
.map-region.is-active path {
    fill-opacity: 1;
    stroke-width: 5;
    filter: saturate(1.18) drop-shadow(0 8px 8px rgba(15, 23, 42, 0.22));
}

.congo-country-outline {
    fill: none;
    stroke: #111827;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.map-region-label,
.map-region-count {
    pointer-events: none;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
    fill: #0f172a;
    font-weight: 800;
}

.map-region-label {
    font-size: 11px;
}

.map-region-count {
    font-size: 12px;
}

.map-neighbor-label {
    fill: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.dynamic-map-panel {
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
}

.map-selection-card {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
    min-height: 62px;
    padding: 10px;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.department-legend-search {
    position: relative;
}

.department-legend-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}

.department-legend-search .form-control {
    min-height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: none;
}

.department-legend-search .form-control:focus {
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.11);
}

.department-map-list {
    display: grid;
    gap: 8px;
}

.department-map-item {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    min-height: 40px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.department-map-item.is-eclated {
    border-color: #86efac;
    background: #f0fdf4;
}

.department-map-item:hover,
.department-map-item:focus,
.department-map-item.is-active {
    border-color: var(--primary-color);
    background: #ecfdf5;
    transform: translateX(2px);
}

.department-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--department-color);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.department-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.department-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 500;
}

.department-map-item strong {
    font-size: 0.82rem;
}

.dashboard-page-content {
    padding-top: 28px;
}

.chart-detail-card {
    min-height: 340px;
    overflow: hidden;
}

.chart-detail-canvas {
    position: relative;
    width: 100%;
    height: 260px;
}

.chart-detail-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.category-chart-card {
    min-height: 390px;
}

.category-chart-canvas {
    position: relative;
    width: 100%;
    height: 315px;
}

.category-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.search-select-page {
    padding-top: 28px;
}

.search-step-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

.agent-search-card {
    padding: 18px;
}

.agent-search-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.agent-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    max-width: 760px;
}

.agent-search-input {
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #f1f5f9;
    padding: 0.85rem 1rem 0.85rem 3.1rem;
    font-weight: 500;
    box-shadow: none;
}

.agent-search-input:focus {
    border-color: rgba(16, 185, 129, 0.38);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.agent-search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.agent-search-submit {
    min-height: 54px;
    min-width: 160px;
    font-weight: 700;
}

.agent-results-card {
    padding: 18px;
}

.agent-search-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.agent-search-table thead th {
    border: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.agent-search-table tbody tr {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.agent-search-table tbody td {
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    padding: 12px 14px;
}

.agent-search-table tbody td:first-child {
    border-left: 1px solid #eef2f7;
    border-radius: 14px 0 0 14px;
}

.agent-search-table tbody td:last-child {
    border-right: 1px solid #eef2f7;
    border-radius: 0 14px 14px 0;
}

.agent-result-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: var(--primary-dark);
    font-weight: 800;
    flex: 0 0 auto;
}

.agent-matricule-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
}

.agent-search-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
    text-align: center;
}

.agent-search-empty i {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .dashboard-page-content {
        padding-top: 22px;
    }

    .search-select-page {
        padding-top: 22px;
    }

    .agent-search-form {
        grid-template-columns: 1fr;
    }

    .agent-search-submit {
        width: 100%;
    }

    .drawn-map-visual {
        min-height: 360px;
    }
}

.chart-bar {
    width: 32px;
    background-color: var(--primary-color);
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    min-height: 40px;
    position: relative;
}

.chart-bar-light {
    background-color: #6ee7b7;
}

.chart-bar-empty {
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 4px,
        #f3f4f6 4px,
        #f3f4f6 8px
    );
}

.chart-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.donut-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0deg 147.6deg,
        #065f46 147.6deg 288deg,
        #e5e7eb 288deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.donut-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-line {
    width: 4px;
    border-radius: 2px;
    min-height: 40px;
}

.time-tracker {
    background: var(--primary-gradient);
    border: none;
}

.bg-success-light {
    background-color: #d1fae5;
}

.bg-warning-light {
    background-color: #fef3c7;
}

.bg-danger-light {
    background-color: #fee2e2;
}

.bg-primary-light {
    background-color: #dbeafe;
}

.text-primary {
    color: #1d4ed8 !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--text-primary);
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stat-icon-large {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.bg-success-light {
    background-color: #dcfce7;
}

.text-success {
    color: #16a34a !important;
}

.bg-warning-light {
    background-color: #fef3c7;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-success-light {
    background-color: #dcfce7;
}

.text-success {
    color: #16a34a !important;
}

.bg-secondary {
    background-color: #6b7280;
}

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

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}



.btn-light.rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .sidebar {
        left: -100%;
        width: 280px;
        transition: left 0.3s ease;
        z-index: 1040;
    }
    
    .sidebar.show {
        left: 10px;
    }
    
    .col-md-9.col-lg-10 {
        margin-left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1039;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .fixed-header {
        margin: 5px;
        border-radius: 16px;
    }
    
    .fixed-header .px-4.py-3 {
        padding: 12px;
    }
    
    .search-input {
        padding: 10px 12px 10px 36px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .donut-chart {
        width: 140px;
        height: 140px;
    }
    
    .donut-inner {
        width: 90px;
        height: 90px;
    }
    
    .chart-bar {
        width: 24px;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .row.g-4 {
        gap: 1rem;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 240px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .donut-chart {
        width: 160px;
        height: 160px;
    }
    
    .donut-inner {
        width: 100px;
        height: 100px;
    }
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.13), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(135deg, #eef6f3 0%, #f8fafc 48%, #eaf2ff 100%);
}

.auth-shell {
    width: min(1080px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.auth-visual {
    position: relative;
    min-height: 100%;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(6, 95, 70, 0.96), rgba(5, 150, 105, 0.9));
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: auto -60px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.auth-brand,
.auth-brand-icon,
.auth-benefits div {
    display: flex;
    align-items: center;
}

.auth-brand {
    position: relative;
    z-index: 1;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
}

.auth-brand-icon {
    width: 48px;
    height: 48px;
    justify-content: center;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 1.45rem;
    overflow: hidden;
}

.auth-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-eyebrow,
.auth-step {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.auth-eyebrow {
    padding: 0.42rem 0.78rem;
    color: #dcfce7;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-visual h1 {
    margin: 18px 0 14px;
    max-width: 460px;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.02;
    font-weight: 800;
}

.auth-visual p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.auth-benefits div {
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-card {
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-header {
    margin-bottom: 26px;
}

.auth-step {
    padding: 0.36rem 0.72rem;
    color: var(--primary-dark);
    background: var(--primary-light);
}

.auth-card h2 {
    margin: 14px 0 8px;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
}

.auth-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
}

.auth-alert a {
    font-weight: 800;
    color: inherit;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field .form-label {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-input {
    position: relative;
}

.auth-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.auth-input .form-control {
    min-height: 52px;
    padding: 0.8rem 1rem 0.8rem 2.85rem;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: none;
}

.auth-input .form-control:focus {
    border-color: rgba(16, 185, 129, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.auth-terms {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.auth-terms .form-check-input {
    margin: 0.2rem 0 0;
    border-color: #cbd5e1;
}

.auth-terms .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-terms .form-check-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.auth-terms .invalid-feedback,
.auth-field .invalid-feedback {
    grid-column: 1 / -1;
    display: block;
    font-size: 0.8rem;
}

.auth-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(5, 150, 105, 0.28);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}

.auth-switch {
    margin-top: 22px !important;
    text-align: center;
    font-size: 0.92rem;
}

.auth-switch a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 899.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 22px;
    }

    .auth-visual {
        min-height: 300px;
        gap: 42px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 12px;
        place-items: stretch;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-visual {
        min-height: auto;
        padding: 24px;
    }

    .auth-visual h1 {
        font-size: 2rem;
    }

    .auth-benefits div {
        width: 100%;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-card h2 {
        font-size: 1.65rem;
    }
}
