/* Authentication only: shared by password login and the recovery steps. */
#auth.auth.auth-workspace {
  --auth-ink: #173b42;
  --auth-muted: #5b7076;
  --auth-line: #dce7e7;
  --auth-teal: #116c67;
  --auth-deep: #123d40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px 24px;
  background: #eef4f3;
  color: var(--auth-ink);
  line-height: 1.85;
}
#auth.auth.auth-workspace[hidden],
#auth.auth.auth-workspace [hidden] { display: none !important; }
#auth.auth.auth-workspace *,
#auth.auth.auth-workspace *::before,
#auth.auth.auth-workspace *::after { box-sizing: border-box; }
#auth.auth.auth-workspace .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
  width: min(100%, 1020px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 64px #183f3c0d, 0 3px 12px #183f3c05;
}
#auth.auth.auth-workspace .auth-card.panel {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 38px 48px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
#auth.auth.auth-workspace .auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: var(--auth-ink);
  text-decoration: none;
}
#auth.auth.auth-workspace .auth-brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--auth-teal);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
#auth.auth.auth-workspace .auth-brand img {
  display: block;
  width: 52px;
  height: 44px;
  object-fit: contain;
}
#auth.auth.auth-workspace .auth-brand-symbol img { width: 100%; height: 100%; padding: 3px; border-radius: 11px; background: #fff; }
#auth.auth.auth-workspace .auth-brand-name {
  display: block;
  max-width: 100%;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#auth.auth.auth-workspace .auth-brand-caption {
  display: block;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 400;
}
#auth.auth.auth-workspace .auth-role-switch {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 27px;
  border: 1px solid #e6edec;
  border-radius: 12px;
  background: #f3f7f6;
}
#auth.auth.auth-workspace button,
#auth.auth.auth-workspace .auth-link {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
#auth.auth.auth-workspace .auth-role-switch button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  background: transparent;
  color: #526b70;
  font-size: 13px;
  font-weight: 500;
}
#auth.auth.auth-workspace .auth-role-switch button.is-active,
#auth.auth.auth-workspace .auth-role-switch button[aria-pressed="true"] {
  background: #fff;
  color: #0a5e59;
  box-shadow: 0 1px 5px #153c3c12;
  font-weight: 700;
}
#auth.auth.auth-workspace .auth-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #477274;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
#auth.auth.auth-workspace h1 {
  margin: 0 0 10px;
  color: var(--auth-ink);
  font-size: 26px;
  line-height: 1.65;
  font-weight: 800;
}
#auth.auth.auth-workspace .auth-description,
#auth.auth.auth-workspace .muted {
  margin: 0 0 25px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.95;
}
#auth.auth.auth-workspace form { margin: 0; }
#auth.auth.auth-workspace .auth-field { margin: 0 0 17px; }
#auth.auth.auth-workspace label {
  margin: 0 0 7px;
  color: #25464c;
  font-size: 13px;
  font-weight: 600;
}
#auth.auth.auth-workspace input,
#auth.auth.auth-workspace select {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid #cfddde;
  border-radius: 10px;
  background: #fff;
  color: #1c3d43;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
#auth.auth.auth-workspace input::placeholder { color: #61777a; font-size: 14px; opacity: 1; }
#auth.auth.auth-workspace input:focus,
#auth.auth.auth-workspace select:focus {
  outline: none;
  border-color: #287f77;
  box-shadow: 0 0 0 3px #16766b14;
}
#auth.auth.auth-workspace input[aria-invalid="true"] { border-color: #b24843; }
#auth.auth.auth-workspace .auth-input-wrap { position: relative; }
#auth.auth.auth-workspace .auth-input-wrap input { padding-left: 88px; }
#auth.auth.auth-workspace .auth-password-toggle {
  position: absolute;
  inset-inline-end: 4px;
  top: 3px;
  min-height: 43px;
  padding: 8px 10px;
  background: transparent;
  color: #346b69;
  font-size: 12px;
  font-weight: 500;
}
#auth.auth.auth-workspace .auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -6px 0 14px;
}
#auth.auth.auth-workspace .auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  background: transparent;
  color: #126a64;
  font-size: 13px;
}
#auth.auth.auth-workspace .auth-link:hover { color: #064d48; text-decoration: underline; }
#auth.auth.auth-workspace .auth-link[aria-disabled="true"] { opacity: .55; cursor: progress; text-decoration: none; }
#auth.auth.auth-workspace .auth-submit,
#auth.auth.auth-workspace button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  margin: 2px 0 0;
  padding: 11px 16px;
  background: var(--auth-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}
