body.web-site .auth-login {
  width: min(1120px, calc(100% - 40px));
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: stretch;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(32px, 6vh, 76px);
}

body.web-site .auth-login .auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 28px;
  color: #f7fafc;
  background: radial-gradient(circle at 85% 18%, rgb(92 125 156 / 32%), transparent 38%), linear-gradient(145deg, #1b2a38, #111923 74%);
  box-shadow: 0 24px 70px rgb(18 30 42 / 16%);
}

body.web-site .auth-login .auth-story::before,
body.web-site .auth-login .auth-story::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.web-site .auth-login .auth-story::before { inset: auto -145px -235px auto; width: 440px; aspect-ratio: 1; }
body.web-site .auth-login .auth-story::after { inset: auto -94px -184px auto; width: 340px; aspect-ratio: 1; }

body.web-site .auth-login .auth-story-mark {
  display: grid;
  width: 62px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 19px;
  color: #fff;
  background: rgb(255 255 255 / 8%);
}

body.web-site .auth-login .auth-story-mark svg { width: 34px; height: 34px; }
body.web-site .auth-login .auth-story-label { color: #f1a2aa; font-size: .82rem; font-weight: 800; }
body.web-site .auth-login .auth-story :is(h1,h2) { max-width: 15ch; margin: 12px 0 14px; color: #fff; font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.4; }
body.web-site .auth-login .auth-story > p { max-width: 46ch; margin: 0; color: #c7d1da; line-height: 2.1; }

body.web-site .auth-login .auth-story-points {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  color: #e4eaf0;
  list-style: none;
}

body.web-site .auth-login .auth-story-points li { display: flex; align-items: center; gap: 11px; font-size: .9rem; }
body.web-site .auth-login .auth-story-points li span { display: grid; width: 22px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #c5f0da; background: rgb(70 180 125 / 18%); font-size: .78rem; font-weight: 900; }
body.web-site .auth-login .auth-story-foot { display: flex; align-items: center; gap: 9px; margin-top: 42px; color: #aebcc8; font-size: .8rem; }
body.web-site .auth-login .auth-live-dot { width: 8px; aspect-ratio: 1; border-radius: 50%; background: #56c78a; box-shadow: 0 0 0 5px rgb(86 199 138 / 13%); }

body.web-site .auth-login .auth-card {
  align-self: center;
  width: 100%;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--imnexa-line, #e4e8eb);
  border-radius: 24px;
  color: var(--imnexa-ink, #15212b);
  background: var(--imnexa-surface, #fff);
  box-shadow: 0 22px 64px rgb(22 32 45 / 11%);
}

body.web-site .auth-login .auth-card-header { display: grid; gap: 18px; }
body.web-site .auth-login .auth-card-kicker { color: var(--imnexa-muted, #52616d); font-size: .78rem; font-weight: 800; }
body.web-site .auth-login .auth-steps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body.web-site .auth-login .auth-steps::before { position: absolute; z-index: 0; inset-inline: 25%; top: 15px; height: 2px; background: var(--imnexa-line, #e4e8eb); content: ""; }
body.web-site .auth-login .auth-steps li { position: relative; z-index: 1; display: grid; grid-template-rows: 31px auto; justify-items: center; align-content: start; gap: 6px; min-width: 0; color: var(--imnexa-muted, #697781); font-size: .78rem; text-align: center; }
body.web-site .auth-login .auth-steps li > span { z-index: 1; display: grid; width: 31px; aspect-ratio: 1; place-items: center; border: 1px solid var(--imnexa-line, #dce2e6); border-radius: 50%; background: var(--imnexa-surface, #fff); font-weight: 800; }
body.web-site .auth-login .auth-steps li.is-current { color: var(--imnexa-ink, #15212b); font-weight: 800; }
body.web-site .auth-login .auth-steps li.is-current > span { border-color: var(--imnexa-primary, #bd4050); color: #fff; background: var(--imnexa-primary, #bd4050); }
body.web-site .auth-login .auth-steps li.is-complete > span { border-color: #24966a; color: #fff; background: #24966a; }

body.web-site .auth-login .auth-form-heading { margin-top: 31px; }
body.web-site .auth-login .auth-code-form .auth-form-heading { margin-top: 0; }
body.web-site .auth-login .auth-step-note { color: var(--imnexa-primary, #bd4050); font-size: .76rem; font-weight: 850; }
body.web-site .auth-login .auth-form-heading :is(h1,h2) { margin: 6px 0 7px; color: var(--imnexa-ink, #15212b); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.55; }
body.web-site .auth-login .auth-form-heading p { margin: 0; color: var(--imnexa-muted, #63717b); font-size: .88rem; line-height: 1.9; }
body.web-site .auth-login .auth-form-heading bdi { color: var(--imnexa-ink, #15212b); font-weight: 800; }
body.web-site .auth-login .auth-destination-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

body.web-site .auth-login .auth-form { display: grid; gap: 9px; margin-top: 24px; }
body.web-site .auth-login .auth-form > label:not(.auth-consent) { margin-top: 2px; color: var(--imnexa-ink, #15212b); font-size: .85rem; font-weight: 800; }
body.web-site .auth-login .auth-form > input:not([type="hidden"]) { width: 100%; min-height: 54px; padding: 12px 15px; border: 1px solid var(--imnexa-line, #d9e0e4); border-radius: 13px; outline: 0; color: var(--imnexa-ink, #15212b); background: var(--imnexa-surface, #fff); direction: ltr; text-align: left; transition: border-color .16s ease, box-shadow .16s ease; }
body.web-site .auth-login .auth-form > input:not([type="hidden"]):focus-visible { border-color: var(--imnexa-primary, #bd4050); box-shadow: 0 0 0 4px rgb(189 64 80 / 14%); }
body.web-site .auth-login .auth-form > input::placeholder { color: #98a4ad; opacity: 1; }
body.web-site .auth-login .auth-form > input[name="code"] { font-size: 1.25rem; font-weight: 800; letter-spacing: .24em; text-align: center; }
body.web-site .auth-login .auth-field-help { margin: 0 0 5px; color: var(--imnexa-muted, #687781); font-size: .75rem; line-height: 1.9; }
body.web-site .auth-login .auth-captcha { min-height: 50px; margin-block: 5px 2px; }
body.web-site .auth-login .auth-submit { min-height: 54px; margin-top: 8px; border-radius: 13px; font-size: .94rem; font-weight: 850; }
body.web-site .auth-login .auth-submit:focus-visible,
body.web-site .auth-login .auth-change-number:focus-visible { outline: 3px solid rgb(189 64 80 / 36%); outline-offset: 3px; }
body.web-site .auth-login .auth-change-number { min-height: 44px; flex: 0 0 auto; margin: 0; padding: 5px 8px; border: 0; border-radius: 8px; color: var(--imnexa-primary, #bd4050); background: transparent; font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
body.web-site .auth-login .auth-change-number:hover { color: var(--imnexa-primary, #bd4050); }
body.web-site .auth-login .auth-consent { display: flex; align-items: flex-start; gap: 9px; margin-block: 7px 3px; color: var(--imnexa-muted, #687781); font-size: .75rem; font-weight: 500; line-height: 1.9; }
body.web-site .auth-login .auth-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 4px 0 0; padding: 0; border-radius: 4px; accent-color: var(--imnexa-primary, #bd4050); }
body.web-site .auth-login .auth-consent a { color: var(--imnexa-primary, #bd4050); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
body.web-site .auth-login .auth-privacy-note,
body.web-site .auth-login .auth-trial-note { color: var(--imnexa-muted, #687781); font-size: .75rem; line-height: 1.9; }
body.web-site .auth-login .auth-privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; }
body.web-site .auth-login .auth-privacy-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: #24966a; }
body.web-site .auth-login .auth-trial-note { margin: 22px 0 0; padding-top: 15px; border-top: 1px solid var(--imnexa-line, #e4e8eb); }
body.web-site .auth-login .dev-code { margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--imnexa-line, #dce2e6); border-radius: 12px; color: var(--imnexa-muted, #52616d); font-size: .8rem; }

@media (max-width: 820px) {
  body.web-site .auth-login { grid-template-columns: minmax(0, 1fr); width: min(560px, calc(100% - 32px)); padding-block: 28px; }
  body.web-site .auth-login .auth-story { display: none; }
  body.web-site .auth-login .auth-card { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 480px) {
  body.web-site .auth-login { width: calc(100% - 24px); padding-block: 20px; }
  body.web-site .auth-login .auth-card { padding: 22px 18px; border-radius: 19px; }
  body.web-site .auth-login .auth-form-heading { margin-top: 25px; }
  body.web-site .auth-login .auth-steps li { gap: 7px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.web-site .auth-login .auth-form > input:not([type="hidden"]) { transition: none; }
}

body.web-site .auth-login .auth-otp-alternative { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--imnexa-line, #dce2e6); border-radius: 14px; background: var(--imnexa-surface, #fff); }
body.web-site .auth-login .auth-otp-alternative > summary { color: var(--imnexa-ink, #15212b); cursor: pointer; font-size: .86rem; font-weight: 850; }
body.web-site .auth-login .auth-otp-alternative > p { margin: 10px 0 0; color: var(--imnexa-muted, #687781); font-size: .78rem; line-height: 1.8; }
body.web-site .auth-login .auth-otp-alternative .auth-form { margin-top: 12px; }
body.web-site .auth-login .auth-reset-link { color: var(--imnexa-primary, #bd4050); font-size: .8rem; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
body.web-site .auth-reset-link > a { min-height: 24px; display: inline-flex; align-items: center; }
body.web-site .auth-login .auth-form-errors { padding: 10px 13px; border: 1px solid rgb(189 64 80 / 30%); border-radius: 12px; color: var(--imnexa-primary, #bd4050); background: rgb(189 64 80 / 7%); font-size: .78rem; line-height: 1.8; }
body.web-site .auth-login .auth-form-errors p { margin: 3px 0; }
body.web-site .auth-login .auth-reset-restart { margin-top: 12px; text-align: center; }
body.web-site .auth-login .auth-reset-restart button { padding: 8px; border: 0; color: var(--imnexa-muted, #687781); background: transparent; cursor: pointer; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
body.web-site .auth-login.auth-single-layout { display: grid; width: min(560px, calc(100% - 32px)); grid-template-columns: minmax(0, 1fr); margin-inline: auto; }
/* The shared mobile auth layout hides its first child as the desktop story panel.
   This single-step page has no story panel, so keep its only child visible. */
body.web-site .auth-login.auth-single-layout > .auth-single-card { display: block; width: 100%; max-width: none; }

body.web-site .auth-login .auth-optional-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 4px;
  padding: 16px;
  border: 1px solid var(--imnexa-line, #dce2e6);
  border-radius: 14px;
  background: color-mix(in srgb, var(--imnexa-surface, #fff) 88%, var(--imnexa-primary, #bd4050) 12%);
}
body.web-site .auth-login .auth-optional-section legend { padding-inline: 8px; color: var(--imnexa-ink, #15212b); font-size: .9rem; font-weight: 850; }
body.web-site .auth-login .auth-optional-section > p { margin: 0; color: var(--imnexa-muted, #687781); font-size: .78rem; line-height: 1.8; }
body.web-site .auth-login .auth-optional-fields { display: grid; gap: 8px; }
body.web-site .auth-login .auth-field-required,
body.web-site .auth-login .auth-field-help { display: inline-block; margin-inline-start: 5px; color: var(--imnexa-muted, #687781); font-size: .72rem; font-weight: 650; }
body.web-site .auth-login .auth-field-required { color: var(--imnexa-primary, #bd4050); }
.web-site .auth-login .auth-form .jalali-date-picker > input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 15px; border: 1px solid var(--imnexa-line, #d9e0e4); border-radius: 13px; outline: 0; color: var(--imnexa-ink, #15212b); background: var(--imnexa-surface, #fff); direction: ltr; text-align: left; }
.web-site .auth-login .auth-form .jalali-date-picker > input:focus-visible { border-color: var(--imnexa-primary, #bd4050); box-shadow: 0 0 0 4px rgb(189 64 80 / 14%); }
.web-site .auth-login .auth-form .jalali-date-picker > input::placeholder { color: #98a4ad; opacity: 1; }

@media (max-width: 480px) {
  body.web-site .auth-login .auth-optional-section { padding: 13px; }
}

@media (max-width: 480px) {
  body.web-site .auth-login .auth-otp-alternative { padding: 12px; }
}
