:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #183229;
    background: #f2f6f3;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, #edf5ef, #f8faf8);
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px;
    border: 1px solid #e1ebe4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgb(22 61 43 / 9%);
}

.brand {
    display: inline-block;
    margin-bottom: 20px;
    color: #176b45;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand span {
    color: #33463b;
}

h1 {
    margin: 0 0 8px;
    font-size: 25px;
}

.muted {
    margin: 0 0 24px;
    color: #68786e;
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 650;
}

.auth-form input:not(.form-control):not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd9cf;
    border-radius: 8px;
    color: inherit;
    font: inherit;
}

.auth-form select,
.auth-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd9cf;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.auth-form textarea {
    resize: vertical;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #278457;
    outline: 3px solid rgb(39 132 87 / 14%);
}

.button {
    min-height: 46px;
    margin-top: 12px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #176b45;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    background: #105638;
}

.button-link {
    display: inline-block;
}

.form-footer {
    margin: 22px 0 0;
    color: #68786e;
    font-size: 14px;
    text-align: center;
}

a {
    color: #176b45;
}

.alert {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error {
    border: 1px solid #f1c5c2;
    background: #fff4f3;
    color: #8c2822;
}

.alert-success {
    border: 1px solid #b9dfc6;
    background: #f0faf3;
    color: #205b35;
}

.registration-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 28px 16px;
    background:
        linear-gradient(135deg, transparent 0 42%, rgb(190 145 38 / 10%) 42.2% 55%, transparent 55.2%),
        linear-gradient(45deg, transparent 0 58%, rgb(18 18 18 / 4%) 58.2% 70%, transparent 70.2%),
        #fff;
}

.registration-page a,
.login-page a {
    color: #896312;
}

.registration-page a:hover,
.login-page a:hover {
    color: #5e430b;
}

.registration-page::before,
.registration-page::after {
    position: fixed;
    z-index: 0;
    width: min(24vw, 330px);
    aspect-ratio: 1;
    content: "";
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg, transparent 0 24px, #171717 24px 48px, transparent 48px 72px, #b08a2e 72px 96px);
    opacity: 0.9;
}

.registration-page::before {
    top: -12%;
    right: -9%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 78% 78%, 78% 55%, 55% 55%, 55% 32%, 32% 32%);
}

.registration-page::after {
    bottom: -14%;
    left: -9%;
    transform: rotate(180deg);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 78% 78%, 78% 55%, 55% 55%, 55% 32%, 32% 32%);
}

.registration-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.registration-brand {
    display: grid;
    grid-template-columns: var(--auth-logo-size, 64px) minmax(100px, 1fr) minmax(0, var(--auth-wordmark-width, 250px));
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 0 auto 14px;
    color: #25221b;
    text-align: left;
}

.registration-emblem {
    display: grid;
    width: var(--auth-logo-size, 64px);
    height: var(--auth-logo-size, 64px);
    place-items: center;
    text-decoration: none;
}

.registration-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.registration-name {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.registration-wordmark {
    display: block;
    width: min(100%, var(--auth-wordmark-width, 250px));
    height: auto;
}

.auth-card-register {
    width: 100%;
    padding: 22px 24px 18px;
    border: 1px solid #e8ece8;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgb(24 50 41 / 10%);
}

.registration-heading {
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e5e9e6;
    text-align: center;
}

.registration-heading h1 {
    margin: 0;
    color: #173c53;
    font-size: 18px;
    font-weight: 700;
}

.registration-heading p {
    margin: 5px 0 0;
    color: #68786e;
    font-size: 12px;
}

.registration-form {
    gap: 9px;
}

.registration-terms {
    padding: 12px 14px;
    border: 1px solid #d5b45d;
    border-radius: 6px;
    background: #fffaf0;
    color: #44391f;
}

.registration-terms h2 {
    margin: 0 0 6px;
    color: #76570f;
    font-size: 13px;
    font-weight: 700;
}

.registration-terms ul {
    margin: 0;
    padding-left: 18px;
    font-size: 11px;
    line-height: 1.45;
}

.registration-terms li + li {
    margin-top: 3px;
}

.registration-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0 10px;
    border-bottom: 1px solid #e5e9e6;
    text-align: center;
}

.registration-photo-preview,
.registration-photo-placeholder,
#photo-preview {
    width: 64px;
    height: 64px;
}

.registration-photo-preview {
    overflow: hidden;
    border-radius: 50%;
    background: #e7eef4;
}

.registration-photo-placeholder,
#photo-preview {
    display: block;
    object-fit: cover;
}

.registration-photo-button {
    margin-top: 7px;
    border: 1px solid #e0e4e8;
    color: #39434c;
}

.registration-photo-button:hover {
    border-color: #b08a2e;
    color: #76570f;
}

.registration-photo .form-text {
    margin-top: 4px;
    font-size: 10px;
}

.registration-form .form-label {
    margin: 0 0 4px;
    color: #4a5d52;
    font-size: 12px;
}

.registration-form .form-control {
    min-height: 36px;
    padding: 7px 10px;
    border-color: #cbd9cf;
    border-radius: 5px;
    font-size: 13px;
}

.registration-form .form-control:focus {
    border-color: #b08a2e;
    box-shadow: 0 0 0 0.2rem rgb(176 138 46 / 17%);
}

.registration-form .form-text {
    margin-top: 3px;
    font-size: 11px;
}

.registration-form .btn {
    min-height: 39px;
    margin-top: 4px;
    border: 0;
    background: #a77c19;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.registration-form .btn:hover {
    background: #896312;
}

.registration-confirmation {
    padding-left: 1.75em;
}

.registration-confirmation .form-check-input {
    border-color: #a98a3b;
}

.registration-confirmation .form-check-input:checked {
    border-color: #896312;
    background-color: #a77c19;
}

.registration-confirmation .form-check-label {
    color: #45413a;
    font-size: 11px;
    line-height: 1.4;
}

