    /* ========== Reset / Box sizing ========== */
*, *::before, *::after { box-sizing: border-box; }

/* ========== Page layout ========== */
.registration-page {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #2c3e50;
}

.registration-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.modal-title-1 {
    text-align: center;
    margin-bottom: 20px;
}
.modal-title-1 h2 { margin: 0; font-size: 28px; font-weight: 700; }

/* ========== Form wrapper ========== */
.form-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.authform {
    width: 100%;
    max-width: 600px; /* основная ширина формы на десктопе */
}

.authform .row-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center; /* для центрирования блоков одинаковой ширины */
}

/* ========== Inputs ========== */
.authform .input--field {
    width: 600px;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.authform .input--field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.08);
}

/* ========== Select ========== */
.authform .select--field {
    width: 600px;
    max-width: 100%;
    font-size: 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.authform .select--field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.08);
}

/* ========== Agree / Checkbox ========== */
.agree-terms {
    width: 800px;
    max-width: 100%;
    font-size: 14px;
    color: #333;
}

/* Кликабельный label-контейнер: grid - чекбокс слева, текст справа */
.agree-terms .custom-checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: start;
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.agree-terms input[type="checkbox"] {
    margin: 4px 0 0 0;
    transform: scale(1.12);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agree-terms .agree-text {
    line-height: 1.4;
    color: #444;
    word-break: break-word;
    margin: 12px 0 0 20px ;
}

/* ========== Submit ========== */
/* Контейнер кнопки той же ширины, что и инпуты */
.authform .submit {
    width: 600px;
    max-width: 100%;
}

.authform .submit--field {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.authform .submit--field:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.18);
}

/* ========== Helpers ========== */
.form-row { width: 100%; } /* для совместимости с Symfony form_row */

.footer {
    margin-top: 28px;
    background: #2c3e50;
    color: #fff;
    padding: 20px 30px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .authform .input--field,
    .authform .submit,
    .agree-terms {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .authform .row-1 { align-items: stretch; }
    .authform .input--field { font-size: 15px; padding: 10px 12px; }
    .authform .submit--field { font-size: 15px; padding: 10px 12px; }
}

/* ========== Back link ========== */
.back-to-login {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.back-to-login a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-login a:hover {
    text-decoration: underline;
}
