/* --- Стили для модальных окон авторизации --- */

/* Контейнер-оверлей */
.auth-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.auth-modal-container.active {
    display: flex;
}

/* Скрываем неактивные модальные окна */
.auth-modal {
    display: none;
}

.auth-modal.active {
    display: block;
}

/* Содержимое модального окна */
.auth-modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    position: relative;
    text-align: center;
}

/* Кнопка закрытия */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
}

/* Заголовок */
.auth-modal-title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Социальные сети */
.social-login p {
    margin-bottom: 15px;
    color: #888;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.social-icon.google {
    background-color: #DB4437;
}

.social-icon.facebook {
    background-color: #4267B2;
}

.social-icon.vk {
    background-color: #4C75A3;
}

/* Разделитель "или" */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ccc;
    margin: 20px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-separator span {
    padding: 0 15px;
}

/* Группы полей формы */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

/* Чекбоксы */
.checkbox-group {
    display: flex;
    align-items: center;
    text-align: left;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 400;
}

.checkbox-group a {
    color: #007BFF;
    text-decoration: none;
}

.recaptcha-placeholder {
    height: 78px;
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Кнопки и ссылки */
.auth-btn.primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #4A5568;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-btn.primary:hover {
    background-color: #2D3748;
}

.auth-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-links a {
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
}

/* Account Deletion Modal Styles */
.account-deletion-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.account-deletion-modal.active {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
}

.deletion-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.account-deletion-modal.active .deletion-modal-content {
    transform: scale(1);
}

.close-deletion-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-deletion-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.deletion-step {
    padding: 30px;
    display: none;
}

.deletion-step.active {
    display: block;
}

.deletion-step h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-box i {
    font-size: 24px;
    color: #ff9800;
}

.deletion-consequences {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.deletion-consequences li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.deletion-reason {
    margin: 20px 0;
}

.deletion-reason label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #666;
}

.deletion-reason select,
.deletion-reason textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.deletion-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.deletion-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-continue {
    background: #ff9800;
    color: white;
}

.btn-continue:hover {
    background: #f57c00;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger:disabled {
    background: #999;
    cursor: not-allowed;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.user-email {
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.verification-form {
    margin: 20px 0;
}

.verification-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #666;
}

.verification-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
}

.verification-form input:focus {
    outline: none;
    border-color: #dc3545;
}

.code-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.password-section {
    margin-top: 20px;
}

.resend-code {
    text-align: center;
    margin-top: 15px;
}

.resend-code a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.resend-code a:hover {
    text-decoration: underline;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.step-3 {
    text-align: center;
}

.step-3 p {
    color: #666;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .deletion-modal-content {
        width: 95%;
        margin: 10px;
    }

    .deletion-step {
        padding: 20px;
    }

    .deletion-buttons {
        flex-direction: column;
    }
}