:root {
    --ui-bg: #eef2f7;
    --ui-card: #ffffff;
    --ui-border: #dde4ee;
    --ui-sidebar: #3f5b17;
    --ui-sidebar-soft: #5a7f21;
    --ui-text: #273246;
    --ui-muted: #6f7c90;
    --ui-accent: #2f9e44;
    --ui-accent-dark: #237a35;
    --ui-accent-soft: rgba(47, 158, 68, 0.16);
    --ui-shadow: 0 8px 28px rgba(17, 34, 68, 0.08);
}

body {
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    background: var(--ui-bg) !important;
    color: var(--ui-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.4;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.main-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.card-stat {
    border: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.15rem;
    align-items: start;
}

.admin-shell > section {
    min-width: 0;
}

.admin-sidebar {
    background: var(--ui-sidebar);
    border-radius: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #4f6e1f;
    box-shadow: 0 12px 30px rgba(42, 61, 12, 0.38);
    min-height: calc(100vh - 7.5rem);
    position: sticky;
    top: 1rem;
    transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease, max-width 0.25s ease, padding 0.2s ease;
    transform-origin: left center;
}

.admin-sidebar-dark {
    background: var(--ui-sidebar);
    color: #e5ecd3;
}

.admin-sidebar-dark .admin-brand {
    color: #f4f8e9;
}

.admin-sidebar-dark .admin-nav-link {
    color: #d7e1bf;
}

.admin-sidebar-dark .admin-sub-link {
    color: #cbd6af;
}

.admin-sidebar-dark .admin-nav-link:hover,
.admin-sidebar-dark .admin-nav-link.active {
    background: #6f9a2c;
    color: #ffffff;
}

.admin-brand {
    font-weight: 700;
    color: #eef3ff;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.7rem;
    margin-bottom: 0.8rem !important;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.55rem;
    color: #bcc6d8;
    text-decoration: none;
    padding: 0.55rem 0.72rem;
    margin-bottom: 0.2rem;
    font-size: 0.88rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #ffffff;
    background: var(--ui-sidebar-soft);
    border-color: #7ca63a;
    box-shadow: inset 0 0 0 1px rgba(185, 214, 121, 0.34);
}

.admin-nav-collapse {
    margin-bottom: 0.25rem;
}

.admin-nav-collapse summary {
    list-style: none;
    cursor: pointer;
}

.admin-nav-collapse summary::-webkit-details-marker {
    display: none;
}

.admin-submenu {
    margin-left: 1.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0.5rem;
}

.admin-sub-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #8f9cb3;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.42rem 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    transition: all 0.2s ease;
}

.admin-sub-link:hover,
.admin-sub-link.active {
    color: #ffffff;
    background: #6a9329;
}

.admin-main-card {
    background: var(--ui-card);
    border: 1px solid var(--ui-border);
    border-radius: 0.8rem;
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.admin-main-card .card-header {
    border-bottom: 1px solid var(--ui-border);
}

.admin-main-card .card-header .btn[data-bs-toggle="collapse"][data-bs-target] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding: 0.72rem 0 !important;
    color: #2c3b4f;
    line-height: 1.3;
    white-space: normal;
}

.admin-main-card .card-header .btn[data-bs-toggle="collapse"][data-bs-target]::after {
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 0.92rem;
    color: #6d7785;
    transition: transform 0.2s ease;
}

.admin-main-card .card-header .btn[data-bs-toggle="collapse"][data-bs-target]:not(.collapsed)::after {
    transform: rotate(180deg);
}

.admin-stat-card {
    color: #fff;
    border: 1px solid #263650;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(19, 35, 58, 0.24);
}

.grad-orange { background: linear-gradient(135deg, #2f9e44, #237a35); }
.grad-purple { background: linear-gradient(135deg, #368e4a, #276c38); }
.grad-blue { background: linear-gradient(135deg, #3aa553, #2a7d3d); }
.grad-cyan { background: linear-gradient(135deg, #2f9450, #236b3a); }

.mini-chart {
    height: 170px;
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 145, 61, 0.25), rgba(255, 145, 61, 0.05)),
        repeating-linear-gradient(
            to right,
            rgba(0,0,0,0.03) 0,
            rgba(0,0,0,0.03) 1px,
            transparent 1px,
            transparent 56px
        ),
        #fff;
    position: relative;
}

.mini-chart::after {
    content: "";
    position: absolute;
    inset: 22px 12px 24px 12px;
    border-radius: 999px;
    border-top: 2px solid #f7a04f;
    border-bottom: 2px solid #f7a04f;
    opacity: 0.55;
}

.subject-bar {
    height: 10px;
    border-radius: 999px;
    background: #eef2ff;
    overflow: hidden;
}

.subject-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7c83ff, #4cc7ff);
}

.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9efff;
    color: #4b5c8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.official-report-card {
    background: #fff;
    border: 1px solid #222;
    padding: 0.68rem 0.72rem;
    max-width: 920px;
    margin: 0 auto 1rem auto;
    box-shadow: none;
    color: #111;
    font-family: "Arial", sans-serif;
}

.report-school-header {
    font-size: 0.7rem;
    color: #1f1f1f;
    line-height: 1.24;
}

.report-school-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.15px;
}

.report-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.02rem;
    color: #111;
    margin: 0.45rem auto 0.08rem auto;
}

.report-subtitle {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-meta-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.report-meta-fill {
    display: inline-block;
    min-width: 68px;
    border-bottom: 1px solid #111;
    line-height: 1;
    padding: 0 0.12rem 0.05rem 0.12rem;
}

.report-student-name {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.report-table th,
.report-table td {
    font-size: 0.72rem;
    padding: 0.2rem 0.24rem;
    border: 1px solid #222 !important;
    vertical-align: middle;
}

.report-table thead th {
    background: #fff;
    color: #111;
    font-weight: 600;
    text-align: center;
}

.report-table {
    border: 1px solid #222 !important;
}

.report-total-row td {
    font-weight: 600;
}

.report-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.76rem;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

.report-grade-title {
    margin-top: 0.42rem;
    margin-bottom: 0.12rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.grade-key-box {
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
}

.report-comments {
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 0.55rem;
}

.report-comment-lines {
    border-bottom: 1px dotted #222;
    border-top: 1px dotted #222;
    height: 1.6rem;
    margin-top: 0.35rem;
}

.report-sign-box-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.95rem;
}

.report-sign-box-row > div {
    flex: 1;
}

.report-sign-name {
    text-align: center;
    font-size: 0.74rem;
    margin-bottom: 0.18rem;
}

.report-sign-box {
    border: 1px solid #222;
    height: 54px;
    width: 100%;
}

.official-report-card .table-responsive {
    overflow: visible;
}

.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-toolbar .table-search-input {
    min-width: 260px;
    max-width: 420px;
}

.table-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    color: #6d7785;
    font-size: 0.82rem;
}

.table-pagination-controls .pagination {
    gap: 0.2rem;
}

.table-pagination-controls .page-item .page-link {
    border-radius: 0.2rem;
    border-color: #d6dce6;
    color: #5f6875;
    min-width: 34px;
    text-align: center;
    background: #fff;
}

.table-pagination-controls .page-item.active .page-link {
    background: #1f2a3a;
    border-color: #1f2a3a;
    color: #fff;
}

.table-pagination-controls .page-item.disabled .page-link {
    color: #a2aab5;
    background: #f7f9fc;
}

.admin-shell section > .d-flex.justify-content-between.align-items-center.mb-3 {
    background: linear-gradient(135deg, #1d2533, #252f41);
    color: #f5f7fa;
    padding: 0.85rem 1rem;
    border: 1px solid #36435a;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(18, 29, 47, 0.2);
}

.admin-shell section > .d-flex.justify-content-between.align-items-center.mb-3 .text-muted {
    color: #c0c8d8 !important;
}

.admin-shell .table {
    margin-bottom: 0;
    font-size: 0.86rem;
    color: #2f3d52;
}

.admin-shell .table > :not(caption) > * > * {
    padding: 0.54rem 0.62rem;
    border-bottom-color: #e4e8ef;
}

.admin-shell .table thead th {
    background: #e9eff8;
    color: #2e3f56;
    font-weight: 600;
    border-bottom: 1px solid #d8e1ed;
    font-size: 0.8rem;
    letter-spacing: 0.12px;
}

.admin-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fafcff;
}

.admin-shell .table-striped > tbody > tr:hover > * {
    background-color: #edf4ff;
}

.admin-shell .table td {
    line-height: 1.32;
}

.admin-shell .form-control,
.admin-shell .form-select {
    border-radius: 0.55rem;
    border-color: #d3d9e2;
    min-height: 40px;
    background-color: #ffffff;
    color: #273246;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 0.16rem var(--ui-accent-soft);
}

.admin-shell .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5870;
    margin-bottom: 0.32rem;
}

.admin-shell .form-text {
    color: #73819a;
    font-size: 0.75rem;
}

.admin-shell textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.admin-shell .form-check {
    padding-left: 1.65rem;
}

.admin-shell .form-check-input {
    margin-left: -1.65rem;
    border-color: #b8c4d6;
}

.admin-shell .form-check-input:checked {
    background-color: var(--ui-accent);
    border-color: var(--ui-accent);
}

.admin-shell .input-group {
    border-radius: 0.55rem;
    overflow: hidden;
}

.admin-shell .input-group .form-control,
.admin-shell .input-group .form-select {
    border-radius: 0 !important;
}

.admin-main-card .card-body > form {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    border: 1px solid #e4ebf5;
    border-radius: 0.72rem;
    padding: 0.85rem;
}

.admin-main-card .card-body > form.row {
    row-gap: 0.5rem;
}

.admin-main-card .card-body > form .btn {
    min-height: 40px;
}

.admin-main-card .card-body > form .btn-sm {
    min-height: 34px;
}

.admin-shell .btn {
    border-radius: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.admin-shell .btn-primary {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-dark));
    border-color: var(--ui-accent-dark);
}

.admin-shell .btn-outline-primary {
    border-color: var(--ui-accent);
    color: var(--ui-accent-dark);
}

.admin-shell .btn-outline-primary:hover {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
}

.admin-shell .badge {
    font-weight: 600;
}

.navbar.bg-primary {
    background: linear-gradient(135deg, #151d2b, #1c2638) !important;
    border-bottom: 1px solid #27344a;
}

.navbar .navbar-brand {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.top-user-meta .badge {
    border: 1px solid #ccd5e2;
}

.top-user-meta {
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 32, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1035;
}

body.sidebar-mobile-open {
    overflow: hidden;
}

body.sidebar-mobile-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .admin-shell {
        grid-template-columns: 1fr;
    }

    body.sidebar-collapsed .admin-sidebar {
        max-width: 0;
        min-width: 0;
        width: 0;
        opacity: 0;
        transform: translateX(-14px);
        overflow: hidden;
        padding: 0;
        border: 0;
        box-shadow: none;
        min-height: 0;
        pointer-events: none;
    }

    body.sidebar-collapsed .admin-sidebar * {
        visibility: hidden;
    }
}

.table-readable table {
    min-width: 900px;
    font-size: 0.81rem;
}

.table-readable th,
.table-readable td {
    white-space: nowrap;
    vertical-align: middle;
}

.table-readable td.text-wrap,
.table-readable .text-wrap {
    white-space: normal;
    word-break: break-word;
}

.table-readable thead th {
    font-size: 0.78rem;
    letter-spacing: 0.1px;
}

.table-readable tbody td {
    font-size: 0.8rem;
}

.table-readable .badge {
    font-size: 0.72rem;
    padding: 0.34em 0.56em;
    border-radius: 999px;
}

.table-search-target tbody tr {
    transition: background-color 0.14s ease;
}

.table-search-target td,
.table-search-target th {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-shell .table-responsive {
    border-radius: 0.55rem;
}

.text-list-card {
    border: 1px solid #eef2ff;
    border-radius: 0.7rem;
    background: #f8faff;
    padding: 0.65rem 0.85rem;
}

.admin-main-card .card-body > h2,
.admin-main-card .card-body > .h5,
.admin-main-card .card-body > .h6 {
    color: #2c3b4f;
    font-weight: 700;
}

.text-search-item {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #dfe6ff;
}

.text-search-item:last-child {
    border-bottom: 0;
}

.student-name-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 180px;
    font-size: 0.8rem;
}

.student-avatar-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #24416d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.student-name-cell .small,
.table-readable .small {
    font-size: 0.72rem !important;
}

.report-card-print-item {
    margin-bottom: 1rem;
    page-break-after: always;
}

.report-card-print-item:last-child {
    page-break-after: auto;
}

.mark-filter-row .form-label {
    margin-bottom: 0.28rem;
    font-size: 0.81rem;
    font-weight: 700;
    color: #6d7785;
    text-transform: none;
}

.mark-filter-row .form-control,
.mark-filter-row .form-select {
    min-height: 42px;
    border-radius: 0.2rem;
    background: #ffffff;
    border-color: #d9dee7;
}

.btn-mark-teal {
    background: #17b3b3;
    border-color: #14a3a3;
    color: #fff;
    font-weight: 700;
    min-height: 42px;
}

.btn-mark-teal:hover,
.btn-mark-teal:focus {
    background: #139a9a;
    border-color: #118e8e;
    color: #fff;
}

.mark-details-box {
    max-width: 340px;
    margin: 0.8rem auto 1rem auto;
    text-align: center;
    background: #d7dde5;
    color: #5e6672;
    border: 1px solid #c7ced8;
    border-radius: 0.25rem;
    padding: 0.7rem 0.85rem;
    line-height: 1.42;
    font-size: 0.9rem;
}

.mark-entry-wrap {
    border: 1px solid #d9dee6;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.mark-entry-table th {
    background: #f2f4f8 !important;
    font-size: 0.8rem;
    color: #4d5868;
    font-weight: 600;
}

.mark-entry-table td {
    background: #fff;
    font-size: 0.84rem;
}

.mark-entry-table .mark-col-serial {
    width: 46px;
    color: #7a8492;
}

.mark-col-photo {
    width: 72px;
}

.mark-photo-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8edf4;
    color: #5a6575;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.mark-col-roll {
    width: 82px;
    color: #5d6673;
}

.mark-entry-table td:nth-child(3) {
    min-width: 220px;
}

.mark-score-input {
    min-width: 165px;
    border-radius: 0.2rem !important;
}

.mark-entry-table .form-control {
    min-height: 32px;
    font-size: 0.85rem;
    background: #ffffff;
}

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 290px);
        max-width: 290px;
        min-height: 100vh;
        border-radius: 0;
        transform: translateX(-105%);
        opacity: 1;
        z-index: 1040;
        overflow-y: auto;
    }

    body.sidebar-mobile-open .admin-sidebar {
        transform: translateX(0);
    }

    .top-user-meta {
        gap: 0.5rem !important;
        font-size: 0.78rem;
        width: 100%;
        justify-content: flex-end;
    }

    .top-user-meta .small {
        display: none;
    }
}

