/* ── Auth Page Styles ── */
:root {
  --primary: #f97316;
  --primary-light: #fb923c;
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #22263a;
  --border: #2e3249;
  --text: #e2e8f0;
  --text-muted: #8892b0;
  --red: #ef4444;
  --green: #22c55e;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
[dir="rtl"] body { font-family: 'Segoe UI', 'Cairo', 'Tajawal', system-ui, sans-serif; }

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  position: relative;
}
.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: color 0.15s;
  text-decoration: none;
}
.back-link:hover { color: var(--primary); }

.lang-switcher-auth {
  display: flex;
  gap: 0.3rem;
  background: var(--surface2);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 1.25rem;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn.active, .lang-btn:hover { background: var(--primary); color: #fff; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo img { width: 56px; border-radius: 12px; margin-bottom: 0.5rem; }
.auth-logo h1 { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.auth-logo p { font-size: 0.8rem; color: var(--text-muted); }

.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--surface2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active { background: var(--primary); color: #fff; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form.hidden { display: none; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--primary); }

.btn-auth {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}
.btn-auth:hover { background: var(--primary-light); }

.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.83rem;
  text-align: center;
}
.auth-error.hidden { display: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
