/* ═══════════════════════════════════════════════════════════════
   Yeklow Login Experience — immersive auth page
   Scoped to .login-xp — does not affect other auth templates
   ═══════════════════════════════════════════════════════════════ */

body.auth-layout.login-xp-page {
  background: #061612 !important;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}

html:has(body.login-xp-page) {
  overflow-x: hidden;
}

body.auth-layout.login-xp-page::before,
body.auth-layout.login-xp-page::after {
  display: none !important;
}

/* ── Shell ── */
.login-xp {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow-x: hidden;
}

/* ── Animated background layer ── */
.login-xp__aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-xp__aurora-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 107, 92, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(194, 120, 3, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(14, 61, 54, 0.9), transparent 70%),
    linear-gradient(160deg, #061612 0%, #0e3d36 45%, #0a2a24 100%);
  animation: login-aurora-shift 14s ease-in-out infinite alternate;
}

.login-xp__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-xp__orb--1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(194, 120, 3, 0.45) 0%, transparent 70%);
  animation: login-float-1 18s ease-in-out infinite;
}

.login-xp__orb--2 {
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(26, 107, 92, 0.55) 0%, transparent 70%);
  animation: login-float-2 22s ease-in-out infinite;
}

.login-xp__orb--3 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
  animation: login-float-3 16s ease-in-out infinite;
}

.login-xp__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
}

.login-xp__particles {
  position: absolute;
  inset: 0;
}

.login-xp__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  animation: login-particle-rise var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.login-xp__ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: login-orbit var(--orbit-dur, 30s) linear infinite;
}

.login-xp__ring--1 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
}

.login-xp__ring--2 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  bottom: 10%;
  left: 5%;
  animation-direction: reverse;
  animation-duration: 24s;
}

/* ── Layout: mobile-first single column ── */
.login-xp__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

/* ── Hero panel (brand side) — desktop only ── */
.login-xp__hero {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.login-xp__hero-inner {
  max-width: 520px;
  margin-inline: auto;
}

.login-xp__logo-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 2rem;
  animation: login-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-xp__logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(194, 120, 3, 0.35) 0%, transparent 70%);
  animation: login-pulse-ring 3s ease-in-out infinite;
  border-radius: 50%;
}

.login-xp__logo {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d4920a 0%, #c27803 40%, #a86602 100%);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(194, 120, 3, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 0 4px rgba(194, 120, 3, 0.15);
  transform-style: preserve-3d;
  animation: login-logo-float 5s ease-in-out infinite;
}

.login-xp__logo svg {
  stroke: #12231f;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.login-xp__logo-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.login-xp__brand-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fafbfc 0%, #c4d6d0 50%, #fbbf24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: login-text-shimmer 6s ease-in-out infinite, login-fade-up 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-xp__brand-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(196, 214, 208, 0.88);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: login-fade-up 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-xp__features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-xp__feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(250, 251, 252, 0.9);
  font-size: 0.92rem;
  transform: translateX(24px);
  opacity: 0;
  animation: login-slide-in-rtl 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-xp__feature:nth-child(1) { animation-delay: 0.35s; }
.login-xp__feature:nth-child(2) { animation-delay: 0.5s; }
.login-xp__feature:nth-child(3) { animation-delay: 0.65s; }

.login-xp__feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(194, 120, 3, 0.15);
  border: 1px solid rgba(194, 120, 3, 0.25);
  color: #fbbf24;
}

.login-xp__feature-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.login-xp__feature-text span {
  font-size: 0.82rem;
  color: rgba(196, 214, 208, 0.75);
}

.login-xp__hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  animation: login-fade-up 0.8s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-xp__stat {
  text-align: center;
}

.login-xp__stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.03em;
}

.login-xp__stat-label {
  font-size: 0.78rem;
  color: rgba(196, 214, 208, 0.65);
  margin-top: 0.15rem;
}

/* ── Form panel ── */
.login-xp__panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    calc(5.5rem + env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  position: relative;
}