#auth.auth.auth-workspace .auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  margin: 12px 0 0;
  border: 1px solid #cddfda;
  background: #fff;
  color: #226760;
  font-size: 13px;
}
#auth.auth.auth-workspace button:disabled { cursor: default; opacity: .6; }
#auth.auth.auth-workspace button[aria-busy="true"] { cursor: progress; }
#auth.auth.auth-workspace button:focus-visible,
#auth.auth.auth-workspace a:focus-visible,
#auth.auth.auth-workspace [tabindex]:focus-visible {
  outline: 3px solid #489c90;
  outline-offset: 3px;
}
#auth.auth.auth-workspace .auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #526e71;
  font-size: 11px;
}
#auth.auth.auth-workspace .auth-signup {
  margin: 23px 0 0;
  padding-top: 19px;
  border-top: 1px solid #e7eeec;
  color: var(--auth-muted);
  text-align: center;
  font-size: 13px;
}
#auth.auth.auth-workspace .auth-signup a { margin-inline-start: 5px; color: #0c6b64; font-weight: 650; }
#auth.auth.auth-workspace .auth-signup:empty { display: none; }
#auth.auth.auth-workspace .auth-message {
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid #d4e5e2;
  border-radius: 10px;
  background: #f0f7f5;
  color: #355e59;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
#auth.auth.auth-workspace .auth-message:empty { display: none; }
#auth.auth.auth-workspace .auth-message.is-error { border-color: #f1d1cc; background: #fff5f3; color: #953d36; }
#auth.auth.auth-workspace .auth-message.is-success { border-color: #c9e5d9; background: #eff9f3; color: #286347; }
#auth.auth.auth-workspace .auth-story {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 44px 36px;
  background: var(--auth-deep);
  color: #eff9f6;
}
#auth.auth.auth-workspace .auth-story-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #afcdc6; font-size: 12px; }
#auth.auth.auth-workspace .auth-story-badge { padding: 4px 9px; border: 1px solid #406862; border-radius: 20px; color: #c4dbd3; font-size: 10px; }
#auth.auth.auth-workspace .auth-story .auth-eyebrow { color: #afcdc6; }
#auth.auth.auth-workspace .auth-story .auth-footnote { color: #bdd4ce; }
#auth.auth.auth-workspace .auth-story-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 270px;
  min-height: 150px;
  gap: 11px;
  margin: 18px auto 25px;
  color: #92cfc0;
}
#auth.auth.auth-workspace .auth-story-mark svg { display: block; width: 100%; max-height: 170px; }
#auth.auth.auth-workspace .auth-story-mark > span { display: block; flex: 0 1 23px; width: 23px; height: 34px; border-radius: 8px; background: #76bba5; color: transparent; font-size: 0; }
#auth.auth.auth-workspace .auth-story-mark > span:nth-child(2) { height: 71px; }
#auth.auth.auth-workspace .auth-story-mark > span:nth-child(3) { height: 112px; background: #d7eadf; }
#auth.auth.auth-workspace .auth-story-mark > span:nth-child(4) { height: 51px; }
#auth.auth.auth-workspace .auth-story-mark > span:nth-child(5) { height: 86px; background: #a0d3bd; }
#auth.auth.auth-workspace .auth-story-mark > span:nth-child(6) { height: 35px; }
#auth.auth.auth-workspace .auth-story h2 {
  margin: 0 0 14px;
  color: #f6fbf9;
  font-size: 27px;
  line-height: 1.8;
  font-weight: 750;
}
#auth.auth.auth-workspace .auth-story p { margin: 0 0 24px; color: #bdd4ce; font-size: 13px; line-height: 2.1; }
#auth.auth.auth-workspace .auth-benefits { display: grid; gap: 16px; margin: 7px 0 30px; padding: 0; list-style: none; }
#auth.auth.auth-workspace .auth-benefits li { display: flex; align-items: center; gap: 12px; color: #e3f0eb; font-size: 13px; }
#auth.auth.auth-workspace .auth-benefits li > span:first-child,
#auth.auth.auth-workspace .auth-benefits li > i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #48716b;
  border-radius: 9px;
  color: #b7e2d1;
  font-size: 13px;
}
#auth.auth.auth-workspace .auth-story-footer { margin-top: auto; padding-top: 23px; border-top: 1px solid #335a57; color: #9dc0b5; font-size: 11px; line-height: 2; }
#auth.auth.auth-workspace .auth-footer { margin: 0; color: #526c63; text-align: center; font-size: 11px; }
#auth.auth.auth-workspace .auth-progress {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e8eeec;
  list-style: none;
  counter-reset: auth-step;
}
#auth.auth.auth-workspace .auth-progress li { flex: 1; min-width: 0; color: #5c7476; font-size: 11px; text-align: center; }
#auth.auth.auth-workspace .auth-progress li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin: 0 auto 7px;
  border: 1px solid #d8e4e1;
  border-radius: 50%;
  background: #f6f9f8;
  color: #617d76;
  font-size: 12px;
  content: counter(auth-step, persian);
  counter-increment: auth-step;
}
#auth.auth.auth-workspace .auth-progress li > span[aria-hidden="true"] { display: none; }
#auth.auth.auth-workspace .auth-progress .is-current { color: #0c625b; font-weight: 700; }
#auth.auth.auth-workspace .auth-progress .is-current::before { border-color: #127568; background: #127568; color: #fff; }
#auth.auth.auth-workspace .auth-progress .is-complete { color: #327569; }
#auth.auth.auth-workspace .auth-progress .is-complete::before { border-color: #c9e4da; background: #e8f5ee; color: #266f5d; content: "✓"; }
#auth.auth.auth-workspace .auth-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; }
#auth.auth.auth-workspace .auth-code-input { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
#auth.auth.auth-workspace .auth-footnote { display: block; margin: 8px 0 15px; color: #526e71; font-size: 12px; line-height: 1.9; }

@media (max-width: 900px) {
  #auth.auth.auth-workspace .auth-card.panel { padding: 34px 30px; }
  #auth.auth.auth-workspace .auth-story { padding: 35px 27px; }
  #auth.auth.auth-workspace .auth-story h2 { font-size: 23px; }
}
@media (max-width: 720px) {
  #auth.auth.auth-workspace { justify-content: flex-start; gap: 18px; padding: 28px 16px 20px; }
  #auth.auth.auth-workspace .auth-layout { display: block; width: min(100%, 470px); border-radius: 20px; }
  #auth.auth.auth-workspace .auth-card.panel { padding: 30px 27px; }
  #auth.auth.auth-workspace .auth-story { display: none; }
  #auth.auth.auth-workspace .auth-brand { margin-bottom: 25px; }
  #auth.auth.auth-workspace .auth-role-switch { margin-bottom: 22px; }
  #auth.auth.auth-workspace h1 { font-size: 24px; }
  #auth.auth.auth-workspace .auth-description { margin-bottom: 23px; }
}
@media (max-width: 360px) {
  #auth.auth.auth-workspace { padding: 16px 12px; }
  #auth.auth.auth-workspace .auth-card.panel { padding: 25px 20px; }
  #auth.auth.auth-workspace .auth-brand-name { font-size: 21px; }
  #auth.auth.auth-workspace .auth-role-switch button { font-size: 12px; padding-inline: 3px; }
  #auth.auth.auth-workspace h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth.auth.auth-workspace *,
  #auth.auth.auth-workspace *::before,
  #auth.auth.auth-workspace *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

#auth.auth.auth-workspace .auth-brand.auth-brand-compact { margin-bottom: 14px; }

/* One shared card for sign-in, registration and account recovery. */
#auth.auth.auth-workspace.auth-compact {
  justify-content: center;
  gap: 0;
  padding: 32px 20px;
}
#auth.auth.auth-workspace.auth-compact .auth-layout {
  display: block;
  width: min(100%, 480px);
  border-radius: 21px;
}
#auth.auth.auth-workspace.auth-compact .auth-card.panel { padding: 36px; }
#auth.auth.auth-workspace.auth-compact .auth-brand { margin-bottom: 23px; }
#auth.auth.auth-workspace.auth-compact .auth-brand.auth-brand-compact { margin-bottom: 19px; }
#auth.auth.auth-workspace.auth-compact h1 { margin-bottom: 24px; font-size: 25px; }
#auth.auth.auth-workspace.auth-compact .auth-description,
#auth.auth.auth-workspace.auth-compact .muted { margin-bottom: 21px; }
#auth.auth.auth-workspace.auth-compact .auth-field { margin-bottom: 18px; }
#auth.auth.auth-workspace.auth-compact .auth-signup { margin-top: 23px; padding-top: 19px; }
#auth.auth.auth-workspace.auth-compact .auth-story,
#auth.auth.auth-workspace.auth-compact .auth-role-switch { display: none; }
#auth.auth.auth-workspace.auth-compact.auth-registration .auth-layout { width: min(100%, 640px); }
#auth.auth.auth-workspace .auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 20px;
}
#auth.auth.auth-workspace .auth-grid > .auth-field { margin: 0; min-width: 0; }
#auth.auth.auth-workspace .auth-grid .auth-span-full { grid-column: 1 / -1; }
#auth.auth.auth-workspace .auth-step { min-width: 0; margin: 0; padding: 0; border: 0; }
#auth.auth.auth-workspace .auth-step legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#auth.auth.auth-workspace textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 11px 14px;
  border: 1px solid #cfddde;
  border-radius: 10px;
  background: #fff;
  color: #1c3d43;
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
}
#auth.auth.auth-workspace textarea:focus { outline: none; border-color: #287f77; box-shadow: 0 0 0 3px #16766b14; }
#auth.auth.auth-workspace textarea[aria-invalid="true"] { border-color: #b24843; }
#auth.auth.auth-workspace .auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 19px 0;
  padding: 7px 0;
  color: #405f61;
  font-size: 13px;
  line-height: 1.95;
  font-weight: 400;
  cursor: pointer;
}
#auth.auth.auth-workspace .auth-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 4px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--auth-teal);
  cursor: pointer;
}
#auth.auth.auth-workspace .auth-check input[type="checkbox"]:focus-visible { outline: 3px solid #489c90; outline-offset: 3px; }
#auth.auth.auth-workspace.auth-registration .auth-actions { margin-top: 18px; }
#auth.auth.auth-workspace.auth-registration .auth-actions > .auth-submit,
#auth.auth.auth-workspace.auth-registration .auth-actions > .auth-secondary {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 49px;
  margin: 0;
}
#auth.auth.auth-workspace .auth-help {
  margin-top: 19px;
  padding-top: 9px;
  border-top: 1px solid #e5edeb;
  color: #526e71;
  font-size: 12px;
}
#auth.auth.auth-workspace .auth-help summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: #246a64;
  cursor: pointer;
  list-style: none;
}
#auth.auth.auth-workspace .auth-help summary::before { content: "+"; font-size: 17px; line-height: 1; }
#auth.auth.auth-workspace .auth-help[open] summary::before { content: "−"; }
#auth.auth.auth-workspace .auth-help summary::-webkit-details-marker { display: none; }
#auth.auth.auth-workspace .auth-help summary:focus-visible { outline: 3px solid #489c90; outline-offset: 3px; border-radius: 5px; }
#auth.auth.auth-workspace .auth-help p { margin: 0 0 10px; color: #526e71; font-size: 12px; line-height: 1.95; }

@media (max-width: 560px) {
  #auth.auth.auth-workspace.auth-compact { padding: 24px 16px; }
  #auth.auth.auth-workspace.auth-compact .auth-card.panel { padding: 29px 24px; }
  #auth.auth.auth-workspace.auth-compact h1 { font-size: 23px; }
  #auth.auth.auth-workspace .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #auth.auth.auth-workspace.auth-registration .auth-progress { gap: 5px; }
}
@media (max-width: 360px) {
  #auth.auth.auth-workspace.auth-compact { padding: 16px; }
  #auth.auth.auth-workspace.auth-compact .auth-card.panel { padding: 25px 20px; }
  #auth.auth.auth-workspace.auth-compact h1 { font-size: 22px; }
}
