/**
 * ============================================================================
 * فایل استایل اختصاصی صفحه ورود و ثبت‌نام (Auth Page)
 * این فایل کاملا مستقل از فایل اصلی سایت است تا سرعت لود بالا برود
 * ============================================================================
 */

:root {
    /* متغیرهای رنگی اختصاصی */
    --bg-body: #0D1410;
    --bg-card: #16211B;
    --bg-element: #1F2E26;
    --text-main: #E0EADD;
    --text-muted: #8FA69A;
    --primary: #2E7D32;
    --accent: #FDD835;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    /* پس‌زمینه محو برای زیبایی */
    background-image: url('https://images.unsplash.com/photo-1519817650390-64a93db51149?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-position: center; position: relative;
}

/* لایه تاریک روی پس‌زمینه */
body::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 20, 16, 0.85); backdrop-filter: blur(10px); z-index: 0;
}

a { text-decoration: none; color: inherit; }

.auth-wrapper {
    position: relative; z-index: 1; width: 100%; max-width: 450px;
}

.auth-back-btn {
    display: inline-flex; align-items: center; gap: 8px; color: white;
    font-weight: bold; margin-bottom: 20px; font-size: 0.95rem;
}
.auth-back-btn:hover { color: var(--accent); transform: translateX(5px); }

/* کارت اصلی فرم */
.auth-card {
    background: var(--bg-card); border-radius: 30px; padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05);
}

.auth-logo {
    width: 70px; height: 70px; background: rgba(212, 175, 55, 0.15); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 30px; box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* تب‌های سوییچ */
.auth-tabs {
    display: flex; background: var(--bg-element); border-radius: 15px; padding: 5px; margin-bottom: 30px;
}
.auth-tab {
    flex: 1; border: none; background: transparent; color: var(--text-muted);
    font-size: 1rem; font-weight: bold; padding: 12px; border-radius: 12px; cursor: pointer;
}
.auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* فرم‌ها */
.auth-form { display: none; flex-direction: column; gap: 15px; animation: fadeIn 0.4s ease; }
.auth-form.active { display: flex; }

.input-group { position: relative; }
.input-group i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group input {
    width: 100%; padding: 15px 40px 15px 15px; border-radius: 15px; border: 2px solid var(--bg-element);
    background: var(--bg-body); color: var(--text-main); font-size: 1rem; outline: none;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); }

.forgot-password { font-size: 0.85rem; color: var(--text-muted); text-align: right; margin-top: -5px; }
.forgot-password:hover { color: var(--accent); }

/* دکمه سابمیت */
.auth-submit-btn {
    background: var(--primary); color: white; border: none; padding: 16px;
    border-radius: 15px; font-weight: bold; font-size: 1.1rem; cursor: pointer; margin-top: 10px;
}
.auth-submit-btn:hover { background: var(--accent); color: var(--text-main); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

/* خط جداکننده شبکه‌های اجتماعی */
.auth-divider {
    display: flex; align-items: center; text-align: center; margin: 30px 0; color: var(--text-muted); font-size: 0.85rem; font-weight: bold;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--bg-element); }
.auth-divider span { padding: 0 15px; }

/* دکمه‌های شبکه‌های اجتماعی */
.social-auth-container { display: flex; flex-direction: column; gap: 12px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px;
    border-radius: 15px; border: none; font-size: 1rem; font-weight: bold; cursor: pointer; color: white;
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.line-btn { background: #00C300; }
.google-btn { background: #DB4437; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }