/* =========================================================
   index.php
   ========================================================= */

.home-page {
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.home-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

/* Шапка */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 42px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e3f0;
}

.home-org {
    flex: 1;
    text-align: left;
}

.home-org-name {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
    margin-bottom: 12px;
}

.home-org-address,
.home-org-contacts {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #344054;
}

.home-org-contacts a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.home-org-contacts a:hover {
    text-decoration: underline;
}

.home-logo-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
}

.home-logo {
    display: block;
    width: 100px;
    height: auto;
}

/* Основная область */

.home-main {
    display: flex;
    justify-content: center;
}

.home-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    padding: 44px 34px 42px;
    text-align: center;
}

.home-card h1 {
    max-width: 620px;
    margin: 0 auto 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
}

.home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.home-action-btn {
    min-width: 170px;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #ffffff;
    color: #0057a6;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    padding: 9px 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(0, 87, 166, 0.06);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-action-btn:hover,
.home-action-btn:focus {
    border-color: #0057a6;
    background: #0057a6;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 87, 166, 0.16);
}

.home-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.16);
}

@media (max-width: 767.98px) {
    .home-layout {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .home-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .home-logo {
        width: 78px;
    }

    .home-org-name {
        font-size: 24px;
    }

    .home-card {
        padding: 30px 18px;
        border-radius: 18px;
    }

	.home-card h1 {
		font-size: 22px;
		margin-bottom: 24px;
	}

    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-action-btn {
        width: 100%;
    }
}

/* Декоративное окно входа администратора */

.home-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(4px);
}

.home-login-overlay.is-open {
    display: flex;
}

.home-login-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    padding: 28px 26px 24px;
}