@media (max-width: 767px) {
    .main-shell {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .admin-shell {
        gap: 0.75rem;
    }

    .admin-nav-link {
        padding: 0.55rem 0.65rem;
        font-size: 0.9rem;
    }

    .admin-main-card .card-body,
    .card .card-body {
        padding: 0.9rem;
    }

    .admin-main-card .card-body > form {
        padding: 0.72rem;
        border-radius: 0.62rem;
    }

    .admin-main-card .card-header .btn[data-bs-toggle="collapse"][data-bs-target] {
        font-size: 0.95rem;
        padding: 0.82rem 0 !important;
    }

    .display-6 {
        font-size: 1.55rem;
    }

    .report-summary-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .official-report-card {
        padding: 0.65rem;
        border-width: 1px;
    }

    .report-title {
        font-size: 0.92rem;
    }

    .report-subtitle {
        font-size: 0.8rem;
    }

    .report-meta-top {
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.75rem;
    }

    .report-table th,
    .report-table td {
        font-size: 0.74rem;
        white-space: normal;
        word-break: break-word;
    }

    .report-sign-box-row {
        flex-direction: column;
        gap: 0.65rem;
    }

    .search-toolbar .table-search-input {
        min-width: 100%;
        max-width: 100%;
    }

    .table-pagination-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-readable table {
        min-width: 100%;
        table-layout: fixed;
    }

    .table-readable th,
    .table-readable td {
        white-space: normal;
        word-break: break-word;
    }

    .admin-shell .table {
        font-size: 0.82rem;
    }

    .admin-shell .table > :not(caption) > * > * {
        padding: 0.5rem 0.48rem;
    }

    .admin-shell .table thead th {
        font-size: 0.75rem;
    }

    .mark-score-input {
        min-width: 88px;
    }

    .mark-entry-table td:nth-child(3) {
        min-width: 0;
    }

    .admin-shell section > .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-shell .form-control,
    .admin-shell .form-select {
        min-height: 42px;
    }
}

@media (max-width: 575px) {
    .admin-shell { gap: 0.55rem; }

    .navbar .container {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }

    .top-user-meta {
        width: 100%;
        justify-content: space-between;
    }

    .table td,
    .table th {
        font-size: 0.82rem;
    }

    .grade-key-box { max-width: 100%; }
}

@media print {
    .no-print,
    .navbar,
    .table-pagination-controls {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    main.container,
    main.container-fluid {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .admin-shell {
        display: block;
    }

    .official-report-card {
        border-width: 1px;
        margin: 0;
        page-break-inside: avoid;
        max-width: 100%;
    }
}

.login-page {
    margin: 0;
    background: #d6d6d6 !important;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 575px;
    background: #ffffff;
    border-radius: 28px;
    padding: 4.9rem 2.05rem 2.35rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    min-height: 875px;
}

.login-card::before,
.login-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.login-card::before {
    inset: 0;
    background:
        linear-gradient(145deg, #40a947 0 28%, transparent 28%) top left / 52% 28% no-repeat,
        linear-gradient(120deg, #1f6b35 0 22%, transparent 22%) top left / 48% 28% no-repeat,
        linear-gradient(-145deg, #40a947 0 28%, transparent 28%) top right / 52% 28% no-repeat,
        linear-gradient(-120deg, #1f6b35 0 22%, transparent 22%) top right / 48% 28% no-repeat,
        linear-gradient(35deg, #40a947 0 28%, transparent 28%) bottom left / 52% 28% no-repeat,
        linear-gradient(58deg, #1f6b35 0 22%, transparent 22%) bottom left / 48% 28% no-repeat,
        linear-gradient(-35deg, #40a947 0 28%, transparent 28%) bottom right / 52% 28% no-repeat,
        linear-gradient(-58deg, #1f6b35 0 22%, transparent 22%) bottom right / 48% 28% no-repeat;
}

.login-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    height: calc(100% - 126px);
    background: #fff;
    clip-path: polygon(12% 0, 88% 0, 98% 14%, 88% 98%, 12% 98%, 2% 86%);
}

.login-card > * {
    position: relative;
    z-index: 3;
}

.login-logo-wrap {
    text-align: center;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.login-card-inner {
    max-width: 430px;
    margin: 0 auto;
    padding-top: 3rem;
}

.login-logo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    background: #2c2f31;
    border: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.login-logo-fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #2c2f31;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.login-title {
    text-align: center;
    color: #0d5a2b;
    letter-spacing: 1px;
    margin-bottom: 1.95rem;
    font-weight: 800;
    font-size: 2.95rem;
}

.login-input-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 1.05rem !important;
}

.login-input-icon {
    background: #2e8f3f;
    color: #fff;
    min-width: 56px;
    border-radius: 14px 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.login-input {
    border: 0;
    background: #dddddd;
    border-radius: 0 14px 14px 0;
    min-height: 52px;
    font-size: 0.95rem;
    padding-left: 0.8rem;
}

.login-input:focus {
    background: #dddddd;
    box-shadow: none;
}

.login-submit-btn {
    background: #2e8f3f;
    color: #fff;
    border-radius: 999px;
    min-height: 56px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border: 1px solid #287a35;
    margin-top: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.1;
}

.login-submit-btn:hover {
    background: #287a35;
    color: #fff;
}

.login-card .form-label {
    font-size: 1rem;
    font-weight: 700 !important;
    color: #161616;
    margin-bottom: 0.45rem;
}

.login-card .form-check-label,
.login-card .text-dark {
    font-size: 0.95rem;
}

.login-card .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #444;
    border-radius: 0;
}

.login-card .d-flex.justify-content-between.align-items-center.mb-4 {
    margin-top: 0.15rem;
    margin-bottom: 1.7rem !important;
}

@media (max-width: 680px) {
    .login-card {
        min-height: auto;
        padding: 4.3rem 1.15rem 1.3rem;
    }

    .login-card::after {
        width: calc(100% - 38px);
        height: calc(100% - 76px);
        top: 38px;
    }

    .login-card-inner {
        max-width: 100%;
        padding-top: 1.8rem;
    }

    .login-title {
        font-size: 2.15rem;
        margin-bottom: 1.2rem;
    }

    .login-card .form-label {
        font-size: 0.95rem;
    }

    .login-card .form-check-label,
    .login-card .text-dark {
        font-size: 0.9rem;
    }

    .login-submit-btn {
        font-size: 1rem;
    }
}
