/* static/accounts/css/login.css */

.login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom right, #393EB4 40%, #8F39B4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 62, 180, 0.3);
    background: linear-gradient(to bottom right, #4a4fc9 0%, #a04ac9 100%);
}

.login-form button[type="submit"]:active {
    transform: translateY(0);
}

.login-error-message {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стиль для поля с ошибкой */
input.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

#email-error {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #dc3545 !important;
    text-align: center;
}

/* Стиль для заблокированной кнопки */
#login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Разделитель ИЛИ */
.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.login-divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* Кнопки соцсетей — общий стиль для всех */
.social-login {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    white-space: nowrap;
}

.btn-social:hover {
    transform: translateY(-2px);
    color: #333;
    text-decoration: none;
}

.btn-social img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn-yandex:hover {
    border-color: #FC3F1D;
    box-shadow: 0 2px 20px rgba(252, 63, 29, 0.15);
}

.btn-vk:hover {
    border-color: #2787F5;
    box-shadow: 0 2px 20px rgba(39, 135, 245, 0.15);
}

/* Галка согласия для Яндекс ID на странице входа */
.terms-group-login {
    margin-top: 15px;
    margin-bottom: 10px;
}

.terms-option-login {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.terms-option-login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #393EB4;
}

.terms-option-login span {
    color: #333;
}

.terms-link {
    color: #393EB4;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
    color: #6352c7;
}