.home-login-close {
    position: absolute;
    right: 14px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.home-login-close:hover {
    color: #111827;
}

.home-login-title {
    margin-bottom: 6px;
    color: #0057a6;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.home-login-subtitle {
    margin-bottom: 22px;
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.home-login-form {
    display: grid;
    gap: 7px;
    margin-bottom: 22px;
}

.home-login-label {
    margin-top: 5px;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.home-login-control {
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 7px 10px;
    color: #111827;
    font-size: 13px;
    background: #ffffff;
}

.home-login-control:focus {
    outline: none;
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.home-login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.home-login-ok,
.home-login-cancel {
    min-width: 120px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.home-login-ok {
    border: 1px solid #0057a6;
    background: #0057a6;
    color: #ffffff;
}

.home-login-ok:hover {
    border-color: #004987;
    background: #004987;
}

.home-login-cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #344054;
}

.home-login-cancel:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .home-login-modal {
        padding: 26px 18px 20px;
    }

    .home-login-actions {
        flex-direction: column;
    }

    .home-login-ok,
    .home-login-cancel {
        width: 100%;
    }
}


/* =========================================================
   admin/registrations.php
   ========================================================= */

.admin-registrations-page {
    color: #111827;
    font-size: 13px;
}

.admin-registrations-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-registrations-btn {
    font-size: 12px;
    line-height: 1.15;
    border-radius: 6px;
    padding: 5px 9px;
}

.admin-registrations-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
}

.admin-registrations-summary-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-registrations-summary strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.admin-registrations-download-btn {
    margin-left: 6px;
    font-size: 12px;
    line-height: 1.15;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}

.admin-registrations-sort-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-registrations-sort-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.admin-registrations-sort {
    width: 190px;
    height: 31px;
    font-size: 13px;
}

.admin-registrations-table {
    table-layout: fixed;
    font-size: 13px;
}

.admin-registrations-table th {
    background: #dbeafe;
    color: #111827;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    border-color: #b6c7e3;
}

.admin-registrations-table td {
    vertical-align: middle;
    padding: 9px 8px;
    font-size: 13px;
    border-color: #d6deea;
}

.admin-registrations-table th:nth-child(1),
.admin-registrations-table td:nth-child(1) {
    width: 105px;
}

.admin-registrations-table th:nth-child(2),
.admin-registrations-table td:nth-child(2) {
    width: 335px;
}

.admin-registrations-table th:nth-child(3),
.admin-registrations-table td:nth-child(3) {
    width: 195px;
}

.admin-registrations-table th:nth-child(4),
.admin-registrations-table td:nth-child(4) {
    width: 170px;
}

.admin-registrations-table th:nth-child(5),
.admin-registrations-table td:nth-child(5) {
    width: 160px;
}

.admin-registrations-table th:nth-child(6),
.admin-registrations-table td:nth-child(6) {
    width: 165px;
}

.admin-registrations-table th:nth-child(7),
.admin-registrations-table td:nth-child(7) {
    width: 270px;
}

.admin-registrations-table th:nth-child(8),
.admin-registrations-table td:nth-child(8) {
    width: 200px;
}

.admin-registrations-table th:nth-child(9),
.admin-registrations-table td:nth-child(9) {
    width: 130px;
}

.admin-registrations-table th:nth-child(10),
.admin-registrations-table td:nth-child(10) {
    width: 122px;
}

.admin-registration-date {
    line-height: 1.35;
    white-space: normal;
}

.admin-registration-event-title {
    line-height: 1.35;
    word-break: break-word;
}

.admin-registration-event-period {
    margin-top: 4px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.admin-registration-badge {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 7px;
}

.admin-registration-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.admin-registration-action-btn {
    width: 96px;
    min-height: 27px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .admin-registrations-summary-line {
        align-items: flex-start;
    }

    .admin-registrations-download-btn {
        margin-left: 0;
    }

    .admin-registrations-sort-panel {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .admin-registrations-sort {
        width: 100%;
    }
	
	.admin-registrations-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
	}

	.admin-registrations-nav-btn {
		font-size: 13px;
		line-height: 1.2;
		border-radius: 6px;
		padding: 6px 10px;
	}
}


/* =========================================================
   admin/index.php
   ========================================================= */

.index-events-page {
    color: #111827;
    font-size: 13px;
}

.index-events-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.index-events-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
}

.index-events-summary strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.index-events-btn,
.index-events-control,
.index-events-table,
.index-events-table th,
.index-events-table td,
.index-events-badge,
.index-events-progress,
.index-event-action-btn {
    font-size: 13px;
}

.index-events-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

.index-events-btn {
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

/* Фильтр */

.index-events-filter {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.index-events-filter-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.index-events-filter-select-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.index-events-filter-label {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.index-events-control {
    height: 31px;
}

/* Кастомный dropdown периода */

.index-events-period-dropdown {
    position: relative;
    width: 230px;
}

.index-events-period-dropdown summary {
    height: 31px;
    padding: 6px 34px 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.index-events-period-dropdown summary::-webkit-details-marker {
    display: none;
}

.index-events-period-dropdown summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #4b5563;
    border-bottom: 1.5px solid #4b5563;
    transform: translateY(-65%) rotate(45deg);
}

.index-events-period-dropdown[open] summary {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.index-events-period-dropdown[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.index-events-period-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    z-index: 50;
}

.index-events-period-group {
    padding: 7px 8px 4px;
    color: #0057a6;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.index-events-period-option {
    display: block;
    padding: 7px 9px;
    border-radius: 6px;
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.index-events-period-option:hover {
    background: #f3f7fc;
    color: #0057a6;
}

.index-events-period-option.active {
    background: #0057a6;
    color: #ffffff;
    font-weight: 600;
}

/* Таблица */

.index-events-table {
    table-layout: fixed;
}

.index-events-table th {
    background: #dbeafe;
    color: #111827;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-weight: 700;
    border-color: #b6c7e3;
}

.index-events-table td {
    vertical-align: middle;
    padding: 8px;
    border-color: #d6deea;
}

.index-events-table .col-period {
    width: 150px;
}

.index-events-table .col-code {
    width: 145px;
}

.index-events-table .col-title {
    width: 31%;
}

.index-events-table .col-small {
    width: 76px;
}

.index-events-table .col-progress {
    width: 185px;
}

.index-events-table .col-status {
    width: 105px;
}

.index-events-table .col-actions {
    width: 285px;
}

.index-events-table .cell-nowrap {
    white-space: nowrap;
}

.index-event-title-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.index-event-period {
    white-space: nowrap;
    line-height: 1.35;
}

.index-events-progress {
    height: 18px;
}

.index-events-badge {
    padding: 5px 8px;
    border-radius: 7px;
}

/* Действия */

.index-event-actions {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-items: center;
    justify-items: center;
}

.index-event-action-btn {
    width: 100%;
    min-height: 30px;
    padding: 5px 6px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Строки состояния */

.row-closed > td {
    background-color: #f8d7da !important;
}

.row-limit > td {
    background-color: #dff5e1 !important;
}

/* Адаптив */

@media (max-width: 991.98px) {
    .index-events-filter-inner {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .index-events-filter-select-wrap {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .index-events-filter-label {
        text-align: center;
    }

    .index-events-period-dropdown {
        width: 100%;
    }

    .index-events-table .col-actions {
        width: 285px;
    }
}


/* =========================================================
   event.php
   ========================================================= */

.event-page {
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.event-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

/* Шапка */

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e3f0;
}

.event-org {
    flex: 1;
    text-align: left;
}

.event-org-name {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
    margin-bottom: 12px;
}

.event-org-address,
.event-org-contacts {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #344054;
}

.event-org-contacts a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.event-org-contacts a:hover {
    text-decoration: underline;
}

.event-logo-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
}

.event-logo {
    display: block;
    width: 100px;
    height: auto;
}

/* Основная область */

.event-main {
    width: 100%;
}

.event-page-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #0057a6;
}

.event-content-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    padding: 34px 34px 32px;
}

/* Закрытая регистрация */

.event-closed-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.event-closed-message {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 25px;
    line-height: 1.45;
    font-weight: 700;
    color: #f0ad00;
}

/* Информация о мероприятии */

.event-summary {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 26px;
}

.event-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f7fc;
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

.event-code strong {
    color: #344054;
    font-weight: 700;
}

.event-title {
    max-width: 780px;
    margin: 0 auto 18px;
    font-size: 25px;
    line-height: 1.38;
    font-weight: 700;
    color: #101828;
}

.event-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    color: #475467;
    font-size: 14px;
    line-height: 1.45;
}

.event-meta span {
    position: relative;
}

.event-meta span + span::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b9c6d6;
    transform: translateY(-50%);
}

.event-meta strong {
    color: #172033;
    font-weight: 700;
}

.event-status-open {
    color: #157347 !important;
}

.event-comment {
    max-width: 620px;
    margin: 22px auto 0;
    padding: 14px 18px 15px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
    color: #344054;
    line-height: 1.6;
    text-align: left;
}

/* Наличие свободных мест на странице event.php */

.event-availability {
    margin-top: 12px;
    text-align: center;
}

.event-availability-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.event-availability-open {
    background: #198754;
    color: #ffffff;
}

.event-availability-reserve {
    background: #f0ad00;
    color: #111827;
}

.event-availability-unlimited {
    background: #f3f7fc;
    color: #344054;
    border: 1px solid #dbe7f5;
}

/* Раскрытие анкеты */

.event-registration-details {
    margin-top: 8px;
    border-top: 1px solid #e5ebf3;
    padding-top: 26px;
}

.event-register-button {
    width: fit-content;
    min-width: 190px;
    margin: 0 auto;
    padding: 8px 16px;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #0057a6;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.event-register-button:hover {
    background: #004987;
    border-color: #004987;
    color: #ffffff;
}

.event-register-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.16);
}

.event-register-button::-webkit-details-marker {
    display: none;
}

.event-registration-details[open] > .event-register-button {
    display: none;
}

/* Анкета */

.event-form-panel {
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    padding: 24px;
}

.event-form-intro {
    margin-bottom: 22px;
}

.event-form-intro h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #111827;
}

.event-form-intro p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.event-required-mark {
    color: #dc3545;
    font-weight: 700;
}

.event-fieldset {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
}

.event-fieldset:last-of-type {
    margin-bottom: 18px;
}

.event-fieldset legend {
    width: auto;
    float: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #0057a6;
}

.event-registration-form .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #344054;
}

.event-control {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #101828;
    font-size: 13px;
    background-color: #ffffff;
}

.event-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

#custom_country_block {
    display: none;
}

