:root {
    --ivory: #F7F4EE;
    --warm-white: #FCFAF7;
    --charcoal: #1C1B19;
    --soft-charcoal: #45423E;
    --bronze: #A88B6A;
    --bronze-light: #D8C8B5;
    --dark: #151412;

    --primary: var(--charcoal);
    --primary-dark: #000000;
    --primary-light: #F1EAE0;
    --accent: #6E8B6F;
    --danger: #B3554A;
    --warning: #C08A3E;
    --bg: var(--warm-white);
    --surface: #ffffff;
    --text: var(--charcoal);
    --text-muted: #8a857c;
    --border: #EAE4D9;
    --radius: 4px;
    --shadow: 0 2px 24px rgba(28, 27, 25, 0.05);
    --shadow-hover: 0 8px 30px rgba(28, 27, 25, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Samim', Tahoma, sans-serif;
    direction: rtl;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    font-size: 14px;
}

h1, h2, h3, .page-title, .login-box h1, .nav-logo {
    font-family: 'Vazirmatn', 'Samim', Tahoma, sans-serif;
    font-weight: 600;
}

/* ---------- صفحه لاگین ---------- */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(168,139,106,0.25), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(216,200,181,0.3), transparent 45%),
        var(--dark);
}

.login-box {
    background: rgba(252, 250, 247, 0.9);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    width: 100%;
    max-width: 420px;
    padding: 44px 36px;
    border-radius: 6px;
    border: 1px solid rgba(216,200,181,0.4);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: fadeSlideUp 0.7s ease both;
}

.login-brand { text-align: center; font-size: 32px; margin-bottom: 6px; }

.login-box h1 { font-size: 21px; text-align: center; margin-bottom: 8px; color: var(--charcoal); }
.login-box .subtitle { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--text-muted); font-weight: 500; }

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    direction: ltr;
    text-align: center;
    background: #fff;
}
.form-group input:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168,139,106,0.15); }

.btn {
    width: 100%;
    padding: 14px;
    background: var(--charcoal);
    color: var(--ivory);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
}
.btn:hover { background: var(--bronze); }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #ccc; cursor: not-allowed; }

.btn-link { background: none; color: var(--bronze); font-size: 13px; margin-top: 14px; text-decoration: none; font-weight: 500; }
.btn-link:hover { background: none; color: var(--charcoal); }

.alert { padding: 13px 15px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; display: none; font-weight: 500; }
.alert.show { display: block; animation: fadeSlideUp 0.4s ease both; }
.alert-success { background: #eaf1ea; color: #3f5f40; }
.alert-error { background: #fbeae8; color: #8a3c31; }
.alert-info { background: #f1ece2; color: #6b5a3f; }

.hidden { display: none; }
.timer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ---------- انیمیشن‌های مشترک ---------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}