:root {
    --brand-blue: #0f4c81;
    --brand-blue-strong: #0a3763;
    --brand-red: #e21d2f;
    --ink: #172033;
    --muted: #667085;
    --line: #d8e0eb;
    --surface: #ffffff;
    --page: #eef4fa;
}

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(15, 76, 129, 0.12), transparent 34rem),
        var(--page);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
    min-height: 100vh;
    padding: 48px 0;
    display: flex;
    align-items: center;
}

.visitor-shell {
    align-items: flex-start;
}

.visitor-container {
    max-width: 680px;
}

.visitor-layout {
    width: 100%;
}

.brand-logo {
    width: 136px;
    height: auto;
}

.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
    padding: 32px;
}

.registration-panel {
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 39, 75, 0.14);
}

.form-brand {
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.form-heading {
    margin-bottom: 26px;
    text-align: center;
}

.form-label {
    color: #243047;
    font-weight: 600;
}

.form-control {
    min-height: 48px;
    border-color: #cfd9e6;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.98rem;
    padding: 0.72rem 0.9rem;
}

.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.22rem rgba(15, 76, 129, 0.15);
}

.btn-primary {
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue-strong);
    --bs-btn-hover-border-color: var(--brand-blue-strong);
    --bs-btn-active-bg: #062b4f;
    --bs-btn-active-border-color: #062b4f;
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
}

.text-primary {
    color: var(--brand-blue) !important;
}

.alert {
    border-radius: 10px;
}

textarea.form-control {
    min-height: 118px;
    resize: vertical;
}

.form-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    text-align: center;
}

.admin-shell {
    align-items: flex-start;
}

.admin-container {
    max-width: 1240px;
}

.admin-panel {
    border-radius: 18px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.admin-title-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-logo {
    width: 98px;
    height: auto;
    flex: 0 0 auto;
}

.admin-login-brand {
    display: flex;
    justify-content: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.admin-logo--login {
    width: 124px;
}

.admin-login-heading {
    margin-bottom: 26px;
    text-align: center;
}

.admin-logout {
    min-height: 42px;
    border-radius: 10px;
    padding-inline: 18px;
    font-weight: 700;
}

.admin-table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
}

.admin-table {
    min-width: 980px;
}

.admin-table thead th {
    background: #f8fbff;
    color: #344054;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody td {
    color: #243047;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    vertical-align: top;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table a {
    color: var(--brand-blue);
    font-weight: 650;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

.pagination {
    gap: 6px;
}

.page-link {
    border-radius: 9px;
    color: var(--brand-blue);
    font-weight: 650;
}

.active > .page-link,
.page-link.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

@media (max-width: 575.98px) {
    body {
        background: var(--page);
    }

    .page-shell {
        padding: 18px 0;
        align-items: flex-start;
    }

    .visitor-layout {
        gap: 16px;
    }

    .form-panel {
        padding: 22px;
    }

    .registration-panel {
        border-radius: 14px;
    }

    .form-heading {
        margin-bottom: 22px;
    }

    .brand-logo {
        width: 116px;
    }

    .form-contact {
        display: grid;
        gap: 6px;
    }

    .admin-toolbar,
    .admin-title-group {
        align-items: flex-start;
    }

    .admin-toolbar {
        flex-direction: column;
        margin-bottom: 22px;
    }

    .admin-title-group {
        gap: 14px;
    }

    .admin-logo {
        width: 82px;
    }

    .admin-logo--login {
        width: 116px;
    }

    .admin-logout {
        width: 100%;
    }
}