/* Проверки формы */

.event-form-errors {
    margin-bottom: 18px;
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.event-form-errors strong {
    display: block;
    margin-bottom: 5px;
}

.event-form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.event-control.is-invalid,
.event-consent-checkbox.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.12) !important;
}

/* Согласие */

.event-consent {
    margin-top: 4px;
    font-size: 13px;
    color: #475467;
}

.event-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-consent-checkbox {
    flex: 0 0 auto;
    margin-top: 3px;
}

.event-consent-content {
    line-height: 1.5;
}

.event-consent-label {
    display: inline;
    color: #344054;
}

.event-consent-details {
    display: inline;
    margin-left: 6px;
}

.event-consent-details summary {
    display: inline;
    cursor: pointer;
    color: #0057a6;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    list-style: none;
}

.event-consent-details summary::-webkit-details-marker {
    display: none;
}

.event-consent-text {
    display: block;
    margin-top: 12px;
    padding: 14px 16px;
    border-left: 3px solid #0057a6;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
}

/* Отправка */

.event-submit-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
    margin-top: 26px;
}

.event-submit-btn {
    min-width: 170px;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #0057a6;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.event-submit-btn:hover {
    background: #004987;
    border-color: #004987;
    color: #ffffff;
}

.event-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.16);
}

/* Адаптив */

