/* =============================================
   استایل‌های صفحات ورود و ثبت‌نام
   ============================================= */

/* ===== کانتینر اصلی ===== */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

/* ===== هدر ===== */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.auth-logo .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 10px;
    font-weight: 900;
    font-size: 22px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

/* ===== هشدارها ===== */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.auth-alert.error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.auth-alert.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.auth-alert.success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ===== فرم ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: #94a3b8;
    font-size: 14px;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
    background: white;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* ===== نمایش رمز ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #6366f1;
}

/* ===== گزینه‌های فرم ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

.terms-group .checkbox-label {
    font-size: 13px;
}

.terms-group .checkbox-label a {
    color: #6366f1;
    text-decoration: none;
}

.terms-group .checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4f46e5;
}

/* ===== دکمه ارسال ===== */
.auth-submit {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== تقسیم‌کننده ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

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

.auth-divider span {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

/* ===== دکمه‌های اجتماعی ===== */
.auth-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn.google {
    color: #ea4335;
}

.social-btn.google i {
    font-size: 18px;
}

/* ===== فوتر ===== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* =============================================
   ریسپانسیو
   ============================================= */
@media (max-width: 600px) {
    .auth-container {
        padding: 20px 12px;
        min-height: 70vh;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group input,
    .form-group select {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .auth-submit {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}