.login-xp__card {
  width: 100%;
  max-width: min(440px, 100%);
  min-width: 0;
  box-sizing: border-box;
  background: rgba(250, 251, 252, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow:
    0 32px 80px rgba(6, 22, 18, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(26, 107, 92, 0.08);
  position: relative;
  overflow: hidden;
  animation: login-scale-in 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-xp__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a6b5c, #c27803, #1a6b5c);
  background-size: 200% 100%;
  animation: login-border-flow 4s linear infinite;
}

.login-xp__card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(194, 120, 3, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.login-xp__card-head {
  margin-bottom: 1.75rem;
}

.login-xp__steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.login-xp__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.login-xp__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #d5dde5;
  transition: background 0.3s ease;
}

.login-xp__step.is-active:not(:last-child)::after,
.login-xp__step.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, #1a6b5c, #c27803);
}

.login-xp__step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef1f4;
  color: #94a3b8;
  border: 2px solid #d5dde5;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.login-xp__step.is-active .login-xp__step-dot {
  background: linear-gradient(145deg, #c27803, #d4920a);
  color: #12231f;
  border-color: #c27803;
  box-shadow: 0 4px 16px rgba(194, 120, 3, 0.35);
  transform: scale(1.1);
}

.login-xp__step.is-done .login-xp__step-dot {
  background: #1a6b5c;
  color: #fff;
  border-color: #1a6b5c;
}

.login-xp__step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.login-xp__step.is-active .login-xp__step-label {
  color: #12231f;
}

.login-xp__card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #12231f;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.login-xp__card-sub {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ── Flash messages ── */
.login-xp__flash {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  animation: login-shake-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-xp__flash svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.login-xp__flash.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}

.login-xp__flash.success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #047857;
}

.login-xp__flash.warning {
  background: rgba(194, 120, 3, 0.08);
  border: 1px solid rgba(194, 120, 3, 0.25);
  color: #92400e;
}

/* ── Floating-label inputs ── */
.login-xp__field {
  position: relative;
  margin-bottom: 1.35rem;
  --login-field-icon-inset: 2.85rem;
}

.login-xp__field-icon {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.login-xp__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1rem 0.55rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: max(16px, 1rem);
  font-family: inherit;
  color: #12231f;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  direction: ltr;
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
}

/* فیلدهایی که آیکون دارند — فضای کافی سمت راست (کنار آیکون) */
.login-xp__field:has(.login-xp__field-icon) .login-xp__input {
  padding-right: var(--login-field-icon-inset);
  padding-left: 1rem;
}

.login-xp__field:has(.login-xp__field-icon) .login-xp__label {
  right: var(--login-field-icon-inset);
  max-width: calc(100% - var(--login-field-icon-inset) - 0.75rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-xp__input::placeholder {
  color: transparent;
}

.login-xp__input:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.login-xp__input:focus {
  outline: none;
  border-color: #1a6b5c;
  box-shadow: 0 0 0 4px rgba(26, 107, 92, 0.12);
  background: #fff;
}

.login-xp__field:focus-within .login-xp__field-icon {
  color: #1a6b5c;
  transform: translateY(-50%) scale(1.08);
}

.login-xp__label {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  background: transparent;
  padding: 0 0.25rem;
}

.login-xp__input:focus ~ .login-xp__label,
.login-xp__input:not(:placeholder-shown) ~ .login-xp__label {
  top: 0.55rem;
  transform: translateY(0);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a6b5c;
}

.login-xp__field-line {
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a6b5c, #c27803);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.login-xp__field:focus-within .login-xp__field-line {
  width: 100%;
  right: 0;
}

/* ── Submit button ── */
.login-xp__submit {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #12231f;
  background: linear-gradient(135deg, #d4920a 0%, #c27803 50%, #a86602 100%);
  background-size: 200% 100%;
  box-shadow: 0 8px 28px rgba(194, 120, 3, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-xp__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.login-xp__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(194, 120, 3, 0.45);
  background-position: 100% 0;
}

.login-xp__submit:hover::before {
  transform: translateX(100%);
}

.login-xp__submit:active {
  transform: translateY(0);
}

.login-xp__submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.login-xp__submit-arrow {
  transition: transform 0.25s ease;
}

.login-xp__submit:hover .login-xp__submit-arrow {
  transform: translateX(-4px);
}

.login-xp__submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(18, 35, 31, 0.2);
  border-top-color: #12231f;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

.login-xp__submit.is-loading .login-xp__submit-text,
.login-xp__submit.is-loading .login-xp__submit-arrow {
  display: none;
}

.login-xp__submit.is-loading .login-xp__submit-spinner {
  display: block;
}

.login-xp__submit--success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.35);
  color: #fff;
}

.login-xp__submit--success:hover {
  box-shadow: 0 14px 36px rgba(22, 163, 74, 0.45);
}

.login-xp__submit--success .login-xp__submit-spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

/* ── Back link ── */
.login-xp__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.login-xp__back:hover {
  color: #1a6b5c;
  transform: translateX(3px);
}

.login-xp__back svg {
  flex-shrink: 0;
}

/* ── Separator ── */
.login-xp__separator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.login-xp__separator::before,
.login-xp__separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* ── Ghost / secondary button ── */
.login-xp__ghost-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-xp__ghost-btn:hover {
  border-color: #1a6b5c;
  color: #1a6b5c;
  background: rgba(26, 107, 92, 0.04);
}

/* ── Text link ── */
.login-xp__link-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.login-xp__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a6b5c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-xp__link:hover {
  color: #c27803;
}

.login-xp__footer .login-xp__link {
  color: rgba(196, 214, 208, 0.65);
}

.login-xp__footer .login-xp__link:hover {
  color: #fbbf24;
}

/* ── Info box ── */
.login-xp__info-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1.35rem;
  background: rgba(26, 107, 92, 0.08);
  border: 1px solid rgba(26, 107, 92, 0.18);
  border-radius: 14px;
}

.login-xp__info-box--muted {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.login-xp__info-box-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(26, 107, 92, 0.12);
  color: #1a6b5c;
}

.login-xp__info-box--muted .login-xp__info-box-icon {
  background: #eef1f4;
  color: #64748b;
}

.login-xp__info-box-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #12231f;
  margin-bottom: 0.2rem;
}

