/* ===== СТРАНИЦЫ ПОЛЬЗОВАТЕЛЯ ===== */

/* Центрирующая обёртка */
.login-container,
.login-container-account {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Карточка */
.login-item {
    width: 100%;
    max-width: 380px;
    padding: 20px 8px;
    box-sizing: border-box;
}

/* Заголовок карточки */
.login-item > p:first-child,
.login-item > form > p:first-child {
    font-size: 22px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 0 0 20px;
    color: #1a1a1a;
}

/* Лейблы */
.login-item label {
    font-size: 15px;
    color: #666;
    display: block;
    margin-bottom: 4px;
    margin-top: 12px;
}

/* Поля ввода */
.login-item input[type="text"],
.login-item input[type="email"],
.login-item input[type="password"],
.login-item select,
.login-item textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.login-item input[type="text"]:focus,
.login-item input[type="email"]:focus,
.login-item input[type="password"]:focus,
.login-item select:focus,
.login-item textarea:focus {
    border-color: #A1312B;
}

/* Кнопка */
.login-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.login-button button {
    border: none;
    background-color: #A1312B;
    color: #fff;
    font-size: 18px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 14px 40px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    appearance: none;
    -webkit-appearance: none;
}

.login-button button:hover {
    background-color: #c0392b;
}

.login-button button:active {
    transform: scale(0.97);
}

/* Ссылки (Забыли пароль / Регистрация) */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.login-links p {
    font-size: 16px;
    margin: 0;
    color: #999;
}

.login-links a {
    color: #A1312B;
    text-decoration: none;
    font-size: 16px;
}

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

/* Ошибки */
.errors {
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}

/* Текст с инструкциями (требования к паролю) */
.form-password-change p,
.form-registration p {
    font-size: 13px;
    color: #bbb;
    margin: 12px 0 0;
    line-height: 1.6;
}

/* Ссылка "Забыли пароль?" внутри смены пароля */
.login-links-password_change {
    margin-top: 8px;
}

.login-links-password_change p {
    font-size: 14px;
    margin: 0;
}

.login-links-password_change a {
    color: #A1312B;
    text-decoration: none;
    font-size: 14px;
}

.login-links-password_change a:hover {
    text-decoration: underline;
}

/* Сообщения (письмо отправлено и т.п.) */
.message-email {
    max-width: 380px;
    padding: 20px 8px;
    box-sizing: border-box;
    text-align: center;
}

.message-email p {
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
}

.message-email a {
    color: #A1312B;
    text-decoration: underline;
}

/* Выход из аккаунта */
.logout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.logout p {
    font-size: 20px;
    color: #888;
}

/* Удаление аккаунта */
.account-delete {
    text-align: center;
}

.account-delete p {
    font-size: 17px;
    color: #1a1a1a;
    margin-bottom: 6px;
    justify-content: center;
    display: flex;
}

/* Чекбокс согласия */
.consent-checkbox {
    margin-top: 16px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #A1312B;
    cursor: pointer;
}

.consent-label a {
    color: #A1312B;
    text-decoration: underline;
}

/* Тултип валидации */
.field-tooltip {
    position: absolute;
    background-color: #e74c3c;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 280px;
    pointer-events: none;
}

.field-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent #e74c3c;
}

/* Враппер формы «Изменить данные» */
.acc-update-form {
    width: 100%;
    max-width: 560px;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Мобильная версия */
@media (max-width: 820px) {
    .logout p {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .login-item {
        padding: 16px 4px;
    }
}
