:root {
  --font-main: "IRANSansWeb", Tahoma, Arial, sans-serif;
  --bg-1: #050817;
  --bg-2: #0a1024;
  --panel: rgba(5, 12, 24, 0.66);
  --text: #f8f1e2;
  --muted: #a8b1c0;
  --muted-2: #728096;
  --gold: #d19017;
  --gold-2: #f6bd3f;
  --gold-3: #ffdf86;
  --gold-dark: #80500b;
  --cyan: #27f0ff;
  --purple: #e93dff;
  --border: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(246, 189, 63, 0.46);
  --radius-xl: 30px;
  --radius-md: 14px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --shadow-gold: 0 12px 36px rgba(209, 144, 23, 0.28);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  direction: rtl;
  background: #050817;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(5, 8, 23, 0.86) 0%, rgba(10, 16, 36, 0.78) 46%, rgba(23, 16, 46, 0.82) 100%),
    var(--auth-bg-image, none) center/cover no-repeat fixed,
    radial-gradient(circle at 76% 48%, rgba(30, 195, 255, 0.24), transparent 23%),
    radial-gradient(circle at 35% 68%, rgba(238, 55, 255, 0.26), transparent 23%),
    radial-gradient(circle at 81% 86%, rgba(246, 189, 63, 0.20), transparent 19%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 46%, #17102e 100%);
}
.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: .95;
}
.auth-page::before {
  background:
    linear-gradient(118deg, transparent 14%, rgba(39, 240, 255, .05) 17%, rgba(39, 240, 255, .34) 18%, rgba(39, 240, 255, .05) 20%, transparent 24%),
    linear-gradient(132deg, transparent 47%, rgba(255, 217, 132, .08) 51%, rgba(255, 217, 132, .52) 53%, rgba(255, 217, 132, .10) 55%, transparent 61%),
    linear-gradient(147deg, transparent 60%, rgba(39, 240, 255, .10) 64%, rgba(39, 240, 255, .40) 65%, rgba(39, 240, 255, .07) 68%, transparent 73%);
}
.auth-page::after {
  background:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 18% 70%, rgba(39,240,255,.9) 0 1px, transparent 1.9px),
    radial-gradient(circle at 40% 35%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 13%, rgba(246,189,63,.85) 0 1px, transparent 1.9px),
    radial-gradient(circle at 80% 72%, rgba(255,255,255,.7) 0 1px, transparent 1.9px),
    radial-gradient(circle at 91% 31%, rgba(39,240,255,.8) 0 1px, transparent 1.9px);
  background-size: 320px 240px;
  animation: starsMove 18s linear infinite;
  opacity: .55;
}
@keyframes starsMove { from { transform: translate3d(0,0,0); } to { transform: translate3d(90px,-70px,0); } }

