body {
    background-color: #193D50;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
    font-family: 'Geologica', sans-serif;
}

.banner {
    background-color: #ffffff;
    width: 30%;
    height: 100vh;
    border-radius: 0 30px 30px 0;
    border: 3px solid #BDBDBD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.reg {
    width: 70%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}

.logo {
    width: 45%;
    margin-bottom: 24px;
}

.banner h1, .banner p {
    color: #193D50;
    text-align: center;
    margin: 12px 0;
}

.banner p {
    font-size: 30px;
    font-weight: 100;
}

.reg h1 {
    margin-bottom: 36px;
    font-size: 48px;
}

form {
    width: 90%;
    max-width: 960px;
}

.form-columns {
    display: flex;
    gap: 150px;
}

.left-column, .right-column {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: light;
    font-size: 20px;
}

input, select {
    width: 100%;
    padding: 14.4px;
    border-radius: 10px;
    border: 2px solid #ccc;
    margin-bottom: 18px;
    box-sizing: border-box;
    font-size: 16.8px;
}

.avatar-upload {
    margin-bottom: 24px;
}

.drop-area {
    width: 224px;
    height: 224px;
    border: 2px dashed #ffffff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    margin-top: 24px;
}

.drop-area:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.drop-text {
    font-size: 20px;
    color: #ffffff;
    padding: 10px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    align-items: center;
    height: 48px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.radio-group label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.radio-group label:hover::before {
    border-color: #e8e8e8;
    background-color: rgba(255, 255, 255, 0.1);
}

.radio-group label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #193D50;
    transition: transform 0.2s ease;
}

.radio-group label:has(input[type="radio"]:checked)::before {
    background-color: #ffffff;
    border-color: #ffffff;
}

.radio-group label:has(input[type="radio"]:checked)::after {
    transform: translateY(-50%) scale(1);
}

.hint {
    font-size: 14.4px;
    color: #ffffff;
    margin-top: -10px;
    margin-bottom: 18px;
    font-style: italic;
}

.reg-btn {
    padding: 16px;
    background-color: #ffffff;
    color: #193D50;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    width: 240px;
    font-size: 19.2px;
    margin-top: 25px;
    transition: all 0.2s ease;
}

.reg-btn:hover {
    background-color: #e8e8e8;
}

.reg-btn:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(25, 61, 80, 0.6);
    cursor: not-allowed;
    pointer-events: none;
}

h1 {
    font-size: 48px;
    font-weight: 700;
}

.password-input {
    position: relative;
    width: 100%;
}

.password-input input {
    padding-right: 40px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-78%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.toggle-password img {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    margin-bottom: 16px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

select option{
    font-family: 'Geologica', sans-serif;
    color: #193D50;
}

.select-wrapper select {
    appearance: none;
    width: 100%;
    padding: 14px 36px 14px 14px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: white;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-90%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    text-align: center;
}

.error-message.visible {
    display: block;
}

.form-group {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.drop-area {
    position: relative;
    overflow: hidden;
}

.drop-area .preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Блок подвала формы */
.form-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Стили чекбокса */
.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    max-width: 700px;
    user-select: none;
}

.privacy-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.custom-checkbox {
    min-width: 22px;
    min-height: 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    box-sizing: border-box;
    margin-top: 2px;
}

.privacy-label:hover .custom-checkbox {
    border-color: #e8e8e8;
    background-color: rgba(255, 255, 255, 0.1);
}

.privacy-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #ffffff;
    border-color: #ffffff;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #193D50;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.privacy-label input[type="checkbox"]:checked + .custom-checkbox::after {
    display: block;
}

.privacy-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* ===== Класс + буква класса — в одну строку (было друг под другом) ===== */
.inline-fields-row {
    display: flex;
    gap: 16px;
}

.inline-field {
    flex: 1;
    min-width: 0;
}

.inline-field label,
.inline-field .select-wrapper {
    width: 100%;
}

/* ===== Кнопка "Назад" на страницах регистрации/авторизации =====
   Раньше единственным способом покинуть страницу было лого (без ссылки).
   Кнопка "назад" — более предсказуемый вариант, чем превращать лого в
   ссылку на главную: возвращает туда, откуда пришли (напр. со страницы
   приглашения), а не всегда на лендинг. */
.reg-back-button {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #193D50;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px 10px 14px;
    border-radius: 50px;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s, transform 0.2s;
}

.reg-back-button:hover {
    background-color: #10222e;
    transform: translateX(-2px);
}

.reg-back-button svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .reg-back-button {
        top: 14px;
        left: 14px;
        padding: 8px 14px 8px 10px;
        font-size: 13px;
    }
}

/* ===== Комбобокс "Город" / "Школа/ССУЗ" =====
   Оба поля используют один и тот же выпадающий список (school-dropdown) —
   так они выглядят единообразно. Список причёсан: разделители между
   пунктами вместо голых строк, аккуратный отступ от краёв при наведении,
   собственный тонкий скроллбар вместо системного. */
.school-search-wrapper {
    position: relative;
}

.school-search-wrapper input[type="text"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.school-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 12px;
    margin-top: 6px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
}

.school-dropdown.show {
    display: block;
}

.school-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #193D50;
    border-radius: 8px;
    transition: background-color 0.12s;
}

.school-dropdown-item + .school-dropdown-item {
    margin-top: 2px;
}

.school-dropdown-item:hover,
.school-dropdown-item.active {
    background: #eef3f6;
}

.school-dropdown-empty {
    padding: 10px 12px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.school-dropdown::-webkit-scrollbar {
    width: 6px;
}

.school-dropdown::-webkit-scrollbar-thumb {
    background-color: #d7dde1;
    border-radius: 6px;
}

.school-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