@media (max-width: 767.98px) {
    .event-layout {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .event-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .event-logo {
        width: 78px;
    }

    .event-org-name {
        font-size: 24px;
    }

    .event-page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .event-content-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .event-closed-card {
        min-height: 130px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .event-closed-message {
        font-size: 20px;
        line-height: 1.4;
    }

    .event-title {
        font-size: 21px;
    }

    .event-meta {
        display: block;
    }

    .event-meta span {
        display: block;
        margin-bottom: 6px;
    }

    .event-meta span + span::before {
        display: none;
    }

    .event-comment {
        max-width: 100%;
        padding: 13px 15px;
    }

    .event-register-button,
    .event-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .event-form-panel {
        padding: 18px;
    }

    .event-form-intro h2 {
        font-size: 21px;
    }

    .event-form-errors {
        padding: 11px 13px;
    }

    .event-consent-row {
        gap: 8px;
    }
	
	.event-availability-badge {
    width: 100%;
    max-width: 420px;
	}
}


/* =========================================================
   admin/event_create.php
   ========================================================= */

.event-create-page {
    color: #111827;
    font-size: 13px;
}

.event-create-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.event-create-subtitle {
    font-size: 15px;
    line-height: 1.35;
    color: #4b5563;
}

.event-create-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

.event-create-errors {
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.event-create-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.event-create-required-note {
    font-size: 13px;
    color: #6b7280;
}

.event-create-required {
    color: #dc3545;
    font-weight: 700;
}

.event-create-section {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
}

.event-create-section:last-of-type {
    margin-bottom: 18px;
}

.event-create-section legend {
    width: auto;
    float: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #0057a6;
}

.event-create-card .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #344054;
}

.event-create-card .form-text {
    font-size: 12px;
    color: #6b7280;
}

.event-create-control {
    font-size: 13px;
    border-radius: 9px;
    border-color: #cbd5e1;
}

.event-create-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.event-create-textarea {
    min-height: 100px;
    resize: vertical;
}

.event-create-hint {
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.event-create-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.event-create-submit-btn,
.event-create-cancel-btn {
    min-width: 170px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .event-create-page {
        margin-top: 18px !important;
    }

    .event-create-title {
        font-size: 23px;
    }

    .event-create-card {
        padding: 18px;
    }

    .event-create-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .event-create-submit-btn,
    .event-create-cancel-btn {
        width: 100%;
    }
}


/* =========================================================
   admin/event_edit.php
   ========================================================= */

.event-edit-page {
    color: #111827;
    font-size: 13px;
}

.event-edit-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.event-edit-subtitle {
    font-size: 15px;
    line-height: 1.35;
    color: #4b5563;
}

.event-edit-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-edit-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}

.event-edit-errors {
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.event-edit-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.event-edit-required-note {
    font-size: 13px;
    color: #6b7280;
}

.event-edit-required {
    color: #dc3545;
    font-weight: 700;
}

.event-edit-section {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
}

.event-edit-section:last-of-type {
    margin-bottom: 18px;
}

.event-edit-section legend {
    width: auto;
    float: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #0057a6;
}

.event-edit-card .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #344054;
}

.event-edit-card .form-text {
    font-size: 12px;
    color: #6b7280;
}

.event-edit-control {
    font-size: 13px;
    border-radius: 9px;
    border-color: #cbd5e1;
}

.event-edit-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.event-edit-textarea {
    min-height: 100px;
    resize: vertical;
}

.event-edit-hint {
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.event-edit-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.event-edit-submit-btn,
.event-edit-cancel-btn {
    min-width: 170px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .event-edit-page {
        margin-top: 18px !important;
    }

    .event-edit-title {
        font-size: 23px;
    }

    .event-edit-top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .event-edit-card {
        padding: 18px;
    }

    .event-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .event-edit-submit-btn,
    .event-edit-cancel-btn {
        width: 100%;
    }
}


/* =========================================================
   admin/registration_edit.php
   ========================================================= */

.registration-edit-page {
    color: #111827;
    font-size: 13px;
}

.registration-edit-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.registration-edit-subtitle {
    font-size: 15px;
    line-height: 1.35;
    color: #4b5563;
}

.registration-edit-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-edit-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}

.registration-edit-info {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.registration-edit-info div + div {
    margin-top: 3px;
}

.registration-edit-info span {
    color: #6b7280;
}

.registration-edit-info strong {
    color: #111827;
    font-weight: 700;
}

.registration-edit-errors {
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.registration-edit-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.registration-edit-required-note {
    font-size: 13px;
    color: #6b7280;
}

.registration-edit-required {
    color: #dc3545;
    font-weight: 700;
}

.registration-edit-section {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
}

.registration-edit-section:last-of-type {
    margin-bottom: 18px;
}

.registration-edit-section legend {
    width: auto;
    float: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #0057a6;
}

.registration-edit-card .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #344054;
}

.registration-edit-control {
    font-size: 13px;
    border-radius: 9px;
    border-color: #cbd5e1;
}

.registration-edit-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.registration-edit-hint {
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.registration-edit-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.registration-edit-submit-btn,
.registration-edit-cancel-btn {
    min-width: 170px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .registration-edit-page {
        margin-top: 18px !important;
    }

    .registration-edit-title {
        font-size: 23px;
    }

    .registration-edit-top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .registration-edit-card,
    .registration-edit-info {
        padding: 18px;
    }

    .registration-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .registration-edit-submit-btn,
    .registration-edit-cancel-btn {
        width: 100%;
    }
}


/* =========================================================
   methodist/index.php
   ========================================================= */

.methodist-events-page {
    color: #111827;
    font-size: 13px;
}

.methodist-events-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.methodist-events-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
}

.methodist-events-summary strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.methodist-events-btn,
.methodist-events-control,
.methodist-events-table,
.methodist-events-table th,
.methodist-events-table td,
.methodist-events-badge,
.methodist-events-progress,
.methodist-event-action-btn {
    font-size: 13px;
}

.methodist-events-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

.methodist-events-btn {
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

/* Фильтр */

.methodist-events-filter {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.methodist-events-filter-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.methodist-events-filter-select-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.methodist-events-filter-label {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.methodist-events-control {
    height: 31px;
}

/* Кастомный dropdown периода */

.methodist-events-period-dropdown {
    position: relative;
    width: 230px;
}

.methodist-events-period-dropdown summary {
    height: 31px;
    padding: 6px 34px 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.methodist-events-period-dropdown summary::-webkit-details-marker {
    display: none;
}

.methodist-events-period-dropdown summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #4b5563;
    border-bottom: 1.5px solid #4b5563;
    transform: translateY(-65%) rotate(45deg);
}

.methodist-events-period-dropdown[open] summary {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.methodist-events-period-dropdown[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.methodist-events-period-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    z-index: 50;
}

.methodist-events-period-group {
    padding: 7px 8px 4px;
    color: #0057a6;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.methodist-events-period-option {
    display: block;
    padding: 7px 9px;
    border-radius: 6px;
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.methodist-events-period-option:hover {
    background: #f3f7fc;
    color: #0057a6;
}

.methodist-events-period-option.active {
    background: #0057a6;
    color: #ffffff;
    font-weight: 600;
}

/* Таблица */

.methodist-events-table {
    table-layout: fixed;
}

.methodist-events-table th {
    background: #dbeafe;
    color: #111827;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-weight: 700;
    border-color: #b6c7e3;
}

.methodist-events-table td {
    vertical-align: middle;
    padding: 8px;
    border-color: #d6deea;
}

.methodist-events-table .col-period {
    width: 150px;
}

.methodist-events-table .col-code {
    width: 145px;
}

.methodist-events-table .col-title {
    width: 34%;
}

.methodist-events-table .col-small {
    width: 76px;
}

.methodist-events-table .col-progress {
    width: 185px;
}

.methodist-events-table .col-status {
    width: 105px;
}

.methodist-events-table .col-actions {
    width: 190px;
}

.methodist-events-table .cell-nowrap {
    white-space: nowrap;
}

.methodist-event-title-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.methodist-event-period {
    white-space: nowrap;
    line-height: 1.35;
}

.methodist-events-progress {
    height: 18px;
}

.methodist-events-badge {
    padding: 5px 8px;
    border-radius: 7px;
}

/* Действия */

.methodist-event-actions {
    width: 100%;
    max-width: 175px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: center;
    justify-items: center;
}

.methodist-event-action-btn {
    width: 100%;
    min-height: 28px;
    padding: 5px 6px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Строки состояния */

.row-closed > td {
    background-color: #f8d7da !important;
}

.row-limit > td {
    background-color: #dff5e1 !important;
}

/* Адаптив */

@media (max-width: 991.98px) {
    .methodist-events-filter-inner {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .methodist-events-filter-select-wrap {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .methodist-events-filter-label {
        text-align: center;
    }

    .methodist-events-period-dropdown {
        width: 100%;
    }

    .methodist-events-table .col-actions {
        width: 190px;
    }
}

/* =========================================================
   methodist/registrations.php
   ========================================================= */

.methodist-registrations-page {
    color: #111827;
    font-size: 13px;
}

.methodist-registrations-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.methodist-registrations-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.methodist-registrations-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
}

.methodist-registrations-btn {
    font-size: 12px;
    line-height: 1.15;
    border-radius: 6px;
    padding: 5px 9px;
}

.methodist-registrations-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
}

.methodist-registrations-summary-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.methodist-registrations-summary strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.methodist-registrations-download-btn {
    margin-left: 6px;
    font-size: 12px;
    line-height: 1.15;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}

.methodist-registrations-sort-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.methodist-registrations-sort-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.methodist-registrations-sort {
    width: 190px;
    height: 31px;
    font-size: 13px;
}

.methodist-registrations-table {
    table-layout: fixed;
    font-size: 13px;
}

.methodist-registrations-table th {
    background: #dbeafe;
    color: #111827;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    border-color: #b6c7e3;
}

.methodist-registrations-table td {
    vertical-align: middle;
    padding: 9px 8px;
    font-size: 13px;
    border-color: #d6deea;
}

.methodist-registrations-table th:nth-child(1),
.methodist-registrations-table td:nth-child(1) {
    width: 105px;
}

.methodist-registrations-table th:nth-child(2),
.methodist-registrations-table td:nth-child(2) {
    width: 335px;
}

.methodist-registrations-table th:nth-child(3),
.methodist-registrations-table td:nth-child(3) {
    width: 195px;
}

.methodist-registrations-table th:nth-child(4),
.methodist-registrations-table td:nth-child(4) {
    width: 170px;
}

.methodist-registrations-table th:nth-child(5),
.methodist-registrations-table td:nth-child(5) {
    width: 160px;
}

.methodist-registrations-table th:nth-child(6),
.methodist-registrations-table td:nth-child(6) {
    width: 165px;
}

.methodist-registrations-table th:nth-child(7),
.methodist-registrations-table td:nth-child(7) {
    width: 270px;
}

.methodist-registrations-table th:nth-child(8),
.methodist-registrations-table td:nth-child(8) {
    width: 200px;
}

.methodist-registrations-table th:nth-child(9),
.methodist-registrations-table td:nth-child(9) {
    width: 130px;
}

.methodist-registrations-table th:nth-child(10),
.methodist-registrations-table td:nth-child(10) {
    width: 122px;
}

.methodist-registration-date {
    line-height: 1.35;
    white-space: normal;
}

.methodist-registration-event-title {
    line-height: 1.35;
    word-break: break-word;
}

.methodist-registration-event-period {
    margin-top: 4px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.methodist-registration-badge {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 7px;
}

.methodist-registration-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.methodist-registration-action-btn {
    width: 96px;
    min-height: 27px;
    text-align: center;
    white-space: nowrap;
}

/* Общие цвета строк используются из админки */

.row-closed > td {
    background-color: #f8d7da !important;
}

.row-limit > td {
    background-color: #dff5e1 !important;
}

@media (max-width: 991.98px) {
    .methodist-events-filter-actions {
        justify-content: center;
    }

    .methodist-events-filter-actions .methodist-events-btn {
        flex: 1;
    }

    .methodist-events-filter-select-wrap {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .methodist-events-filter-label {
        text-align: center;
    }

    .methodist-events-table .col-actions {
        width: 190px;
    }

    .methodist-registrations-summary-line {
        align-items: flex-start;
    }

    .methodist-registrations-download-btn {
        margin-left: 0;
    }

    .methodist-registrations-sort-panel {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .methodist-registrations-sort {
        width: 100%;
    }
}


/* =========================================================
   methodist/registration_edit.php
   ========================================================= */

.methodist-registration-edit-page {
    color: #111827;
    font-size: 13px;
}

.methodist-registration-edit-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.methodist-registration-edit-subtitle {
    font-size: 15px;
    line-height: 1.35;
    color: #4b5563;
}

.methodist-registration-edit-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.methodist-registration-edit-nav-btn {
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}

.methodist-registration-edit-info {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.methodist-registration-edit-info div + div {
    margin-top: 3px;
}

.methodist-registration-edit-info span {
    color: #6b7280;
}

.methodist-registration-edit-info strong {
    color: #111827;
    font-weight: 700;
}

.methodist-registration-edit-errors {
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.methodist-registration-edit-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.methodist-registration-edit-required-note {
    font-size: 13px;
    color: #6b7280;
}

.methodist-registration-edit-required {
    color: #dc3545;
    font-weight: 700;
}

.methodist-registration-edit-section {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
}

.methodist-registration-edit-section:last-of-type {
    margin-bottom: 18px;
}

.methodist-registration-edit-section legend {
    width: auto;
    float: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #0057a6;
}

.methodist-registration-edit-card .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #344054;
}

.methodist-registration-edit-control {
    font-size: 13px;
    border-radius: 9px;
    border-color: #cbd5e1;
}

.methodist-registration-edit-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.methodist-registration-edit-hint {
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.methodist-registration-edit-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.methodist-registration-edit-submit-btn,
.methodist-registration-edit-cancel-btn {
    min-width: 170px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .methodist-registration-edit-page {
        margin-top: 18px !important;
    }

    .methodist-registration-edit-title {
        font-size: 23px;
    }

    .methodist-registration-edit-top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .methodist-registration-edit-card,
    .methodist-registration-edit-info {
        padding: 18px;
    }

    .methodist-registration-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .methodist-registration-edit-submit-btn,
    .methodist-registration-edit-cancel-btn {
        width: 100%;
    }
}


/* =========================================================
   Общие элементы
   ========================================================= */

.btn-word-report {
    color: #2B579A;
    border-color: #2B579A;
    background-color: #ffffff;
}

.btn-word-report:hover,
.btn-word-report:focus {
    color: #ffffff;
    border-color: #2B579A;
    background-color: #2B579A;
}

.btn-word-report:focus {
    box-shadow: 0 0 0 0.18rem rgba(43, 87, 154, 0.18);
}

.btn-word-report:active {
    color: #ffffff !important;
    border-color: #23477e !important;
    background-color: #23477e !important;
}

.btn-word-report:disabled {
    color: #2B579A;
    border-color: #2B579A;
    background-color: #ffffff;
    opacity: 0.65;
}


/* =========================================================
   submit.php
   ========================================================= */

.submit-page {
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.submit-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

/* Шапка */

.submit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e3f0;
}

.submit-org {
    flex: 1;
    text-align: left;
}

.submit-org-name {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
    margin-bottom: 12px;
}

.submit-org-address,
.submit-org-contacts {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #344054;
}

.submit-org-contacts a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.submit-org-contacts a:hover {
    text-decoration: underline;
}

.submit-logo-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
}

.submit-logo {
    display: block;
    width: 100px;
    height: auto;
}

/* Основная область */

.submit-main {
    width: 100%;
}

.submit-page-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #0057a6;
}

.submit-content-card {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    padding: 34px;
}

.submit-result {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.submit-result-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.submit-result-success .submit-result-icon {
    background: #198754;
}

.submit-result-error .submit-result-icon {
    background: #f0ad00;
}

.submit-result h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.submit-result p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #344054;
}

/* Информация о мероприятии */

.submit-event-info {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
    text-align: center;
}

.submit-event-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f7fc;
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

.submit-event-code strong {
    color: #344054;
    font-weight: 700;
}

.submit-event-title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #101828;
}

.submit-event-period {
    font-size: 14px;
    line-height: 1.45;
    color: #475467;
}

.submit-event-period strong {
    color: #172033;
    font-weight: 700;
}

.submit-event-status {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #475467;
}

.submit-status-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
}

.submit-status-confirmed {
    background: #198754;
    color: #ffffff;
}

.submit-status-reserve {
    background: #f0ad00;
    color: #111827;
}

/* Ошибки */

.submit-errors {
    max-width: 680px;
    margin: 22px auto 0;
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.submit-errors strong {
    display: block;
    margin-bottom: 5px;
}

.submit-errors ul {
    margin: 0;
    padding-left: 18px;
}

.submit-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.submit-return-btn {
    min-width: 170px;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #0057a6;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.submit-return-btn:hover {
    background: #004987;
    border-color: #004987;
    color: #ffffff;
}

.submit-return-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.16);
}

/* Адаптив */

@media (max-width: 767.98px) {
    .submit-layout {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .submit-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .submit-logo {
        width: 78px;
    }

    .submit-org-name {
        font-size: 24px;
    }

    .submit-page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .submit-content-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .submit-result-icon {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .submit-result h2 {
        font-size: 21px;
    }

    .submit-result p {
        font-size: 14px;
    }

    .submit-event-info {
        padding: 15px;
    }

    .submit-event-title {
        font-size: 16px;
    }

    .submit-return-btn {
        width: 100%;
    }
}


/* =========================================================
   admin/login.php
   ========================================================= */

.admin-login-page {
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.admin-login-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

/* Шапка */

.admin-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 42px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e3f0;
}

.admin-login-org {
    flex: 1;
    text-align: left;
}

.admin-login-org-name {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
    margin-bottom: 12px;
}

.admin-login-org-address,
.admin-login-org-contacts {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #344054;
}

.admin-login-org-contacts a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.admin-login-org-contacts a:hover {
    text-decoration: underline;
}

.admin-login-logo-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
}

.admin-login-logo {
    display: block;
    width: 100px;
    height: auto;
}

/* Форма входа */

.admin-login-main {
    display: flex;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    padding: 34px;
}

.admin-login-card h1 {
    margin: 0 0 8px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0057a6;
}

.admin-login-card p {
    margin: 0 0 24px;
    text-align: center;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.admin-login-error {
    margin-bottom: 18px;
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.admin-login-form .form-label {
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.admin-login-control {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #101828;
    font-size: 13px;
    background-color: #ffffff;
}

.admin-login-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.admin-login-submit {
    width: 100%;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #0057a6;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 9px 16px;
    font-weight: 700;
}

.admin-login-submit:hover,
.admin-login-submit:focus {
    border-color: #004987;
    background: #004987;
    color: #ffffff;
}

.admin-login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.admin-login-footer a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 767.98px) {
    .admin-login-layout {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .admin-login-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

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

    .admin-login-org-name {
        font-size: 24px;
    }

    .admin-login-card {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .admin-login-card h1 {
        font-size: 21px;
    }
		
	.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
	}
}

/* =========================================================
   Адаптивные таблицы
   ========================================================= */

@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: visible;
    }

    .js-responsive-table {
        border: 0;
    }

    .js-responsive-table thead {
        display: none;
    }

    .js-responsive-table tbody {
        display: block;
    }

    .js-responsive-table tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #dbe7f5;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .js-responsive-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        border: 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 10px 12px !important;
        font-size: 13px;
        line-height: 1.45;
        text-align: right;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .js-responsive-table td:last-child {
        border-bottom: 0 !important;
    }

    .js-responsive-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: #0057a6;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 800;
        text-align: left;
    }

    .js-responsive-table td > * {
        max-width: 58%;
    }

    .js-responsive-table td .btn,
    .js-responsive-table td a.btn {
        width: 100%;
        max-width: 210px;
        margin-left: auto;
    }

    .js-responsive-table td .d-flex,
    .js-responsive-table td .btn-group,
    .js-responsive-table td .index-events-actions,
    .js-responsive-table td .methodist-events-actions,
    .js-responsive-table td .admin-registrations-actions,
    .js-responsive-table td .methodist-registrations-actions {
        width: 100%;
        max-width: 210px;
        margin-left: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}

/* =========================================================
   Мобильный вид таблиц
   ========================================================= */

@media (max-width: 767.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .index-events-page,
    .admin-registrations-page,
    .methodist-events-page,
    .methodist-registrations-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 12px;
        padding-right: 12px;
    }

    .index-events-page > .d-flex.justify-content-between,
    .admin-registrations-page > .d-flex.justify-content-between,
    .methodist-events-page > .d-flex.justify-content-between,
    .methodist-registrations-page > .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .admin-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .admin-header-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .index-events-filter-inner,
    .methodist-events-filter-inner,
    .admin-registrations-filter-inner,
    .methodist-registrations-filter-inner {
        width: 100%;
    }

    .index-events-filter-select-wrap,
    .methodist-events-filter-select-wrap,
    .admin-registrations-filter-select-wrap,
    .methodist-registrations-filter-select-wrap,
    .index-events-period-dropdown,
    .methodist-events-period-dropdown {
        width: 100%;
        max-width: 100%;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: visible !important;
    }

    .js-responsive-table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
        background: transparent !important;
        table-layout: fixed;
    }

    .js-responsive-table thead {
        display: none !important;
    }

    .js-responsive-table tbody,
    .js-responsive-table tr,
    .js-responsive-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .js-responsive-table tr {
        margin-bottom: 14px;
        border: 1px solid #dbe7f5;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .js-responsive-table td {
        border: 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 11px 12px !important;
        color: #172033;
        font-size: 13px;
        line-height: 1.45;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere;
    }

    .js-responsive-table td:last-child {
        border-bottom: 0 !important;
    }

    .js-responsive-table td::before {
        content: attr(data-label);
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 6px;
        color: #0057a6;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 800;
        text-align: left;
    }

    .js-responsive-table td[colspan]::before {
        content: none;
    }

    .js-responsive-table td > * {
        width: 100%;
        max-width: 100% !important;
    }

    .js-responsive-table .cell-nowrap,
    .js-responsive-table .text-center {
        text-align: left !important;
        white-space: normal !important;
    }

    .js-responsive-table .badge {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .js-responsive-table .progress {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .js-responsive-table td .btn,
    .js-responsive-table td a.btn {
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        white-space: normal;
    }

    .js-responsive-table td .index-event-actions,
    .js-responsive-table td .index-events-actions,
    .js-responsive-table td .methodist-event-actions,
    .js-responsive-table td .methodist-events-actions,
    .js-responsive-table td .admin-registration-actions,
    .js-responsive-table td .admin-registrations-actions,
    .js-responsive-table td .methodist-registration-actions,
    .js-responsive-table td .methodist-registrations-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 100% !important;
        margin: 0;
    }

    .js-responsive-table td .index-event-actions .btn,
    .js-responsive-table td .index-events-actions .btn,
    .js-responsive-table td .methodist-event-actions .btn,
    .js-responsive-table td .methodist-events-actions .btn,
    .js-responsive-table td .admin-registration-actions .btn,
    .js-responsive-table td .admin-registrations-actions .btn,
    .js-responsive-table td .methodist-registration-actions .btn,
    .js-responsive-table td .methodist-registrations-actions .btn {
        width: 100%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* =========================================================
   methodist/login.php
   ========================================================= */

.methodist-login-page {
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.methodist-login-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

.methodist-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 42px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e3f0;
}

.methodist-login-org {
    flex: 1;
    text-align: left;
}

.methodist-login-org-name {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: #0057a6;
    margin-bottom: 12px;
}

.methodist-login-org-address,
.methodist-login-org-contacts {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #344054;
}

.methodist-login-org-contacts a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.methodist-login-org-contacts a:hover {
    text-decoration: underline;
}

.methodist-login-logo-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
}

.methodist-login-logo {
    display: block;
    width: 100px;
    height: auto;
}

.methodist-login-main {
    display: flex;
    justify-content: center;
}

.methodist-login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    padding: 34px;
}

.methodist-login-card h1 {
    margin: 0 0 8px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0057a6;
}

.methodist-login-card p {
    margin: 0 0 24px;
    text-align: center;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.methodist-login-error {
    margin-bottom: 18px;
    border: 1px solid #f3b4b4;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: #fff5f5;
    color: #7f1d1d;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.methodist-login-form .form-label {
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.methodist-login-control {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #101828;
    font-size: 13px;
    background-color: #ffffff;
}

.methodist-login-control:focus {
    border-color: #0057a6;
    box-shadow: 0 0 0 0.18rem rgba(0, 87, 166, 0.12);
}

.methodist-login-submit {
    width: 100%;
    border: 1px solid #0057a6;
    border-radius: 8px;
    background: #0057a6;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 9px 16px;
    font-weight: 700;
}

.methodist-login-submit:hover,
.methodist-login-submit:focus {
    border-color: #004987;
    background: #004987;
    color: #ffffff;
}

.methodist-login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.methodist-login-footer a {
    color: #0057a6;
    text-decoration: none;
    font-weight: 600;
}

.methodist-login-footer a:hover {
    text-decoration: underline;
}

.methodist-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767.98px) {
    .methodist-login-layout {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .methodist-login-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .methodist-login-logo {
        width: 78px;
    }

    .methodist-login-org-name {
        font-size: 24px;
    }

    .methodist-login-card {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .methodist-login-card h1 {
        font-size: 21px;
    }

    .methodist-header-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .methodist-header-actions .btn {
        width: 100%;
    }
}