.neon-curve {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}
.neon-curve.curve-1 {
  width: 105vw;
  height: 300px;
  right: -18vw;
  top: 46%;
  transform: rotate(-10deg);
  border-top: 7px solid rgba(39, 240, 255, .85);
  box-shadow: 0 -6px 28px rgba(39,240,255,.70), 0 -16px 60px rgba(39,240,255,.32);
  opacity: .86;
}
.neon-curve.curve-2 {
  width: 102vw;
  height: 260px;
  right: 11vw;
  top: 54%;
  transform: rotate(9deg);
  border-top: 6px solid rgba(233,61,255,.82);
  box-shadow: 0 -5px 24px rgba(233,61,255,.62), 0 -14px 56px rgba(233,61,255,.30);
  opacity: .76;
}
.neon-curve.curve-3 {
  width: 98vw;
  height: 320px;
  left: -7vw;
  top: 36%;
  transform: rotate(18deg);
  border-top: 8px solid rgba(255,218,151,.58);
  box-shadow: 0 -6px 30px rgba(255,218,151,.58), 0 -18px 72px rgba(255,218,151,.28);
  opacity: .78;
}
.geo-shape {
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(39,240,255,.22);
  background: rgba(39,240,255,.04);
  transform: skewX(-20deg) rotate(-9deg);
  filter: drop-shadow(0 0 26px rgba(39,240,255,.18));
}
.geo-shape.shape-1 { width: 360px; height: 180px; left: 13%; top: 24%; }
.geo-shape.shape-2 { width: 480px; height: 220px; left: 5%; bottom: 12%; border-color: rgba(246,189,63,.24); background: rgba(246,189,63,.04); }
.auth-layout {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: minmax(380px, 500px) 1fr;
  align-items: center;
  gap: 40px;
}
.auth-layout__main {
  width: 100%;
}
.auth-card {
  width: 100%;
  min-height: auto;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 18%, rgba(39,240,255,.12), transparent 34%),
    radial-gradient(circle at 90% 86%, rgba(246,189,63,.10), transparent 34%),
    linear-gradient(145deg, var(--panel), rgba(7,17,31,.50));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(22px);
}
.auth-card.center-card { margin-inline: auto; max-width: 530px; }
.auth-card.compact-card { min-height: auto; }
.logo-box { display: flex; flex-direction: column; align-items: center; justify-items: center; gap: 8px; margin-bottom: 14px; text-align: center; }
.logo-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gold-logo { width: 96px; height: 64px; display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 6px; }
.gold-logo span, .gold-stack span {
  display: block;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(145deg, #fff2a8 0%, var(--gold-3) 18%, var(--gold-2) 42%, var(--gold) 74%, var(--gold-dark) 100%);
  box-shadow: 0 8px 20px rgba(246,189,63,.24), inset 0 1px 0 rgba(255,255,255,.42);
}
.gold-logo span { height: 28px; }
.gold-logo span:nth-child(2) { height: 40px; }
.auth-logo-img {
  width: 250px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 8px 20px rgba(246, 189, 63, 0.24));
}
.logo-text h1 { margin: 0; color: var(--gold-2); font-size: 26px; line-height: 1.3; font-weight: 950; letter-spacing: -0.5px; }
.logo-text p { margin: 4px 0 0; color: rgba(248,241,226,.72); font-size: 12px; text-align: center; line-height: 1.6; }
.auth-title { margin: 0; color: var(--text); font-size: 22px; line-height: 1.45; font-weight: 930; text-align: center; }
.auth-subtitle { max-width: 360px; margin: 6px auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.auth-subtitle strong { color: var(--gold-2); font-weight: 850; }
.form-area { margin-top: 16px; }
.form-group { display: grid; gap: 6px; margin-bottom: 12px; }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(7,15,27,.66), rgba(5,11,21,.62));
  padding: 0 48px 0 18px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.12);
}
.input-wrap input::placeholder { color: rgba(171,181,195,.72); }
.input-wrap i { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: rgba(202,212,225,.62); font-size: 18px; pointer-events: none; }
.input-wrap .toggle-pass { right: auto; left: 15px; pointer-events: auto; cursor: pointer; }
.input-wrap input:focus { border-color: var(--border-gold); box-shadow: 0 0 0 4px rgba(246,189,63,.09), 0 0 30px rgba(39,240,255,.08), inset 0 1px 0 rgba(255,255,255,.06); }
.form-meta { margin: 2px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check-line { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.check-line input { width: 16px; height: 16px; accent-color: var(--gold-2); }
.text-link { color: var(--gold-2); font-size: 13px; font-weight: 750; }
.btn-gold {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  color: #1f1605;
  background: linear-gradient(135deg, #ffe185 0%, var(--gold-2) 46%, #d69216 100%);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.44);
  font-size: 16px;
  font-weight: 950;
  transition: 160ms ease;
}
.btn-gold:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.02); }
.btn-outline-gold { width: 100%; height: 48px; border: 1px solid var(--border-gold); border-radius: var(--radius-md); color: var(--gold-2); background: rgba(246,189,63,.04); font-size: 14px; font-weight: 850; }
.divider-text { margin: 14px 0 12px; display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
.bottom-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.7; }
.bottom-note a { color: var(--gold-2); font-weight: 850; }
.info-panel { position: relative; z-index: 1; max-width: 620px; justify-self: end; padding: 28px; }
.info-panel h2 { margin: 0; color: var(--text); font-size: clamp(34px, 4vw, 62px); line-height: 1.35; font-weight: 950; letter-spacing: -2px; }
.info-panel h2 span { color: var(--gold-2); }
.info-panel p { max-width: 520px; margin: 18px 0 0; color: rgba(248,241,226,.74); font-size: 17px; line-height: 2.15; }
.info-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.info-chip { min-height: 42px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(7,17,31,.42); color: rgba(248,241,226,.82); display: inline-flex; align-items: center; gap: 9px; backdrop-filter: blur(10px); }
.info-chip i { color: var(--gold-2); }
.gold-stack { position: absolute; left: 6%; bottom: 5%; width: 126px; height: 90px; display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 7px; transform: rotate(-9deg); filter: drop-shadow(0 18px 34px rgba(0,0,0,.38)); }
.gold-stack span { height: 42px; }
.gold-stack span:nth-child(2) { height: 58px; }
.security-illustration { width: 96px; height: 96px; margin: 14px auto 6px; border-radius: 50%; border: 1px solid rgba(246,189,63,.22); background: radial-gradient(circle at center, rgba(246,189,63,.12), transparent 66%), rgba(5,12,24,.35); display: grid; place-items: center; color: var(--gold-2); font-size: 42px; box-shadow: 0 0 46px rgba(246,189,63,.10); }
.otp-grid { direction: ltr; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 34px; }
.otp-grid input { height: 58px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; outline: 0; background: rgba(4,12,24,.54); color: var(--text); text-align: center; font-size: 24px; font-weight: 900; }
.otp-grid input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(246,189,63,.10); }
.otp-actions { margin: 26px 0 24px; display: flex; align-items: center; justify-content: space-between; color: var(--gold-2); font-size: 14px; font-weight: 800; }
.timer { color: rgba(248,241,226,.84); }
.back-link { margin-top: 14px; color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; width: 100%; gap: 8px; font-size: 13px; font-weight: 850; }
.phone-status { display: none; }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(360px,520px); justify-content: center; min-height: auto; }
  .info-panel { display: none; }
  .auth-card { margin-inline: auto; }
  .gold-stack { opacity: .55; }
}
@media (max-width: 640px) {
  .auth-page { min-height: 100svh; padding: 10px; display: block; }
  .auth-page::before { inset: -34%; }
  .auth-layout { width: 100%; min-height: auto; display: block; }
  .auth-card {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 5px 16px 18px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .auth-card.compact-card { min-height: auto; }
  .phone-status { display: flex; position: absolute; top: 12px; left: 14px; right: 14px; align-items: center; justify-content: space-between; color: #fff; font-size: 12px; font-weight: 850; opacity: .92; }
  .phone-status-icons { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
  .logo-box { margin-top: 0; margin-bottom: 10px; gap: 6px; }
  .auth-logo-img { width: 250px; height: 108px; }
  .logo-text h1 { font-size: 24px; line-height: 1.25; }
  .logo-text p { font-size: 11px; margin-top: 2px; }
  .auth-title { font-size: 20px; line-height: 1.35; }
  .auth-subtitle { font-size: 12px; margin-top: 4px; line-height: 1.5; }
  .form-area { margin-top: 12px; }
  .form-group { margin-bottom: 10px; }
  .form-meta { align-items: flex-start; gap: 8px; margin-bottom: 12px; }
  .btn-gold { height: 48px; font-size: 14px; }
  .btn-outline-gold { height: 44px; font-size: 13px; }
  .input-wrap input,
  .auth-card .custom-input,
  .auth-card .input-wrap .custom-input { height: 48px; font-size: 14px; }
  .security-illustration { width: 72px; height: 72px; margin: 10px auto 4px; font-size: 32px; }
  .otp-grid { gap: 8px; }
  .otp-grid input { height: 48px; font-size: 20px; }
  .back-link { margin-top: 12px; font-size: 12px; }
  .divider-text { margin: 12px 0 10px; }
  .neon-curve.curve-1 { width: 165vw; right: -62vw; top: 48%; }
  .neon-curve.curve-2 { width: 150vw; right: -32vw; top: 56%; }
  .neon-curve.curve-3 { width: 152vw; left: -56vw; top: 40%; }
  .geo-shape.shape-1 { width: 260px; height: 140px; left: -70px; top: 18%; }
  .geo-shape.shape-2 { width: 320px; height: 160px; left: -120px; bottom: 15%; }
  .gold-stack { display: none; }
}
@media (max-width: 400px) {
  .auth-card { padding-inline: 18px; }
  .otp-grid { gap: 6px; }
  .otp-grid input { height: 47px; }
}

.auth-body {
  margin: 0;
  background: #050817;
}

.auth-card .custom-input,
.auth-card .input-wrap .custom-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.66), rgba(5, 11, 21, 0.62));
  padding: 0 48px 0 18px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.12);
}