.auth-card-register .form-footer {
    margin-top: 12px;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .registration-page {
        padding: 20px 14px;
    }

    .registration-page::before,
    .registration-page::after {
        width: 38vw;
        opacity: 0.55;
    }

    .auth-card-register {
        padding: 20px 18px 16px;
    }

    .registration-brand {
        grid-template-columns: min(var(--auth-logo-size, 64px), 16vw) minmax(92px, 1fr) minmax(0, min(var(--auth-wordmark-width, 250px), 32vw));
        column-gap: 7px;
    }

    .registration-emblem {
        width: min(var(--auth-logo-size, 64px), 16vw);
        height: min(var(--auth-logo-size, 64px), 16vw);
    }

    .registration-name {
        font-size: 9px;
    }
}

.page-body {
    display: block;
    padding: 32px 18px;
}

.page-card,
.dashboard {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #e1ebe4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgb(22 61 43 / 9%);
}

.dashboard {
    margin-top: 24px;
    margin-bottom: 24px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-header .brand {
    margin: 0;
}

.dashboard-header .button {
    margin: 0;
}

.dashboard-intro {
    padding: 34px 0 22px;
}

.dashboard-intro .muted,
.page-card > .muted {
    margin-bottom: 14px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #176b45;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.registration-number {
    color: #53645a;
    font-size: 14px;
}

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nav-card {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dce8df;
    border-radius: 10px;
    color: #183229;
    text-decoration: none;
}

a.nav-card:hover {
    border-color: #278457;
    background: #f7fbf8;
}

.nav-card span {
    color: #68786e;
    font-size: 14px;
    line-height: 1.45;
}

.nav-card-disabled {
    background: #f8faf8;
    color: #718077;
}

.status-panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f8f5;
}

.status-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.status-panel .muted {
    margin: 8px 0;
}

.status-badge {
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-complete {
    background: #e4f5e9;
    color: #205b35;
}

.status-pending {
    background: #fff3d8;
    color: #775516;
}

.upload-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.upload-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px;
    border: 1px solid #dce8df;
    border-radius: 10px;
}

.upload-item h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.upload-item .muted {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

.document-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.upload-form {
    gap: 8px;
}

.upload-form input[type="file"] {
    min-height: auto;
    padding: 8px;
    font-size: 13px;
}

.upload-form .button {
    margin-top: 4px;
}

.alert-info {
    border: 1px solid #c9ddec;
    background: #f1f8fc;
    color: #31566d;
}

.admin-card {
    width: min(100%, 1120px);
}

.admin-heading {
    padding: 32px 0 8px;
}

.admin-heading .muted {
    margin-bottom: 12px;
}

.schedule-management {
    padding-top: 20px;
}

.schedule-management h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.schedule-create-form {
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid #dce8df;
    border-radius: 10px;
    background: #f8faf8;
}

.schedule-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.schedule-fields > div {
    display: grid;
    gap: 7px;
}

.schedule-fields label {
    font-size: 13px;
    font-weight: 650;
}

.schedule-fields input,
.schedule-edit-form input {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #cbd9cf;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.schedule-submit {
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    white-space: nowrap;
}

.schedule-edit-form {
    display: grid;
    min-width: 460px;
    grid-template-columns: repeat(3, minmax(100px, 1fr)) auto;
    gap: 6px;
    align-items: end;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid #dce8df;
    border-radius: 10px;
}

.applicants-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.applicants-table th,
.applicants-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e6eee8;
    vertical-align: middle;
}

.applicants-table th {
    background: #f5f8f5;
    color: #43564a;
    font-size: 13px;
    white-space: nowrap;
}

.applicants-table tbody tr:last-child td {
    border-bottom: 0;
}

.verify-form {
    margin: 0;
}

.graduation-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.graduation-form select {
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid #cbd9cf;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.verify-button {
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
}

.empty-state {
    padding: 28px !important;
    color: #68786e;
    text-align: center;
}

.status-panel .button {
    margin-top: 12px;
}

.button-secondary {
    background: #eaf2ec;
    color: #176b45;
}

.button-secondary:hover {
    background: #dcebe0;
}

.app-body {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #f7f6f2;
    color: #25221b;
}

.app-shell {
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid #e8e4d9;
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
}

.app-topbar-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.app-identity:hover {
    color: inherit;
}

.app-logo {
    display: block;
    width: var(--app-logo-size, 52px);
    height: var(--app-logo-size, 52px);
    flex: 0 0 var(--app-logo-size, 52px);
    object-fit: contain;
}

.app-identity-name {
    font-size: 12px;
    line-height: 1.35;
}

.app-identity-name strong {
    color: #896312;
    font-size: 13px;
}

.app-identity-divider {
    width: 1px;
    height: 40px;
    margin: 0 3px;
    background: #ded8c9;
}

.app-wordmark {
    display: block;
    width: min(var(--app-wordmark-width, 132px), 20vw);
    max-width: 20vw;
    height: auto;
}

.app-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.app-account-name {
    max-width: 220px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid #f0ede6;
    scrollbar-width: thin;
}

.app-nav-link {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 15px;
    border-bottom: 3px solid transparent;
    color: #625e54;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    color: #76570f;
}

.app-nav-link.is-active {
    border-bottom-color: #b08a2e;
}

.app-content {
    max-width: 1160px;
    padding-top: 30px;
    padding-bottom: 36px;
}

.app-page-heading {
    margin-bottom: 24px;
}

