/* باشگاه مشتریان QCU — قالب روشن */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
    font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— صفحه عضویت / لاگین —— */
.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-wrapper .card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.page-wrapper .card-header {
    text-align: center;
    padding: 36px 32px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: none;
    display: block;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
}

.page-wrapper .card-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.subtitle { color: var(--text-muted); font-size: 0.9rem; }

.page-wrapper .form,
.page-wrapper .card-body { padding: 8px 28px 28px; }

/* —— فرم‌ها —— */
.form-group { margin-bottom: 18px; }
.form-group label,
.label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}
.required { color: var(--error); }

.input, select.input, textarea.input,
input[type="text"], input[type="password"], input[type="tel"],
input[type="email"], input[type="number"], input[type="date"],
select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    min-height: 48px;
}
textarea.input, textarea { min-height: 96px; resize: vertical; }

.input:focus, select:focus, textarea:focus,
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input::placeholder { color: #94a3b8; }
.hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* تاریخ شمسی سه باکس — RTL: روز | ماه | سال از راست */
.jalali-row {
    display: flex;
    gap: 10px;
    direction: rtl;
}
.jalali-box {
    flex: 1;
    text-align: center;
}
.jalali-box .input,
.jalali-num {
    text-align: center;
    direction: ltr;
    font-size: 1.05rem;
    padding: 12px 8px;
}
.jalali-cap {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.radio-group { display: flex; gap: 12px; }
.radio-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.radio-item:has(input:checked) {
    border-color: var(--primary);
    background: #eef2ff;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.05s;
    min-height: 48px;
    line-height: 1.2;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #4338ca; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-secondary:hover { background: #cbd5e1; color: #1e293b; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.825rem; min-height: 36px; border-radius: 10px; }
.btn-block { width: 100%; }

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #e0e7ff; color: #3730a3; }