.auth-card .custom-input::placeholder {
  color: rgba(171, 181, 195, 0.72);
}

.auth-card .custom-input:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 4px rgba(246, 189, 63, 0.09), 0 0 30px rgba(39, 240, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card .fv-plugins-message-container,
.auth-card .invalid-feedback {
  margin-top: 8px;
  color: #ff7b7b !important;
  font-size: 13px;
  font-weight: 700;
}

.auth-card .input-wrap .toggle-pass,
.auth-card .input-wrap [data-kt-password-meter-control="visibility"] {
  position: absolute;
  left: 12px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(202, 212, 225, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.auth-card #kt_sign_in_submit {
  width: 100%;
  min-height: 50px;
  height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  color: #1f1605;
  background: linear-gradient(135deg, #ffe185 0%, var(--gold-2) 46%, #d69216 100%);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.44);
  font-size: 16px;
  font-weight: 950;
  margin-top: 15px;
}

.auth-card #kt_sign_in_submit .indicator-progress {
  display: none;
  align-items: center;
  gap: 8px;
}

.auth-card #kt_sign_in_submit[data-kt-indicator="on"] .indicator-label {
  display: none;
}

.auth-card #kt_sign_in_submit[data-kt-indicator="on"] .indicator-progress {
  display: inline-flex;
}

