:root {
  --gold-strong: #825c1e;
}
.site-nav button,
.site-footer button,
.change-phone,
.text-back,
.resend-row button {
  min-height: 44px;
}
.primary-button {
  color: var(--navy);
}
.button-spinner {
  border-color: rgba(16, 24, 38, 0.25);
  border-top-color: var(--navy);
}
.input-wrap input,
.otp-inputs input {
  font-family: FilmlandSans, IRANSansX, Dana, Vazirmatn, Tahoma, sans-serif;
}
.demo-hint {
  color: #52627b;
}
.auth-card h1 {
  font-size: 28px;
  line-height: 1.5;
  color: #0c1a42;
  margin: 0;
  text-align: center;
  font-weight: 800;
}

/* Login: a light frosted surface with contrast-safe form controls. */
.login-grid {
  position: relative;
  isolation: isolate;
}
.login-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 4%;
  width: min(70vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 155, 81, 0.38), rgba(215, 189, 141, 0.16) 46%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.login-page {
  background:
    radial-gradient(circle at 73% 13%, rgba(199, 166, 102, 0.24), transparent 31%),
    radial-gradient(circle at 20% 81%, rgba(105, 135, 169, 0.14), transparent 35%),
    linear-gradient(135deg, #f7f2e9 0%, #fffaf3 52%, #f5f0e9 100%);
}
.login-grid .auth-card {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 60px rgba(39, 48, 66, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}
.login-grid .auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 56%);
  pointer-events: none;
}
.login-grid .auth-card > * {
  position: relative;
  z-index: 1;
}
.login-grid .input-wrap {
  background: rgba(255, 255, 255, 0.86);
  border-color: #bac6d7;
}
.login-grid .input-wrap:focus-within {
  border-color: var(--gold-strong);
}
.login-grid .primary-button:disabled {
  opacity: 1;
  color: #614a20;
  background: rgba(177, 145, 87, 0.21);
  border: 1px solid rgba(143, 109, 55, 0.22);
  box-shadow: none;
}
.login-visual {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 1.22;
  margin: 0;
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e9e0d4;
  box-shadow: 0 20px 60px rgba(50, 38, 21, 0.12);
}
.login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.login-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 980px) {
  .login-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: calc(32px + env(safe-area-inset-top)) 32px calc(40px + env(safe-area-inset-bottom));
  }
  .login-grid .auth-card {
    order: 0;
  }
  .login-visual {
    order: 1;
    width: min(100%, 720px);
    aspect-ratio: 1.45;
  }
}
@media (max-width: 767px) {
  .login-page {
    min-height: 100dvh;
    overflow-x: clip;
    background: #f7f5f0;
  }
  .login-grid {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  }
  .login-grid .auth-card {
    position: relative;
    z-index: 2;
    order: 0;
    width: 100%;
    max-width: 390px;
    margin-top: clamp(8px, 4dvh, 40px);
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 60px rgba(11, 15, 23, 0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .login-grid .auth-card__brand {
    margin-bottom: 16px;
  }
  .login-grid .auth-card__intro {
    margin-bottom: 24px;
  }
  .auth-card h1 {
    font-size: 26px;
  }
  .otp-card h1 {
    font-size: 24px;
  }
  .login-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    order: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
  }
  .login-visual img {
    object-position: center center;
  }
  .login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(247, 245, 240, 0.18) 0%,
      rgba(247, 245, 240, 0.46) 43%,
      rgba(247, 245, 240, 0.22) 70%,
      rgba(247, 245, 240, 0.86) 100%
    );
  }
}
@media (max-width: 370px) {
  .login-grid {
    padding-inline: 20px;
  }
}
@media (max-height: 740px) and (max-width: 767px) {
  .login-grid .auth-card {
    margin-top: 0;
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .login-grid .auth-card {
    background: rgba(255, 255, 255, 0.94);
  }
}
