@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════════════════
   Kingaro — Liquid glass auth page (login / register / verify)
   این فایل فقط روی صفحه‌ی مستقل /auth لود می‌شود (نه popup لاگین).
   هماهنگ با سیستم گلس هدر — برای هر دو تم دارک و لایت.
   ══════════════════════════════════════════════════════════════════════════ */
/* پدینگ افقی از خود کارت می‌آید — این‌جا صفر تا پدینگ دوبل نشود */
.x-container {
  padding: 0;
}

/* استیج تمام‌قد، آگاه از هدر شناور — مرکزچینی روی خود main */
main {
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* آیکن گیم‌پد تزئینی قالب master ارتفاع اضافه و اسکرول می‌سازد — در این صفحه حذف */
main > .gamepad-icon {
  display: none !important;
}

.auth-parent {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-sizing: border-box;
  overflow: hidden;
  /* پس‌زمینه‌ی گرادیانی نرم تمام‌صفحه — بدون باند مشکی بالا/پایین */
  background: radial-gradient(120% 80% at 50% -10%, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.12), transparent 55%), radial-gradient(120% 80% at 50% 110%, rgba(var(--brand-secondary-rgb, 124, 92, 212), 0.12), transparent 55%);
}

/* هاله‌های محیطی برند پشت کارت */
.auth-parent::before,
.auth-parent::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.auth-parent::before {
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.55), transparent 70%);
  animation: authGlowA 14s ease-in-out infinite alternate;
}

.auth-parent::after {
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(var(--brand-secondary-rgb, 124, 92, 212), 0.5), transparent 70%);
  animation: authGlowB 16s ease-in-out infinite alternate;
}

@keyframes authGlowA {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-60px, 50px);
  }
}
@keyframes authGlowB {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(70px, -40px);
  }
}
/* کارت گلس شناور
   نکته: popup-login یک position:absolute !important روی .auth-container دارد؛
   اینجا با !important خنثی می‌شود تا کارت به‌صورت flex-item وسط بیفتد. */
.auth-parent .auth-container {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1;
  display: block;
  width: 400px !important;
  max-width: 92%;
  height: auto !important;
  margin: 0 !important;
  padding: 34px 32px 30px;
  border-radius: 26px;
  background: var(--glass-surface-solid, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
  box-shadow: 0 30px 80px -24px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: visible;
  animation: authCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* هایلایت گرادیانی نازک دور کارت */
.auth-parent .auth-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.8), rgba(var(--brand-secondary-rgb, 124, 92, 212), 0.35) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* تیترها و متن‌ها */
.login-h1 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hello {
  font-size: 20px;
  font-weight: 800;
  margin-top: 0;
  color: var(--text-color);
}

.hello::after {
  content: " 👋";
}

.el,
.emt {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-color-grey);
  margin-top: 4px;
}

/* ورودی گلس */
.login-input-container {
  margin-top: 18px;
}

.login-input {
  width: 100%;
  height: 56px;
  margin-top: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.1));
  border-bottom: 1px solid var(--glass-border, rgba(0, 0, 0, 0.1));
  border-radius: 16px;
  background: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.05);
  color: var(--text-color);
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.22s ease, background 0.18s ease;
}

.login-input::placeholder {
  color: var(--text-color-grey);
  opacity: 0.6;
  letter-spacing: 0;
}

.login-input:hover {
  border-color: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.35);
}

.login-input:focus,
.login-input:focus-visible {
  outline: none;
  border-color: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 91, 124, 250), 0.14);
  background: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.09);
}

.input-hint {
  color: var(--brand-danger, #dc4545);
  font-size: 12px;
  margin-top: 8px;
  text-align: right;
  display: block;
}

/* دکمه — تمام‌عرض، گرد، هماهنگ با گرادیان برند */
.auth-parent .x-button-1.button-styles {
  width: 100% !important;
  height: 56px !important;
  border-radius: 16px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.auth-parent .x-button-1:before,
.auth-parent .x-button-1:after {
  border-radius: 16px !important;
}

.auth-parent .x-button-1 .text {
  color: #fff;
}

/* لینک‌ها، تایمر و بازگشت */
.subtext {
  font-size: 12.5px !important;
  margin-top: 18px;
  color: var(--text-color-grey);
}

.subtext a,
.subtext a.link,
.subtext .link {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.subtext a:hover,
.subtext a.link:hover {
  color: var(--brand-secondary);
  border-bottom-color: currentColor;
}

#login-timing {
  color: var(--text-color) !important;
  text-align: center;
}

.login-logo {
  justify-content: center;
  display: flex;
}

.full-spinner {
  height: 48px !important;
  line-height: 30px !important;
}

/* ── تنظیمات تم لایت ─────────────────────────────────────────────────── */
body:not(.dark) .auth-parent .auth-container {
  background: var(--glass-surface-solid, rgba(255, 255, 255, 0.62));
  box-shadow: 0 24px 60px -22px rgba(28, 35, 51, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body:not(.dark) .login-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--input-border-color);
}

body:not(.dark) .login-input:focus {
  background: #fff;
  border-color: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.6);
}

/* ── موبایل ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .x-container {
    padding: 0;
  }
  .auth-parent {
    padding: 16px 14px;
  }
  .auth-parent .auth-container {
    padding: 30px 22px 28px;
    border-radius: 24px;
  }
}
@media (max-height: 620px) {
  .auth-parent {
    align-items: flex-start;
  }
  .x-container {
    padding: 0 !important;
    margin: 0 !important;
  }
}
#main-content {
  padding-top: 0;
  margin-bottom: 0;
}

@media (min-width: 0px) {
  .x-container {
    width: calc(100% - 32px) !important;
  }
}
@media (max-width: 640px) {
  .auth-parent .auth-container {
    padding: 30px 8px 28px;
  }
}
@media (min-width: 0px) {
  .box {
    max-width: calc(100% - 8px) !important;
  }
}