/* ============ صفحهٔ ورود و ثبت‌نام ============ */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 64px; }
.login-card {
  width: 100%; max-width: 460px; padding: 28px 24px 22px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(9,14,26,.96));
  border: 1px solid rgba(56,189,248,.18);
  box-shadow: 0 24px 60px rgba(2,6,23,.55), inset 0 1px 0 rgba(148,163,184,.08);
  backdrop-filter: blur(14px);
}
.login-head h1 { margin: 12px 0 8px; font-size: 24px; color: #f1f5f9; }
.login-head p { margin: 0 0 18px; font-size: 12.5px; line-height: 2; color: #94a3b8; }
.login-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px;
  background: rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.14); border-radius: 14px;
}
.login-tabs button {
  padding: 10px 8px; border: 0; border-radius: 10px; background: transparent;
  color: #94a3b8; font: inherit; font-size: 13px; cursor: pointer; transition: .18s;
}
.login-tabs button.active {
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.18));
  color: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(56,189,248,.28);
}
.login-form { display: flex; flex-direction: column; gap: 7px; }
.login-form label { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }
.login-form input {
  width: 100%; padding: 12px 13px; border-radius: 11px; font: inherit; font-size: 13px;
  background: #0a0f1c; color: #e8edf7; border: 1px solid rgba(148,163,184,.18);
  transition: border-color .18s, box-shadow .18s;
}
.login-form input:focus {
  outline: 0; border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}
.pass-wrap { position: relative; display: flex; }
.pass-wrap input { padding-inline-end: 70px; }
.pass-eye {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  padding: 5px 9px; border: 0; border-radius: 8px; background: rgba(148,163,184,.1);
  color: #94a3b8; font: inherit; font-size: 10.5px; cursor: pointer;
}
.login-submit {
  margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: #041016;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  box-shadow: 0 12px 30px rgba(34,211,238,.22);
  transition: filter .18s, transform .12s;
}
.login-submit:hover { filter: brightness(1.06); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .6; cursor: progress; }
.login-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.9; color: #64748b; }
.login-msg {
  margin: 14px 0 0; padding: 11px 13px; border-radius: 11px; font-size: 12px; line-height: 1.9;
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.22); color: #bae6fd;
}
.login-msg.err { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.28); color: #fda4af; }
.login-msg.ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.28); color: #a7f3d0; }
.login-alt { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.12); font-size: 11.5px; color: #94a3b8; text-align: center; line-height: 2; }
.login-alt a { color: #67e8f9; text-decoration: none; }
.login-alt a:hover { text-decoration: underline; }

/* صفحه‌های داخلی تا تأیید ورود پنهان می‌مانند */
html.auth-pending body { visibility: hidden; }

/* ---------- مدیریت حساب ---------- */
.account-card { max-width: 520px; }
.ac-rows { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.ac-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  background: rgba(148,163,184,.05); border: 1px solid rgba(148,163,184,.12);
}
.ac-row small { font-size: 11px; color: #94a3b8; }
.ac-row b { font-size: 12.5px; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.ac-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ac-btn {
  display: block; padding: 11px 12px; border-radius: 11px; text-align: center; text-decoration: none;
  font-size: 12.5px; color: #cbd5e1; background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.16); transition: .18s;
}
.ac-btn:hover { background: rgba(148,163,184,.14); color: #e2e8f0; }
.ac-btn.primary {
  color: #041016; font-weight: 700; border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}
.ac-logout {
  width: 100%; margin-top: 14px; padding: 11px 12px; cursor: pointer;
  border-radius: 11px; font: inherit; font-size: 12.5px;
  background: rgba(244,63,94,.08); color: #fda4af; border: 1px solid rgba(244,63,94,.26);
  transition: .18s;
}
.ac-logout:hover { background: rgba(244,63,94,.14); }