.login-xp__info-box-text {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ── OTP input ── */
.login-xp__input--otp {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1rem;
  direction: ltr;
}

.login-xp__label--otp {
  right: 50%;
  transform: translate(50%, -50%);
  text-align: center;
  max-width: calc(100% - 2rem);
}

.login-xp__input--otp:focus ~ .login-xp__label--otp,
.login-xp__input--otp:not(:placeholder-shown) ~ .login-xp__label--otp {
  top: 0.55rem;
  right: 1rem;
  transform: translateY(0);
  text-align: right;
  max-width: calc(100% - 2rem);
}

.login-xp__input--rtl {
  direction: rtl;
  text-align: right;
}

/* ── Wide card (god login) ── */
.login-xp__card--wide {
  max-width: min(520px, 100%);
}

.login-xp__god-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(52vh, 380px);
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
}

.login-xp__god-btn {
  width: 100%;
  text-align: right;
  padding: 0.9rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-xp__god-btn:hover {
  border-color: #1a6b5c;
  background: rgba(26, 107, 92, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 92, 0.1);
}

.login-xp__god-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #12231f;
  margin-bottom: 0.2rem;
}

.login-xp__god-meta {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.login-xp__god-status {
  font-weight: 600;
  color: #1a6b5c;
}

.login-xp__god-empty {
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.login-xp__god-empty.hidden,
.login-xp__god-item.hidden {
  display: none;
}

/* ── Super admin ── */
.login-xp__admin {
  margin-top: 1.5rem;
  border-top: 1px dashed #e2e8f0;
  padding-top: 1.25rem;
}

.login-xp__admin summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c27803;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
  user-select: none;
}

.login-xp__admin summary::-webkit-details-marker {
  display: none;
}

.login-xp__admin summary::before {
  content: '◂';
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.login-xp__admin[open] summary::before {
  transform: rotate(-90deg);
}

.login-xp__admin summary:hover {
  color: #a86602;
}

.login-xp__admin-body {
  margin-top: 1rem;
  animation: login-fade-up 0.35s ease both;
}

.login-xp__admin .login-xp__field {
  margin-bottom: 1rem;
}

.login-xp__admin .login-xp__input {
  padding: 1.2rem 1rem 0.55rem 1rem;
  text-align: right;
  direction: rtl;
}

.login-xp__admin .login-xp__label {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  max-width: calc(100% - 2rem);
}

.login-xp__admin .login-xp__input:focus ~ .login-xp__label,
.login-xp__admin .login-xp__input:not(:placeholder-shown) ~ .login-xp__label {
  top: 0.55rem;
  transform: translateY(0);
}

.login-xp__admin-btn {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #1a6b5c;
  border-radius: 12px;
  background: transparent;
  color: #1a6b5c;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-xp__admin-btn:hover {
  background: rgba(26, 107, 92, 0.08);
}

/* ── Footer ── */
.login-xp__footer {
  position: relative;
  flex-shrink: 0;
  text-align: center;
  padding: 0 1rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.78rem;
  color: rgba(196, 214, 208, 0.5);
  z-index: 2;
  line-height: 1.5;
}

.login-xp__mobile-brand {
  display: block;
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-xp__mobile-logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d4920a, #c27803);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(194, 120, 3, 0.35);
}

.login-xp__mobile-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #12231f;
  letter-spacing: -0.03em;
}

/* ── Live chat on login ── */
body.login-xp-page .lc-fab-wrap {
  z-index: 100;
}

body.login-xp-page .lc-fab {
  box-shadow: 0 8px 32px rgba(194, 120, 3, 0.4);
}

/* ── Keyframes ── */
@keyframes login-aurora-shift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

@keyframes login-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.08); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes login-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.06); }
}

@keyframes login-float-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(-25px, 25px); opacity: 1; }
}

@keyframes login-particle-rise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@keyframes login-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes login-pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

