/* Страницы входа и регистрации. Спокойная пастельная палитра сайта,
   бордовый акцент #be0017 не используется — кнопка входа тёмно-синяя,
   как исторически на этих страницах. */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px 56px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(78, 101, 123, .08);
    padding: 32px 28px;
}

.auth-card__title {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 22px;
    text-align: center;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-social__form {
    margin: 0;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #d3dae1;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #2f3a45;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.auth-social__btn:hover {
    background: #f5f8fa;
    border-color: #b9c4cd;
}

.auth-social__btn svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #8a97a3;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e8ec;
}

.auth-form__group {
    margin-bottom: 14px;
}

.auth-form__group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.auth-form__group input[type="text"],
.auth-form__group input[type="email"],
.auth-form__group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd4db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-form__group input:focus {
    outline: none;
    border-color: #4e657b;
}

.auth-form__error {
    margin: 4px 0 0;
    color: #dc3545;
    font-size: 13px;
    text-align: left;
}

.auth-form__error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-form__hint {
    margin: 0 0 14px;
    font-size: 14px;
    text-align: right;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background-color: #4e657b;
    color: #fff;
    border: 2px solid #3a4c5b;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover:not(:disabled) {
    background-color: #3a4c5b;
}

.auth-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.auth-footer {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e4e8ec;
    text-align: center;
    font-size: 15px;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 24px 18px;
        border: none;
        box-shadow: none;
    }

    .auth-card__title {
        font-size: 22px;
    }
}