.app-eyebrow {
    margin: 0 0 6px;
    color: #896312;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.app-page-heading h1 {
    margin: 0 0 6px;
    color: #211f1a;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

.app-page-heading > p:last-child {
    margin: 0;
    color: #716d63;
    font-size: 14px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid #e8e4d9;
    color: #777267;
    font-size: 12px;
}

.app-body .btn-primary,
.app-body .btn-success {
    border-color: #a77c19;
    background-color: #a77c19;
    color: #fff;
}

.app-body .btn-primary:hover,
.app-body .btn-success:hover {
    border-color: #896312;
    background-color: #896312;
}

.app-body .form-control:focus,
.app-body .form-select:focus,
.app-body .form-check-input:focus {
    border-color: #b08a2e;
    box-shadow: 0 0 0 0.2rem rgb(176 138 46 / 17%);
}

.app-body .form-check-input:checked {
    border-color: #896312;
    background-color: #a77c19;
}

.app-body .card {
    border-color: #ece8de !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgb(34 30 20 / 4%) !important;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid #eee6d4;
    border-radius: 14px;
    background: linear-gradient(120deg, #fff 58%, #fbf5e8);
}

.dashboard-hero h2 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-hero p {
    margin: 0;
    color: #716d63;
    font-size: 13px;
}

.dashboard-id {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #e7dcc1;
    border-radius: 8px;
    background: #fff;
    color: #6e5110;
    font-size: 12px;
}

.dashboard-id strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.dashboard-progress {
    padding: 20px;
}

.dashboard-progress-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-progress-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-step {
    display: flex;
    height: 100%;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid #eae6dd;
    border-radius: 9px;
    background: #fff;
}

.dashboard-step-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: #f0eee8;
    color: #777267;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-step.is-complete .dashboard-step-icon {
    background: #e8f1e8;
    color: #37623a;
}

.dashboard-step.is-pending .dashboard-step-icon {
    background: #fbf2df;
    color: #896312;
}

.dashboard-step h3 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-step p {
    margin: 0;
    color: #716d63;
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-result {
    border-left: 4px solid #b08a2e !important;
}

.dashboard-result.is-passed {
    border-left-color: #3c7b43 !important;
}

.dashboard-result.is-failed {
    border-left-color: #b5473c !important;
}

.app-alert-list {
    margin: 0;
    padding-left: 20px;
}

.app-table-wrap {
    overflow-x: auto;
}

.app-table {
    min-width: 620px;
}

.app-table thead th {
    color: #625e54;
    font-size: 12px;
    font-weight: 700;
}

.app-table td {
    vertical-align: middle;
}

.app-body .badge {
    font-weight: 600;
}

.registration-page .alert {
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .app-topbar-inner {
        min-height: 68px;
        gap: 8px;
    }

    .app-identity {
        gap: 6px;
    }

    .app-logo {
        width: min(var(--app-logo-size, 52px), 42px);
        height: min(var(--app-logo-size, 52px), 42px);
        flex-basis: min(var(--app-logo-size, 52px), 42px);
    }

    .app-identity-name {
        font-size: 10px;
    }

    .app-identity-name strong {
        font-size: 11px;
    }

    .app-identity-divider {
        height: 32px;
        margin: 0 1px;
    }

    .app-wordmark {
        width: min(var(--app-wordmark-width, 132px), 64px);
        max-width: 16vw;
    }

    .app-account {
        gap: 6px;
    }

    .app-account-name {
        max-width: 88px;
        font-size: 11px;
    }

    .app-account .btn {
        padding: 5px 7px;
        font-size: 11px;
    }

    .app-content {
        padding-top: 24px;
    }

    .app-footer {
        flex-direction: column;
        gap: 5px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
}

@media (max-width: 390px) {
    .app-account-name {
        display: none;
    }

    .app-wordmark {
        width: 50px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 14px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .page-card,
    .dashboard {
        padding: 22px 18px;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
    }
}

:root {
    color-scheme: light;
    font-family: "Inter", sans-serif;
    color: #4a5568;
    background: #f8f9fa;
    --bs-body-font-family: "Inter", sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-color: #4a5568;
    --bs-body-bg: #f8f9fa;
    --bs-primary: #198754;
    --bs-success: #198754;
    --bs-link-color: #198754;
    --bs-link-hover-color: #146c43;
}

body,
button,
input,
select,
textarea {
    font-family: "Inter", sans-serif;
}

body {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.55;
}

h1,
.app-page-heading h1,
.login-heading h1,
.registration-heading h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.app-body,
.login-page,
.registration-page {
    background-color: #f8f9fa;
    color: #4a5568;
}

.app-content {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.app-page-heading {
    margin-bottom: 24px;
}

.app-page-heading h1,
.login-heading h1,
.registration-heading h1 {
    color: #253247;
}

.app-page-heading > p:last-child,
.app-footer,
.muted,
.form-text {
    color: #718096;
    line-height: 1.55;
}

.app-nav-link:hover,
.app-nav-link.is-active,
.registration-page a,
.login-page a {
    color: #198754;
}

.app-nav-link.is-active {
    border-bottom-color: #198754;
}

.app-notification-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #b08a2e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.app-body .btn-primary,
.app-body .btn-success,
.registration-form .btn,
.login-submit,
.button {
    border-color: #198754;
    background-color: #198754;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-body .btn-primary:hover,
.app-body .btn-success:hover,
.registration-form .btn:hover,
.login-submit:hover,
.button:hover {
    border-color: #146c43;
    background-color: #146c43;
    color: #fff;
}

.app-body .form-control,
.app-body .form-select,
.registration-form .form-control,
.login-input input,
.auth-form input:not([type="checkbox"]):not([type="radio"]),
.auth-form select,
.auth-form textarea {
    min-height: 42px;
    border-radius: 6px;
    color: #4a5568;
    font-size: 14px;
}

.app-body .form-control:focus,
.app-body .form-select:focus,
.app-body .form-check-input:focus,
.registration-form .form-control:focus,
.login-input input:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(25 135 84 / 14%);
}

.app-body .form-check-input:checked,
.registration-confirmation .form-check-input:checked {
    border-color: #198754;
    background-color: #198754;
}

.app-body .card,
.page-card,
.dashboard,
.auth-card,
.login-panel,
.auth-card-register {
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%) !important;
}

.app-body .card-body,
.page-card,
.dashboard {
    padding: 24px;
}

.app-body section.card,
.page-card section,
.dashboard section {
    margin-bottom: 24px;
}

.app-body .form-label,
.registration-form .form-label,
.auth-form label {
    margin-bottom: 6px;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
}

.app-body .form-control,
.app-body .form-select,
.registration-form > div,
.login-form .login-input {
    margin-bottom: 0;
}

.app-body .table {
    --bs-table-hover-bg: #f8f9fa;
    color: #4a5568;
    font-size: 13px;
}

.app-body .table thead th,
.app-table thead th {
    color: #718096;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-body .badge,
.status-badge {
    border-radius: 999px;
    font-weight: 600;
}

.app-body .badge.text-bg-success,
.status-complete {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

.app-body .badge.text-bg-warning,
.status-pending {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.app-body .badge.text-bg-danger,
.dashboard-result.is-failed {
    background-color: #f8d7da !important;
    color: #842029 !important;
}

.alert {
    border-radius: 8px;
    line-height: 1.55;
}

.auth-card,
.login-panel {
    padding: 24px;
}

.auth-card-register {
    padding: 24px;
}

.registration-form {
    gap: 16px;
}

.registration-form .form-control {
    font-size: 14px;
}

.registration-terms ul,
.registration-confirmation .form-check-label {
    font-size: 12px;
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading h1 {
    font-size: 26px;
}

.login-form {
    gap: 16px;
}

.login-heading p {
    color: #718096;
    font-size: 14px;
    line-height: 1.55;
}

.login-submit,
.registration-form .btn {
    min-height: 42px;
    border-radius: 6px;
    font-size: 14px;
}

.app-body .btn,
.login-page .btn,
.registration-page .btn,
.button {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-brand-identity,
.app-identity,
.registration-name {
    color: #253247;
}

.app-identity-name strong {
    color: #198754;
}

.dashboard-hero {
    border-color: #e9ecef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
}

.dashboard-result {
    border-left-color: #ffc107 !important;
}

.dashboard-result.is-passed {
    border-left-color: #198754 !important;
}

.ui-submit-spinner {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.5em;
    vertical-align: -0.1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ui-spin 0.7s linear infinite;
}

.ui-confirm-dialog {
    width: min(440px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #4a5568;
    box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
}

.ui-confirm-dialog::backdrop {
    background: rgb(26 39 52 / 45%);
}

.ui-confirm-card {
    padding: 24px;
}

.ui-confirm-card h2 {
    margin: 0 0 12px;
    color: #253247;
    font-size: 18px;
    font-weight: 700;
}

.ui-confirm-message {
    margin: 0;
    line-height: 1.55;
}

.ui-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

@keyframes ui-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575.98px) {
    .app-body .card-body,
    .page-card,
    .dashboard,
    .auth-card,
    .login-panel,
    .auth-card-register {
        padding: 24px;
    }

    .upload-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .schedule-fields {
        grid-template-columns: 1fr;
    }

    .schedule-submit {
        width: 100%;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tr {
        display: block;
        padding: 8px 14px;
        border-bottom: 1px solid #e6eee8;
    }

    .schedule-table tbody tr:last-child {
        border-bottom: 0;
    }

    .schedule-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        border: 0;
        text-align: right;
    }

    .schedule-table td::before {
        content: attr(data-label);
        color: #53645a;
        font-weight: 650;
        text-align: left;
    }
}



.login-page {
    position: relative;
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    background:
        linear-gradient(135deg, transparent 0 42%, rgb(190 145 38 / 10%) 42.2% 55%, transparent 55.2%),
        linear-gradient(45deg, transparent 0 58%, rgb(18 18 18 / 4%) 58.2% 70%, transparent 70.2%),
        #fff;
}

.login-page::before,
.login-page::after {
    position: fixed;
    z-index: 0;
    width: min(24vw, 330px);
    aspect-ratio: 1;
    content: "";
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg, transparent 0 24px, #171717 24px 48px, transparent 48px 72px, #b08a2e 72px 96px);
    opacity: 0.9;
}

.login-page::before {
    top: -12%;
    right: 7%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 78% 78%, 78% 55%, 55% 55%, 55% 32%, 32% 32%);
}

.login-page::after {
    bottom: -14%;
    left: -9%;
    transform: rotate(180deg);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 78% 78%, 78% 55%, 55% 55%, 55% 32%, 32% 32%);
}

.login-brand {
    position: absolute;
    z-index: 1;
    top: 22px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #24211a;
}

.login-brand-identity {
    display: grid;
    grid-template-columns: var(--auth-logo-size, 64px) auto;
    align-items: center;
    gap: 9px;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.login-brand-emblem {
    display: block;
    width: var(--auth-logo-size, 64px);
    height: var(--auth-logo-size, 64px);
    object-fit: contain;
}

.login-brand-identity:hover {
    color: inherit;
}

.login-brand-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-wordmark {
    display: block;
    width: min(var(--auth-wordmark-width, 250px), 26vw);
    height: auto;
}

.login-panel {
    position: relative;
    z-index: 2;
    display: flex;
    width: clamp(310px, 28vw, 390px);
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 34px clamp(24px, 3vw, 42px);
    background: #fff;
}

.login-content {
    width: 100%;
    max-width: 330px;
}

.login-heading {
    margin-bottom: 24px;
    text-align: center;
}

.login-heading h1 {
    margin: 0 0 5px;
    color: #173c53;
    font-size: 21px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: #7a8792;
    font-size: 12px;
}

.login-form {
    gap: 10px;
}

.login-input {
    position: relative;
}

.login-input svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8b9aaa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    pointer-events: none;
}

.login-input .form-control,
.login-input input {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px 9px 34px;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    background: #f4f7fb;
    color: #243746;
    font: inherit;
    font-size: 13px;
}

.login-field .form-label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
}

.auth-form.login-form .login-input input {
    padding: 9px 12px 9px 44px;
    font-size: 14px;
}

.login-input input::placeholder {
    color: #92a0b0;
}

.login-input input:focus {
    border-color: #b08a2e;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(176 138 46 / 16%);
}

.login-submit {
    min-height: 40px;
    margin-top: 5px;
    border: 0;
    border-radius: 5px;
    background: #a77c19;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #896312;
    color: #fff;
}

.login-panel .form-footer {
    margin-top: 16px;
    font-size: 12px;
}

.login-panel .alert {
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .login-page {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 112px 16px 28px;
    }

    .login-page::before {
        right: -14%;
    }

    .login-brand {
        top: 18px;
        left: 16px;
        max-width: calc(100% - 32px);
        gap: 10px;
    }

    .login-brand-identity {
        grid-template-columns: min(var(--auth-logo-size, 64px), 16vw) auto;
        gap: 7px;
        font-size: 9px;
    }

    .login-brand-emblem {
        width: min(var(--auth-logo-size, 64px), 16vw);
        height: min(var(--auth-logo-size, 64px), 16vw);
    }

    .login-wordmark {
        width: min(var(--auth-wordmark-width, 250px), 32vw);
    }

    .login-panel {
        width: min(100%, 430px);
        min-height: auto;
        margin: 0;
        padding: 32px 26px;
        border: 1px solid #e8ece8;
        border-radius: 10px;
        box-shadow: 0 12px 35px rgb(24 50 41 / 10%);
    }
}

/* Shared institutional design system */
:root {
    --brand-green: #198754;
    --brand-green-dark: #146c43;
    --ink-strong: #243247;
    --ink-muted: #718096;
    --surface-page: #f6f8f7;
    --surface-border: #e5e9e7;
    --surface-shadow: 0 2px 10px rgb(22 43 33 / 6%);
}

body.app-body,
body.login-page,
body.registration-page {
    background-color: var(--surface-page);
    color: #4a5568;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.app-body .text-secondary,
.app-body .form-text {
    color: var(--ink-muted) !important;
}

.app-page-heading {
    margin-bottom: 26px;
}

.app-page-heading h1 {
    color: var(--ink-strong);
    font-size: clamp(24px, 2.4vw, 28px);
    letter-spacing: -0.025em;
}

.app-page-heading > p:last-child {
    max-width: 720px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.app-eyebrow {
    color: var(--brand-green);
    letter-spacing: 0.08em;
}

.app-body .card,
.page-card,
.dashboard {
    border: 1px solid var(--surface-border) !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--surface-shadow) !important;
}

.app-body .card-body,
.page-card,
.dashboard {
    padding: 24px;
}

.app-body .card h2,
.app-body .card h3 {
    color: var(--ink-strong);
}

.app-body .btn,
.registration-page .btn,
.login-page .btn,
.button {
    min-height: 40px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.app-body .btn-success,
.app-body .btn-primary,
.registration-form .btn,
.login-submit,
.button {
    border-color: var(--brand-green);
    background-color: var(--brand-green);
    color: #fff;
}

.app-body .btn-success:hover,
.app-body .btn-primary:hover,
.registration-form .btn:hover,
.login-submit:hover,
.login-submit:focus-visible,
.button:hover {
    border-color: var(--brand-green-dark);
    background-color: var(--brand-green-dark);
    color: #fff;
}

.app-body .btn-outline-success {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.app-body .btn-outline-success:hover {
    border-color: var(--brand-green-dark);
    background: var(--brand-green-dark);
    color: #fff;
}

.app-body .form-control,
.app-body .form-select,
.registration-page .form-control,
.login-page .form-control {
    min-height: 42px;
    border-color: #d7dfdb;
    border-radius: 6px;
    background-color: #fff;
    color: #344054;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.app-body .form-control:focus,
.app-body .form-select:focus,
.app-body .form-check-input:focus,
.registration-page .form-control:focus,
.login-page .form-control:focus {
    border-color: var(--brand-green);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(25 135 84 / 13%);
}

.app-body .form-label,
.registration-page .form-label,
.login-page .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.app-body .table {
    --bs-table-hover-bg: #f7faf8;
    color: #4a5568;
    font-size: 13px;
}

.app-body .table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom-color: #e5e9e7;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.app-body .table td {
    border-color: #edf0ef;
    line-height: 1.5;
}

.app-body .badge,
.status-badge {
    border-radius: 999px;
    font-weight: 600;
}

.app-body .alert,
.registration-page .alert,
.login-page .alert {
    border-radius: 7px;
    line-height: 1.55;
}

.app-topbar {
    border-bottom-color: #e4e9e6;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 1px 3px rgb(16 24 40 / 3%);
}

.app-topbar-inner {
    min-height: 72px;
}

.app-identity-name {
    color: #536171;
    font-size: 12px;
    line-height: 1.35;
}

.app-identity-name strong {
    color: var(--brand-green-dark);
    font-size: 13px;
}

.app-identity-divider {
    background: #e1e7e3;
}

.app-account-name {
    color: #344054;
    font-size: 12px;
}

.app-nav {
    gap: 3px;
    border-top-color: #edf0ef;
}

.app-nav-link {
    min-height: 46px;
    padding: 0 14px;
    border-bottom-width: 2px;
    color: #536171;
    font-size: 13px;
    font-weight: 550;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    color: var(--brand-green-dark);
}

.app-nav-link.is-active {
    border-bottom-color: var(--brand-green);
}

.app-menu-toggle {
    display: none;
    width: 40px;
    height: 38px;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #dce5df;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-green-dark);
}

.app-menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.app-menu-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgb(25 135 84 / 14%);
}

.app-footer {
    margin-top: 38px;
    padding-top: 18px;
    border-top-color: #e4e9e6;
    color: var(--ink-muted);
    font-size: 12px;
}

.dashboard-hero {
    border-color: #e2e9e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--surface-shadow);
}

.dashboard-hero h2 {
    color: var(--ink-strong);
    font-size: 21px;
    letter-spacing: -0.015em;
}

.dashboard-hero p {
    color: var(--ink-muted);
}

.dashboard-id {
    border-color: #d8e8de;
    color: var(--brand-green-dark);
}

.dashboard-step {
    border-color: #e5e9e7;
    border-radius: 7px;
}

.dashboard-step.is-pending .dashboard-step-icon {
    background: #fff4d6;
    color: #8a6413;
}

/* Authentication pages */
body.login-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow-x: hidden;
    padding: 108px 24px 36px;
    background: #f4f7f5;
}

.login-page::before,
.login-page::after,
.registration-page::before,
.registration-page::after {
    position: fixed;
    z-index: 0;
    width: min(34vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgb(25 135 84 / 7%), rgb(25 135 84 / 0%) 70%);
    clip-path: none;
    opacity: 1;
    pointer-events: none;
}

.login-page::before,
.registration-page::before {
    top: -190px;
    right: -120px;
}

.login-page::after,
.registration-page::after {
    bottom: -240px;
    left: -150px;
    transform: none;
}

.login-brand {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 82px;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid #e6ebe8;
    background: rgb(255 255 255 / 92%);
}

.login-brand-identity {
    grid-template-columns: min(var(--auth-logo-size, 64px), 56px) auto;
    gap: 10px;
    color: #344054;
    font-size: 12px;
    line-height: 1.4;
}

.login-brand-emblem {
    width: min(var(--auth-logo-size, 64px), 56px);
    height: min(var(--auth-logo-size, 64px), 56px);
}

.login-wordmark {
    width: min(var(--auth-wordmark-width, 250px), 210px);
    max-height: 58px;
    object-fit: contain;
}

.login-panel {
    width: min(100%, 470px);
    min-height: auto;
    margin: auto;
    padding: 38px 40px;
    border: 1px solid #e3e9e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(24 50 41 / 7%);
}

.login-content {
    max-width: 360px;
}

.login-heading {
    margin-bottom: 28px;
    text-align: left;
}

.login-heading h1 {
    margin-bottom: 7px;
    color: var(--ink-strong);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-heading p {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-form {
    gap: 18px;
}

.login-field .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
}

.login-input svg {
    left: 13px;
    stroke: #738176;
}

.auth-form.login-form .login-input input {
    min-height: 44px;
    padding: 10px 12px 10px 42px;
    border-color: #d7dfdb;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 14px;
}

.login-input input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgb(25 135 84 / 13%);
}

.login-submit {
    min-height: 44px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
}

.login-panel .form-footer {
    margin-top: 20px;
    color: var(--ink-muted);
    font-size: 13px;
}

.login-page a,
.registration-page a {
    color: var(--brand-green-dark);
}

.login-page a:hover,
.registration-page a:hover {
    color: #105637;
}

body.registration-page {
    min-height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: hidden;
    padding: 26px 16px 40px;
    background: #f4f7f5;
}

.registration-wrap {
    width: min(100%, 610px);
    margin: auto;
}

.registration-brand {
    grid-template-columns: min(var(--auth-logo-size, 64px), 58px) minmax(100px, 1fr) minmax(0, min(var(--auth-wordmark-width, 250px), 220px));
    gap: 10px 14px;
    margin-bottom: 18px;
}

.registration-emblem {
    width: min(var(--auth-logo-size, 64px), 58px);
    height: min(var(--auth-logo-size, 64px), 58px);
}

.registration-name {
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.registration-wordmark {
    max-height: 56px;
    object-fit: contain;
}

.auth-card-register {
    width: 100%;
    padding: 28px 32px;
    border: 1px solid #e3e9e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(24 50 41 / 6%);
}

.registration-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    text-align: left;
}

.registration-heading h1 {
    color: var(--ink-strong);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.registration-heading p {
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 14px;
}

.registration-form {
    gap: 16px;
}

.registration-form .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
}

.registration-form .form-control {
    min-height: 42px;
    padding: 9px 12px;
    border-color: #d7dfdb;
    border-radius: 6px;
    font-size: 14px;
}

.registration-terms {
    padding: 14px 16px;
    border: 1px solid #dce8e1;
    border-radius: 7px;
    background: #f8fbf9;
    color: #536171;
}

.registration-terms h2 {
    color: var(--brand-green-dark);
    font-size: 13px;
}

.registration-terms ul {
    font-size: 12px;
    line-height: 1.55;
}

.registration-confirmation .form-check-label {
    color: #536171;
    font-size: 12px;
    line-height: 1.55;
}

.registration-confirmation .form-check-input:checked {
    border-color: var(--brand-green);
    background-color: var(--brand-green);
}

.registration-form .btn {
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

.registration-form .registration-photo-button {
    min-height: 36px;
    margin-top: 7px;
    border-color: #d7dfdb;
    background: #f7faf8;
    color: #344054;
    font-size: 13px;
}

.registration-form .registration-photo-button:hover {
    border-color: #b7cfc0;
    background: #edf7f1;
    color: var(--brand-green-dark);
}

.auth-card-register .form-footer {
    margin-top: 18px;
    color: var(--ink-muted);
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .app-topbar-inner {
        min-height: 66px;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .app-identity {
        flex: 1 1 auto;
        gap: 7px;
    }

    .app-logo {
        width: min(var(--app-logo-size, 52px), 44px);
        height: min(var(--app-logo-size, 52px), 44px);
        flex-basis: min(var(--app-logo-size, 52px), 44px);
    }

    .app-identity-name {
        font-size: 10px;
    }

    .app-identity-name strong {
        font-size: 11px;
    }

    .app-identity-divider {
        height: 30px;
        margin: 0;
    }

    .app-wordmark {
        width: min(var(--app-wordmark-width, 132px), 22vw);
        max-width: 22vw;
    }

    .app-menu-toggle {
        display: flex;
        order: 2;
    }

    .app-account {
        order: 3;
        gap: 8px;
    }

    .app-account-name {
        display: none;
    }

    .app-account .btn {
        min-height: 36px;
        padding: 6px 10px;
    }

    .app-topbar > .container {
        position: relative;
    }

    .app-nav {
        display: none;
        position: absolute;
        z-index: 30;
        top: 0;
        right: 12px;
        left: 12px;
        max-height: min(70vh, 420px);
        flex-direction: column;
        gap: 2px;
        overflow-y: auto;
        padding: 8px;
        border: 1px solid #e1e8e4;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 12px 28px rgb(16 24 40 / 13%);
    }

    .app-nav-open .app-nav {
        display: flex;
    }

    .app-nav-link {
        min-height: 42px;
        padding: 0 12px;
        border: 0;
        border-radius: 5px;
    }

    .app-nav-link.is-active {
        background: #edf7f1;
    }

    .app-content {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .app-body .card-body,
    .page-card,
    .dashboard {
        padding: 20px;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-top: 28px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-brand {
        min-height: 72px;
        gap: 10px;
        padding: 10px 16px;
    }

    .login-brand-identity {
        grid-template-columns: min(48px, 13vw) auto;
        gap: 7px;
        font-size: 10px;
    }

    .login-brand-emblem {
        width: min(48px, 13vw);
        height: min(48px, 13vw);
    }

    .login-wordmark {
        width: min(145px, 34vw);
    }

    .login-panel {
        padding: 30px 26px;
    }
}

@media (max-width: 575.98px) {
    body.login-page {
        gap: 18px;
        padding: 92px 14px 24px;
    }

    .login-panel {
        width: min(100%, 440px);
        padding: 26px 22px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    body.registration-page {
        padding: 18px 12px 28px;
    }

    .registration-wrap {
        width: min(100%, 500px);
    }

    .registration-brand {
        grid-template-columns: min(46px, 13vw) minmax(78px, 1fr) minmax(0, min(140px, 35vw));
        gap: 7px;
    }

    .registration-emblem {
        width: min(46px, 13vw);
        height: min(46px, 13vw);
    }

    .registration-name {
        font-size: 10px;
    }

    .auth-card-register {
        padding: 22px 18px;
    }

    .app-body .card-body,
    .page-card,
    .dashboard {
        padding: 18px;
    }
}

body.app-body,
body.login-page,
body.registration-page {
    background-color: #f7f8f5;
    background-image:
        radial-gradient(ellipse at 92% 8%, rgb(176 138 46 / 6%), transparent 30%),
        radial-gradient(ellipse at 8% 88%, rgb(25 135 84 / 5%), transparent 34%),
        repeating-conic-gradient(
            from 22.5deg at 50% 50%,
            transparent 0deg 44deg,
            rgb(20 108 67 / 2.2%) 44deg 45deg,
            transparent 45deg 89deg,
            rgb(176 138 46 / 2.2%) 89deg 90deg,
            transparent 90deg 134deg,
            rgb(20 108 67 / 2.2%) 134deg 135deg,
            transparent 135deg 179deg,
            rgb(176 138 46 / 2.2%) 179deg 180deg,
            transparent 180deg 224deg,
            rgb(20 108 67 / 2.2%) 224deg 225deg,
            transparent 225deg 269deg,
            rgb(176 138 46 / 2.2%) 269deg 270deg,
            transparent 270deg 314deg,
            rgb(20 108 67 / 2.2%) 314deg 315deg,
            transparent 315deg 359deg,
            rgb(176 138 46 / 2.2%) 359deg 360deg
        );
    background-size: auto, auto, 112px 112px;
    background-attachment: fixed;
}

body.app-body.has-site-background,
body.login-page.has-site-background,
body.registration-page.has-site-background {
    background-image:
        linear-gradient(rgb(247 248 245 / 84%), rgb(247 248 245 / 84%)),
        var(--site-background-image);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.notification-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e1ebe5;
    border-radius: 10px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 3px 12px rgb(22 43 33 / 4%);
}

.login-qr {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8eeea;
    text-align: center;
}

.login-qr h2 {
    margin: 0;
    color: #34483d;
    font-size: 13px;
    font-weight: 700;
}

.login-qr > p {
    margin: 0;
    color: #77847c;
    font-size: 11px;
}

.login-qr-code {
    display: grid;
    min-width: 168px;
    min-height: 168px;
    place-items: center;
    padding: 8px;
    border: 1px solid #e3e9e5;
    border-radius: 8px;
    background: #fff;
}

.login-qr-code img {
    display: block;
    max-width: 100%;
}

.login-qr-link {
    font-size: 12px;
    font-weight: 600;
}

.login-qr .login-qr-error {
    color: #9c3e36;
}

.notification-overview > div {
    display: grid;
    min-width: 150px;
    gap: 2px;
    padding: 0 16px;
    border-right: 1px solid #e8eeea;
}

.notification-overview > div:first-child {
    padding-left: 0;
}

.notification-overview > div:nth-child(2) {
    border-right: 0;
}

.notification-overview-label {
    color: #75847b;
    font-size: 11px;
    font-weight: 600;
}

.notification-overview > div strong {
    color: #263b30;
    font-size: 22px;
    line-height: 1.15;
}

.notification-list {
    overflow: hidden;
    border: 1px solid #e2e9e5;
    border-radius: 10px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 3px 12px rgb(22 43 33 / 4%);
}

.notification-list-heading {
    padding: 18px 20px;
    border-bottom: 1px solid #e9efeb;
}

.notification-list-heading h2 {
    margin: 0 0 3px;
    color: #26352d;
    font-size: 16px;
    font-weight: 700;
}

.notification-list-heading p {
    margin: 0;
    color: #78857e;
    font-size: 12px;
}

.notification-items {
    padding: 0 20px;
}

.notification-item {
    display: flex;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid #edf1ee;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item-indicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
}

.notification-item.is-unread .notification-item-indicator {
    background: #198754;
    box-shadow: 0 0 0 4px #e8f5ee;
}

.notification-item-content {
    min-width: 0;
    flex: 1;
}

.notification-item-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.notification-item-heading h3 {
    margin: 0;
    color: #293a31;
    font-size: 14px;
    font-weight: 700;
}

.notification-unread-label {
    padding: 3px 7px;
    border-radius: 999px;
    background: #e7f4ec;
    color: #18764b;
    font-size: 10px;
    font-weight: 700;
}

.notification-item-content > p {
    margin: 5px 0 7px;
    color: #5e6d64;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.notification-item-content time {
    color: #8a958f;
    font-size: 11px;
}

.notification-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.notification-item-actions a,
.notification-read-button,
.notification-read-label {
    padding: 0;
    border: 0;
    background: transparent;
    color: #18764b;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.notification-item-actions a:hover,
.notification-read-button:hover {
    color: #105638;
    text-decoration: underline;
}

.notification-read-label {
    color: #8a958f;
    font-weight: 500;
}

.notification-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 48px 20px;
    color: #748179;
    text-align: center;
}

.notification-empty-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 14px;
    background: #eff6f1;
    color: #438360;
}

.notification-empty-icon svg {
    width: 22px;
    height: 22px;
}

.notification-empty strong {
    color: #33463b;
    font-size: 14px;
}

.notification-empty > span:last-child {
    font-size: 12px;
}

.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px;
    border-top: 1px solid #e9efeb;
    color: #78857e;
    font-size: 12px;
}

.notification-pagination a {
    color: #18764b;
    font-weight: 650;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .notification-overview {
        gap: 8px;
        padding: 13px;
    }

    .notification-overview > div {
        min-width: 110px;
        padding: 0 10px;
    }

    .notification-overview .btn {
        width: 100%;
    }

    .notification-list-heading {
        padding: 15px;
    }

    .notification-items {
        padding: 0 15px;
    }

    .notification-item {
        gap: 10px;
    }
}

.app-topbar,
.login-brand {
    background-color: rgb(255 255 255 / 94%);
    backdrop-filter: blur(12px);
}

.login-page::before,
.login-page::after,
.registration-page::before,
.registration-page::after {
    width: min(38vw, 460px);
    background:
        radial-gradient(circle, rgb(25 135 84 / 5%), transparent 68%),
        repeating-linear-gradient(45deg, transparent 0 39px, rgb(20 108 67 / 2%) 39px 40px, transparent 40px 80px),
        repeating-linear-gradient(-45deg, transparent 0 39px, rgb(176 138 46 / 2%) 39px 40px, transparent 40px 80px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 1040px);
    grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
    overflow: hidden;
    border: 1px solid #e1e9e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 55px rgb(24 50 41 / 10%);
}

.login-welcome {
    position: relative;
    display: flex;
    min-height: 570px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px);
    background:
        radial-gradient(circle at 100% 0, rgb(255 255 255 / 13%), transparent 34%),
        linear-gradient(145deg, #145d3c, #198754 72%, #247d51);
    color: #fff;
}

.login-welcome::after {
    position: absolute;
    right: -82px;
    bottom: -96px;
    width: 280px;
    height: 280px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgb(255 255 255 / 3%), 0 0 0 58px rgb(255 255 255 / 3%);
    content: "";
    pointer-events: none;
}

.login-welcome-kicker,
.login-heading .login-eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.login-welcome-kicker {
    color: #d7eddf;
}

.login-slide-show {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(150px, 20vw, 210px);
    flex: 0 0 auto;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 12px;
    background: rgb(7 52 34 / 28%);
    box-shadow: 0 10px 24px rgb(4 38 24 / 14%);
}

.login-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 450ms ease;
}

.login-slide.is-active {
    opacity: 1;
}

.login-slide-controls {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.login-slide-arrow,
.login-slide-dot {
    pointer-events: auto;
}

.login-slide-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 50%;
    background: rgb(15 54 38 / 62%);
    color: #fff;
    font-size: 23px;
    line-height: 1;
}

.login-slide-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 20px;
    background: rgb(15 54 38 / 48%);
}

.login-slide-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 62%);
}

.login-slide-dot.is-active {
    width: 18px;
    border-radius: 6px;
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .login-slide {
        transition: none;
    }
}

.login-slide-arrow:focus-visible,
.login-slide-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.login-welcome h1 {
    max-width: 430px;
    margin: 0 0 14px;
    color: #fff;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(30px, 3.25vw, 40px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.login-welcome-line,
.login-welcome-name {
    display: block;
}

.login-welcome-support {
    display: block;
    max-width: 390px;
    margin-top: 10px;
    color: rgb(255 255 255 / 88%);
    font-family: "Inter", sans-serif;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.45;
}

.login-welcome-name {
    width: fit-content;
    margin-top: 8px;
    padding: 3px 12px 5px;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
    color: #fff3cc;
    font-size: .78em;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.login-welcome-copy {
    max-width: 420px;
    margin: 0;
    color: rgb(255 255 255 / 82%);
    font-size: 14px;
    line-height: 1.7;
}

.login-welcome-steps {
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.login-welcome-step {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 8px;
    background: rgb(255 255 255 / 7%);
}

.login-welcome-step > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.login-welcome-step p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.login-welcome-step small {
    display: block;
    margin-top: 2px;
    color: rgb(255 255 255 / 76%);
    font-size: 11px;
    font-weight: 400;
}

.login-panel {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: clamp(34px, 4vw, 52px);
    border: 0;
    border-left: 1px solid #edf1ee;
    border-radius: 0;
    box-shadow: none;
}

.login-content {
    max-width: 380px;
}

.login-eyebrow {
    margin-bottom: 12px;
    color: #80621f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.login-heading h2 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: clamp(23px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.login-heading .login-greeting {
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e2ebe5;
    color: #244b38;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.6;
}

.login-greeting span {
    display: block;
}

.login-heading p {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-heading .login-intro {
    max-width: 350px;
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
}

.login-qr {
    margin-top: 18px;
    padding-top: 16px;
}

.login-qr-code {
    min-width: 148px;
    min-height: 148px;
}

@media (max-width: 991.98px) {
    body.login-page {
        padding: 104px 20px 28px;
    }

    .login-layout {
        width: min(100%, 520px);
        grid-template-columns: minmax(0, 1fr);
        border-radius: 12px;
    }

    .login-welcome {
        min-height: 0;
        padding: 24px 28px;
    }

    .login-slide-show {
        height: clamp(140px, 28vw, 190px);
        margin-bottom: 18px;
    }

    .login-welcome h1 {
        max-width: 460px;
        margin-bottom: 8px;
        font-size: clamp(25px, 4vw, 32px);
    }

    .login-welcome-support {
        max-width: 430px;
        font-size: 16px;
    }

    .login-welcome-copy {
        font-size: 13px;
    }

    .login-welcome-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .login-welcome-step {
        gap: 8px;
        padding: 10px;
    }

    .login-welcome-step > span {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 10px;
    }

    .login-welcome-step p {
        font-size: 11px;
    }

    .login-welcome-step small {
        font-size: 10px;
    }

    .login-panel {
        padding: 28px;
        border-top: 1px solid #edf1ee;
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    body.login-page {
        gap: 18px;
        padding: 92px 14px 22px;
    }

    .login-brand {
        min-height: 72px;
        padding: 8px 14px;
    }

    .login-brand-identity {
        grid-template-columns: min(44px, var(--auth-logo-size, 64px)) auto;
        gap: 8px;
        font-size: 10px;
    }

    .login-brand-emblem {
        width: min(44px, var(--auth-logo-size, 64px));
        height: min(44px, var(--auth-logo-size, 64px));
    }

    .login-wordmark {
        width: min(34vw, 150px);
    }

    .login-layout {
        border-radius: 10px;
    }

    .login-welcome {
        padding: 20px;
    }

    .login-slide-show {
        height: 130px;
        margin-bottom: 16px;
        border-radius: 9px;
    }

    .login-welcome-kicker {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .login-welcome h1 {
        font-size: 22px;
    }

    .login-welcome-support {
        font-size: 14px;
    }

    .login-welcome-name {
        margin-top: 6px;
        padding-inline: 9px;
    }

    .login-welcome-copy {
        font-size: 12px;
    }

    .login-welcome-steps {
        gap: 6px;
        margin-top: 14px;
    }

    .login-welcome-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 9px 8px;
    }

    .login-welcome-step small {
        display: none;
    }

    .login-panel {
        padding: 24px 20px;
    }

    .login-heading .login-greeting {
        font-size: 16px;
        line-height: 1.55;
    }
}
