﻿/* استایل‌های پاپ‌آپ احراز هویت */
.auth-modal .modal-dialog {
    max-width: 450px;
}

.auth-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.auth-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 2rem;
    position: relative;
}

.auth-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.auth-modal .modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.auth-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.auth-modal .btn-close:hover {
    opacity: 1;
}

/* تب‌ها */
.auth-tabs {
    display: flex;
    margin: -1rem -1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

/* فرم‌ها */
.auth-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.auth-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* دکمه‌ها */
.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* انیمیشن‌ها */
.fade-tab {
    display: none;
    animation: fadeIn 0.4s ease;
}

.fade-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* چک‌باکس سفارشی */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* لینک‌ها */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* پیام‌های خطا */
.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-modal .modal-dialog {
        margin: 0.5rem;
    }

    .auth-modal .modal-header {
        padding: 1.5rem;
    }
}