@font-face {
  font-family: FilmlandSans;
  src:
    local("IRANSansX"),
    local("IRANSansXFaNum"),
    url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
  color: #101826;
  background: #f7f5f0;
  font-synthesis: none;
  letter-spacing: 0;
  --navy: #101826;
  --navy-soft: #566782;
  --gold: #b88930;
  --gold-strong: #a47726;
  --gold-light: #e8c766;
  --cream: #f7f5f0;
  --surface: #fff;
  --border: #d9d5cb;
  --danger: #b32628;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
}
button,
input {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(184, 137, 48, 0.35);
  outline-offset: 3px;
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.not-found-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.not-found-card {
  width: min(100%, 480px);
  padding: 32px;
  text-align: center;
  line-height: 1.9;
}
.not-found-card .primary-button { margin-top: 24px; }
.site-header {
  height: 92px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(16, 24, 38, 0.06);
  position: relative;
  z-index: 10;
}
.site-header__inner {
  max-width: 1440px;
  padding-inline: 48px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: rtl;
  color: var(--navy);
  white-space: nowrap;
}
.brand__mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}
.brand__word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  direction: rtl;
}
.brand__word strong {
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
  font-size: 29px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
}
.brand__accent {
  color: var(--gold-strong);
}
.brand__word small {
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold-strong);
}
.brand--compact .brand__word strong {
  font-size: 24px;
}
.brand--compact .brand__mark {
  width: 38px;
  height: 38px;
}
.brand--compact .brand__word small {
  font-size: 9px;
  letter-spacing: 0;
}
.brand--hero {
  flex-direction: column;
  gap: 10px;
}
.brand--hero .brand__mark {
  width: 76px;
  height: 76px;
}
.brand--hero .brand__word {
  align-items: center;
  gap: 5px;
}
.brand--hero .brand__word strong {
  font-size: 31px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav button,
.site-footer button {
  background: transparent;
  border: 0;
  color: var(--navy);
  padding: 10px;
  font-weight: 600;
}
.site-nav button:hover,
.site-footer button:hover,
.change-phone:hover,
.text-back:hover {
  color: var(--gold-strong);
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.login-page {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(
      ellipse at 20% 85%,
      rgba(218, 185, 119, 0.22),
      transparent 37%
    ),
    linear-gradient(115deg, #f9f7f3 0%, #fff 47%, #f8f5ef 100%);
}
.login-grid {
  width: min(100%, 1440px);
  margin: auto;
  padding: 64px 48px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 64px;
  direction: ltr;
}
.story,
.auth-card {
  direction: rtl;
}
.story {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 24px;
}
.story__eyebrow {
  direction: rtl;
  align-self: flex-start;
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-strong);
  margin-bottom: 28px;
}
.story h1 {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
  font-weight: 800;
  color: #0c1a42;
  position: relative;
  z-index: 1;
}
.story h1 em {
  font-style: normal;
}
.story > p {
  font-size: 20px;
  line-height: 1.9;
  color: var(--navy-soft);
  max-width: 570px;
  margin: 16px 0 22px;
  position: relative;
  z-index: 1;
}
.story__art {
  position: absolute;
  left: -80px;
  bottom: -12px;
  width: min(68%, 470px);
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(83, 61, 29, 0.09));
}
.benefits {
  display: flex;
  gap: 12px;
  align-self: flex-end;
  position: relative;
  z-index: 1;
}
.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 130px;
  gap: 4px;
}
.benefit__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--gold-strong);
}
.benefit__icon .icon {
  width: 43px;
  height: 43px;
}
.benefit strong {
  font-size: 14px;
  color: #0c1a42;
}
.benefit small {
  font-size: 12px;
  color: var(--navy-soft);
}
.mobile-benefits {
  display: none;
}
.auth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(16, 24, 38, 0.08);
  backdrop-filter: blur(20px);
  padding: 40px;
  max-width: 552px;
  width: 100%;
  justify-self: center;
  animation: card-in 0.45s ease-out both;
}
.auth-card__brand {
  margin-bottom: 32px;
}
.auth-card__body {
  max-width: 430px;
  margin: auto;
}
.step-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.step-note__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.auth-card h2,
.otp-card h1 {
  font-size: 28px;
  line-height: 1.5;
  color: #0c1a42;
  margin: 0;
  text-align: center;
  font-weight: 800;
}
.auth-card__intro {
  text-align: center;
  color: var(--navy-soft);
  font-size: 15px;
  line-height: 1.9;
  margin: 8px 0 32px;
}
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.field-head label,
.otp-label {
  font-size: 14px;
  font-weight: 700;
  color: #0c1a42;
}
.field-head span {
  font-size: 12px;
  color: var(--navy-soft);
}
.input-wrap {
  height: 56px;
  background: #fff;
  border: 1px solid #c8d2e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 48, 0.14);
}
.input-wrap.is-error {
  border-color: var(--danger);
}
.input-wrap__icon {
  display: grid;
  place-items: center;
  color: #122551;
}
.input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #122551;
  font-size: 18px;
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0;
}
.input-wrap input::placeholder {
  color: #93a1bd;
  font-weight: 400;
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 20px;
  margin: 6px 0 0;
}
.primary-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(110deg, #d3a24c, #a97727 60%, #bb8a37);
  box-shadow: 0 8px 20px rgba(178, 132, 48, 0.16);
  font-size: 17px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    transform 0.2s,
    opacity 0.2s,
    box-shadow 0.2s;
}
.primary-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(178, 132, 48, 0.23);
}
.primary-button:disabled {
  opacity: 0.42;
  box-shadow: none;
}
.primary-button__icon {
  position: absolute;
  left: 20px;
}
.button-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.primary-button.is-loading .button-spinner {
  display: block;
}
.primary-button.is-loading .primary-button__icon {
  display: none;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: #4f6180;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.secure-note .icon {
  color: #0c1a42;
}
.site-footer {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(16, 24, 38, 0.06);
  min-height: 70px;
  padding: 16px 48px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #64728b;
}
.site-footer > div {
  display: flex;
  gap: 16px;
}
.site-footer button {
  font-size: 12px;
  color: #64728b;
}
.otp-page,
.success-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 20px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(
      circle at 50% 7%,
      rgba(212, 175, 55, 0.13),
      transparent 45%
    ),
    var(--cream);
}
.otp-shell {
  width: min(100%, 552px);
}
.text-back {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 14px;
  padding: 8px 0;
  margin-bottom: 16px;
}
.otp-card {
  padding: 40px 48px;
}
.otp-card__logo {
  margin-bottom: 40px;
}
.otp-card .step-note {
  justify-content: center;
}
.otp-card .auth-card__intro {
  margin: 8px 0 4px;
}
.otp-card .auth-card__intro b {
  display: inline-block;
  color: var(--navy);
  font-family: Arial, sans-serif;
  unicode-bidi: isolate;
}
.change-phone {
  border: 0;
  background: none;
  color: var(--gold-strong);
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin: 0 auto 32px;
  padding: 8px;
}
.otp-label {
  display: block;
  margin-bottom: 12px;
  text-align: right;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.otp-inputs input {
  width: calc((100% - 40px) / 6);
  max-width: 56px;
  height: 62px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: #fff;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.otp-inputs input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 48, 0.14);
}
.otp-inputs input:not(:placeholder-shown):not(:empty) {
  background: #fffaf0;
}
.otp-inputs input.is-error {
  border-color: var(--danger);
}
.otp-error {
  margin-top: 8px;
}
.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--navy-soft);
}
.resend-row button {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-strong);
  padding: 10px;
}
.resend-row button:disabled {
  opacity: 0.45;
}
.otp-card .secure-note {
  align-items: flex-start;
}
.demo-hint {
  text-align: center;
  color: #78849a;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0 0;
}
.success-card {
  width: min(100%, 500px);
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 24, 38, 0.08);
  animation: card-in 0.45s ease-out both;
}
.success-card__check {
  width: 68px;
  height: 68px;
  margin: 32px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf7ee;
  color: #209653;
  animation: check-in 0.45s 0.2s both;
}
.success-card__check .icon {
  width: 38px;
  height: 38px;
}
.success-card .step-note {
  justify-content: center;
}
.success-card h1 {
  font-size: 25px;
}
.success-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--navy-soft);
  margin-bottom: 32px;
}
.toast {
  position: fixed;
  z-index: 70;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 440px);
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(201, 183, 144, .65);
  border-inline-start: 3px solid var(--gold-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  box-shadow: 0 14px 38px rgba(16, 24, 38, .15);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
  animation: toast-in 0.25s ease-out;
}
.toast--above-nav {
  bottom: calc(112px + env(safe-area-inset-bottom));
}
.toast__text {
  min-width: 0;
  flex: 1;
}
.toast__close {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #566782;
}
.toast__close:hover,
.toast__close:active {
  background: #f5f1e8;
}
.toast__close .icon {
  width: 18px;
  height: 18px;
}
.toast--error {
  border-inline-start-color: #b32628;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes check-in {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 1100px) {
  .login-grid {
    gap: 32px;
    padding-inline: 32px;
  }
  .story h1 {
    font-size: 42px;
  }
  .story > p {
    font-size: 17px;
  }
  .story__art {
    left: -45px;
    width: 65%;
  }
  .benefit {
    min-width: 105px;
  }
  .site-header__inner {
    padding-inline: 32px;
  }
}
@media (max-width: 767px) {
  .site-header {
    display: none;
  }
  .login-page {
    display: block;
    background:
      radial-gradient(
        circle at 50% 4%,
        rgba(231, 200, 133, 0.24),
        transparent 45%
      ),
      #faf8f4;
  }
  .login-grid {
    display: flex;
    flex-direction: column;
    padding: 32px 20px calc(40px + env(safe-area-inset-bottom));
    gap: 20px;
    direction: rtl;
  }
  .story {
    display: none;
  }
  .auth-card {
    order: 1;
    padding: 28px 20px;
    width: min(100%, 440px);
    box-shadow: 0 12px 40px rgba(16, 24, 38, 0.07);
  }
  .auth-card__brand {
    margin-bottom: 28px;
  }
  .brand--hero .brand__word strong {
    font-size: 31px;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .auth-card__intro {
    margin-bottom: 28px;
  }
  .mobile-benefits {
    order: 2;
    display: block;
    width: min(100%, 440px);
    padding-top: 14px;
  }
  .mobile-benefits .benefits {
    justify-content: space-around;
    gap: 4px;
  }
  .mobile-benefits .benefit {
    min-width: 0;
    flex: 1;
  }
  .mobile-benefits .benefit__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(207, 172, 104, 0.1);
  }
  .mobile-benefits .benefit__icon .icon {
    width: 32px;
    height: 32px;
  }
  .mobile-benefits .benefit strong {
    font-size: 12px;
    line-height: 1.8;
  }
  .mobile-benefits .benefit small {
    display: none;
  }
  .site-footer {
    display: none;
  }
  .otp-page,
  .success-page {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .otp-card {
    padding: 28px 20px;
  }
  .otp-card__logo {
    margin-bottom: 32px;
  }
  .otp-card h1 {
    font-size: 24px;
  }
  .otp-shell {
    width: min(100%, 440px);
  }
  .otp-inputs input {
    height: 56px;
  }
  .demo-hint {
    margin-top: 16px;
  }
  .success-card {
    padding: 40px 24px;
  }
}
@media (max-width: 370px) {
  .login-grid {
    padding-inline: 16px;
  }
  .auth-card {
    padding-inline: 16px;
  }
  .otp-page {
    padding-inline: 16px;
  }
  .otp-card {
    padding-inline: 16px;
  }
  .otp-inputs {
    gap: 5px;
  }
  .otp-inputs input {
    width: calc((100% - 25px) / 6);
  }
  .mobile-benefits .benefit strong {
    font-size: 11px;
  }
}
@media (max-height: 740px) and (max-width: 767px) {
  .login-grid {
    padding-top: 16px;
  }
  .auth-card__brand {
    margin-bottom: 12px;
  }
  .brand--hero .brand__word strong {
    font-size: 27px;
  }
  .auth-card__intro {
    margin-bottom: 16px;
  }
  .secure-note {
    margin-top: 18px;
  }
  .mobile-benefits {
    padding-top: 0;
  }
  .otp-card__logo {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
