    /* ========== 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: 600px;
    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: 30px;
}
.modal-title-1 h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.modal-title-1 h3 {
    margin: 10px 0 0 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
}

/* ========== Form wrapper ========== */
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.authform {
    width: 100%;
    max-width: 400px; /* Увеличиваем максимальную ширину формы */
}

.authform .row-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

/* ========== Inputs ========== */
.authform .input--field {
    width: 100%;
    padding: 16px 20px; /* Увеличиваем padding */
    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);
}

/* ========== Submit button container ========== */
.submit-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Центрируем кнопку */
    margin-top: 20px;
}

.authform .submit--field {
    width: 200px; /* Фиксированная ширина для кнопки */
    padding: 16px 20px;
    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);
}

/* ========== 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;
}

/* ========== Form row styling ========== */
.form-row {
    width: 100%;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .registration-container {
        padding: 30px 20px;
    }

    .authform {
        max-width: 100%;
    }

    .authform .input--field {
        font-size: 15px;
        padding: 14px 16px;
    }

    .authform .submit--field {
        width: 180px;
        font-size: 15px;
        padding: 14px 16px;
    }
}