.auth-card .auth-otp-message {
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 3;
}

.auth-card #change-identity {
  color: var(--gold-2) !important;
  cursor: pointer;
}

.auth-card #otp_target {
  margin-top: 14px;
}

.auth-card .otp-fake-input.otpdesigner__focus__ {
  border: 2px solid var(--gold-2) !important;
}

.auth-card .otp-fake-input {
  background-color: rgba(4, 12, 24, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: var(--text) !important;
}

.auth-card .otp-content {
  color: var(--text) !important;
}

.auth-card .auth-otp-footer {
  margin-top: 12px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-card .auth-otp-footer .send-again {
  color: var(--gold-2) !important;
  font-weight: 800;
  text-decoration: none;
}

.auth-card .auth-password-field .form-control {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.66), rgba(5, 11, 21, 0.62));
  color: var(--text);
  padding: 0 18px 0 48px;
}

.auth-card .auth-password-toggle {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(202, 212, 225, 0.8);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.auth-card .auth-password-rules .requirement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.auth-card .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-devices-modal .modal-content {
  border-radius: 22px;
  border: 1px solid rgba(246, 189, 63, 0.28);
  background: linear-gradient(145deg, rgba(5, 12, 24, 0.95), rgba(7, 17, 31, 0.92));
  box-shadow: var(--shadow);
}

.auth-devices-modal .modal-title {
  color: var(--gold-2);
  font-weight: 900;
}

.auth-devices-modal .modal-body {
  color: var(--text);
}

.auth-devices-modal .btn-close {
  filter: invert(1) grayscale(1);
}

.auth-devices-modal #proceedLoginBtn {
  background: linear-gradient(135deg, #ffe185 0%, var(--gold-2) 46%, #d69216 100%) !important;
  border: 0 !important;
  color: #1f1605 !important;
  font-weight: 900;
}