@keyframes login-logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes login-text-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes login-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-slide-in-rtl {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes login-scale-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes login-border-flow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes login-shake-in {
  0% { opacity: 0; transform: translateX(8px); }
  40% { transform: translateX(-4px); }
  70% { transform: translateX(2px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

/* ── Mobile tweaks ── */
@media (max-width: 960px) {
  .login-xp__orb--1 {
    width: min(320px, 85vw);
    height: min(320px, 85vw);
    top: -18%;
    right: -25%;
  }

  .login-xp__orb--2 {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
    bottom: -15%;
    left: -20%;
  }

  .login-xp__orb--3 {
    display: none;
  }

  .login-xp__ring--1,
  .login-xp__ring--2 {
    display: none;
  }

  .login-xp__card {
    border-radius: 20px;
    padding: 1.35rem 1.15rem;
  }

  .login-xp__card-title {
    font-size: 1.2rem;
  }

  .login-xp__card-sub {
    font-size: 0.84rem;
  }

  .login-xp__card-head {
    margin-bottom: 1.35rem;
  }

  .login-xp__steps {
    margin-bottom: 1.15rem;
  }

  .login-xp__field {
    --login-field-icon-inset: 2.65rem;
  }

  .login-xp__field:has(.login-xp__field-icon) .login-xp__input {
    padding-right: var(--login-field-icon-inset);
    padding-left: 0.85rem;
    padding-top: 1.1rem;
    padding-bottom: 0.5rem;
  }

  .login-xp__field-icon {
    right: 0.8rem;
  }

  .login-xp__label {
    font-size: 0.9rem;
  }

  .login-xp__submit {
    padding: 0.9rem 1.25rem;
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .login-xp__panel {
    padding-inline: 0.75rem;
  }

  .login-xp__card {
    padding: 1.15rem 1rem;
    border-radius: 18px;
  }

  .login-xp__mobile-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .login-xp__mobile-title {
    font-size: 1.3rem;
  }

  .login-xp__step-label {
    font-size: 0.62rem;
  }

  .login-xp__step-dot {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .login-xp__step:not(:last-child)::after {
    top: 11px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }

  .login-xp__input--otp {
    font-size: 1.2rem;
    letter-spacing: 0.25em;
  }

  .login-xp__god-list {
    max-height: min(45vh, 320px);
  }
}

@media (max-width: 360px) {
  .login-xp__step-label {
    display: none;
  }

  .login-xp__steps {
    gap: 0.25rem;
  }
}

/* ── Desktop: split layout ── */
@media (min-width: 961px) {
  .login-xp__shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-xp__hero {
    display: flex;
  }

  .login-xp__mobile-brand {
    display: none;
  }

  .login-xp__panel {
    align-items: center;
    padding:
      clamp(1.5rem, 4vw, 3rem)
      clamp(1.5rem, 4vw, 3rem)
      clamp(1.5rem, 4vw, 3rem)
      clamp(1rem, 3vw, 2rem);
  }

  .login-xp__footer {
    position: absolute;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    white-space: nowrap;
    width: auto;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .login-xp__aurora-base,
  .login-xp__orb,
  .login-xp__particle,
  .login-xp__ring,
  .login-xp__logo,
  .login-xp__logo-glow,
  .login-xp__brand-title,
  .login-xp__feature,
  .login-xp__card,
  .login-xp__card::before,
  .login-xp__submit::before {
    animation: none !important;
  }

  .login-xp__feature {
    opacity: 1;
    transform: none;
  }

  .login-xp__logo-wrap,
  .login-xp__brand-tagline,
  .login-xp__hero-stats {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* System guide button on login — below the login card / shell */
.login-xp__shell > .system-guide-entry--login {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding:
    0
    max(1rem, env(safe-area-inset-right, 0px))
    calc(1.25rem + env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  position: relative;
  z-index: 2;
}
.system-guide-entry--login .system-guide-entry__btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: min(440px, 100%);
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #e8f5f1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.system-guide-entry--login .system-guide-entry__btn:hover,
.system-guide-entry--login .system-guide-entry__btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}
.system-guide-entry--login .system-guide-entry__ico {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
.system-guide-entry--login .system-guide-entry__text {
  flex: 1 1 auto;
  text-align: center;
}
.system-guide-entry--login .system-guide-entry__arrow {
  opacity: 0.75;
  flex-shrink: 0;
}

@media (min-width: 961px) {
  .login-xp__shell > .system-guide-entry--login {
    /* Align under the login card column (left in RTL = panel side) */
    grid-column: 2;
    justify-content: center;
    padding-top: 0;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    margin-top: -1.5rem;
  }
}

@media (max-width: 639px) {
  .system-guide-entry--login .system-guide-entry__btn {
    border-radius: 0.95rem;
    font-size: 0.86rem;
  }
}



