.customer-login-form,
.login-welcome-copy {
  width: 100%;
}

.login-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 18px;
}

.login-inline-actions .text-button {
  width: auto;
  padding: 0;
}

.new-account-entry {
  margin-top: 12px;
}

.scope-card,
.automatic-api-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid #cfe2f3;
  border-radius: 14px;
  background: #f2f8fd;
  color: #183b56;
  font-size: 13px;
  line-height: 1.8;
}

.scope-card i,
.automatic-api-note i {
  flex: 0 0 auto;
  margin-top: 2px;
}

.scope-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-card strong,
.scope-card small {
  display: block;
  line-height: 1.75;
}

.password-requirements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.password-requirements span::before {
  content: "○";
  margin-left: 6px;
}

.password-requirements span.passed {
  color: #16643f;
}

.password-requirements span.passed::before {
  content: "✓";
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
}

.password-strength {
  margin: -3px 0 10px;
}

.password-strength header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.password-strength header b {
  color: var(--text);
  font-size: 11px;
}

.password-strength > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  direction: rtl;
}

.password-strength i {
  height: 5px;
  border-radius: 999px;
  background: #e1e4e2;
  transition: background .18s ease;
}

.password-strength[data-score="1"] i:nth-child(-n+1) { background: #b33a3a; }
.password-strength[data-score="2"] i:nth-child(-n+2) { background: #d18a22; }
.password-strength[data-score="3"] i:nth-child(-n+3) { background: #8a9c35; }
.password-strength[data-score="4"] i:nth-child(-n+4) { background: #1b7f4d; }

.reset-method-heading {
  margin-bottom: 15px;
}

.recovery-card-summary {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #d4d7d5;
  border-radius: 19px;
  background: #f5f6f5;
}

.recovery-card-preview {
  width: min(78%, 292px);
  min-height: 142px;
  margin: 17px auto 14px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #111 0 58%, #2f3231 100%);
  box-shadow: 0 13px 25px #1112;
  direction: ltr;
}

.recovery-card-preview header,
.recovery-card-preview footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recovery-card-preview header {
  direction: rtl;
  font-size: 9px;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.recovery-card-preview .brand-placeholder {
  width: 52px;
  height: 30px;
  border-radius: 0;
  background-color: transparent !important;
}

.recovery-card-preview > strong {
  font-size: 15px;
  letter-spacing: .09em;
}

.recovery-card-preview footer {
  font-size: 8px;
  letter-spacing: .06em;
}

.recovery-card-preview footer i {
  padding: 4px 8px;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: 7px;
  font-style: normal;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  letter-spacing: 0;
}

.recovery-card-summary > p {
  min-height: 54px;
  margin: 0;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-top: 1px solid #d4d7d5;
  background: #fff;
}

.recovery-card-summary > p > svg {
  width: 18px;
}

.recovery-card-summary > p > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recovery-card-summary > p strong {
  font-size: 8px;
}

.recovery-card-summary > p small {
  color: var(--muted);
  font-size: 6.5px;
  line-height: 1.65;
}

.recovery-security-note {
  min-height: 54px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  color: #303433;
  background: #eef1ef;
}

.recovery-security-note > svg {
  width: 18px;
}

.recovery-security-note > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recovery-security-note strong {
  font-size: 7.5px;
}

.recovery-security-note small {
  color: #646966;
  font-size: 6.4px;
  line-height: 1.65;
}

.recovery-method-options {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.recovery-method-options > header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recovery-method-options h3 {
  margin: 0;
  font-size: 9px;
}

.recovery-method-options header small {
  color: var(--muted);
  font-size: 6px;
}

.recovery-method-option {
  width: 100%;
  min-height: 78px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 1px solid #bfc3c1;
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}

.recovery-method-option:hover,
.recovery-method-option:focus-visible {
  border-color: #111;
  background: #f7f8f7;
  outline: 0;
}

.recovery-method-option:active {
  transform: scale(.99);
}

.recovery-method-option.is-loading,
.recovery-method-option.is-loading:hover {
  border-color: #111;
  background: #f3f5f4;
  cursor: wait;
  transform: none;
}

.recovery-method-option.is-loading > i svg {
  display: none;
}

.recovery-method-option.is-loading > i::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #b9bfbc;
  border-top-color: #111;
  border-radius: 50%;
  animation: recovery-method-spin .7s linear infinite;
}

@keyframes recovery-method-spin {
  to { transform: rotate(360deg); }
}

.recovery-method-option > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #111;
}

.recovery-method-option > span svg {
  width: 18px;
}

.recovery-method-option > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recovery-method-option strong {
  font-size: 8.5px;
}

.recovery-method-option small {
  color: var(--muted);
  font-size: 6.3px;
  line-height: 1.6;
}

.recovery-method-option b {
  width: max-content;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #424744;
  background: #e9ecea;
  font-size: 5.8px;
}

.recovery-method-option > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f1f0;
}

.recovery-method-option > i svg {
  width: 12px;
}

@media (max-height: 760px) {
  .reset-method-heading { margin-top: 18px; }
  .recovery-card-preview { min-height: 118px; margin: 12px auto 10px; }
  .recovery-card-summary > p { min-height: 46px; }
  .recovery-security-note { min-height: 47px; }
  .recovery-method-options { margin-top: 9px; gap: 6px; }
  .recovery-method-option { min-height: 66px; padding-block: 7px; }
}

.brand-placeholder {
  overflow: hidden;
  border: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: #fff url("assets/logo-biz.gif") center 27% / 142% auto no-repeat !important;
}

/* Keep bottom actions clear of the rounded device edge and mobile safe area. */
.login-screen .login-step {
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}

.focused-screen {
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}

.operation-status-mark.success {
  background: #eaf8f0;
  color: #16643f;
}

.known-identity-card {
  min-height: 68px;
  margin: -4px 0 18px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #111;
  border-radius: 15px;
  background: #f5f6f5;
}

.known-identity-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #111;
}

.known-identity-card > span svg {
  width: 17px;
}

.known-identity-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.known-identity-card > div strong {
  direction: ltr;
  text-align: right;
}

.known-identity-card > button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #bfc4c1;
  border-radius: 9px;
  background: #fff;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.identity-fetch-note {
  margin: 4px 0 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border-radius: 13px;
  color: #37413d;
  background: #f1f3f2;
}

.identity-fetch-note > svg {
  width: 19px;
  margin-top: 2px;
}

.identity-fetch-note > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-operation-channels {
  margin: 10px 0 12px;
}

.customer-operation-step .operation-safe-note {
  margin-bottom: 14px;
}

.customer-operation-step .operation-ticket {
  height: auto;
  max-height: none;
  margin: 13px 0 10px;
}

.customer-operation-step .operation-ticket.has-issues,
.customer-operation-step .operation-issues {
  max-height: none;
}

.customer-operation-step .operation-issues {
  padding: 0 12px;
  overflow: visible;
}

.customer-operation-step .operation-issues > header {
  min-height: 47px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d7d9d8;
  background: #fff;
}

.customer-operation-step .operation-issues > header > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-operation-step .operation-issues > header strong {
  font-size: 8px;
}

.customer-operation-step .operation-issues > header small {
  color: var(--muted);
  font-size: 6.2px;
}

.customer-operation-step .operation-issues article {
  min-height: 69px;
  padding: 10px 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.customer-operation-step .operation-issues article > span {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: #fff;
  background: #111;
}

.customer-operation-step .operation-issues article strong {
  font-size: 8px;
}

.customer-operation-step .operation-issues article small {
  margin-top: 3px;
  font-size: 6.4px;
  line-height: 1.75;
}

.customer-operation-step .operation-issues article > b {
  padding: 4px 7px;
  border-radius: 999px;
  color: #4b504e;
  background: #e8eae9;
  font-size: 5.8px;
  white-space: nowrap;
}

.operation-resolution-actions {
  margin: 0 0 13px;
  display: grid;
  gap: 7px;
}

.operation-resolution-actions .secondary-button {
  margin-top: 0;
}

.operation-progress-card {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #d2d5d3;
  border-radius: 14px;
  background: #fff;
}

.operation-progress-card > header {
  min-height: 42px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe1e0;
  background: #f5f6f5;
}

.operation-progress-card > header strong {
  font-size: 8px;
}

.operation-progress-card > header small {
  color: var(--muted);
  font-size: 6px;
}

.operation-progress-card .operation-timeline {
  margin: 0;
  padding: 11px 12px 3px;
}

.operation-progress-card .operation-timeline li {
  min-height: 45px;
}

.operation-progress-card .operation-timeline li:not(:last-child)::after {
  bottom: -1px;
}

.customer-operation-step[data-operation-scenario="customer-error"] .operation-status-mark {
  width: 60px;
  height: 60px;
  margin-top: 11px;
  border-radius: 19px;
}

.customer-operation-step[data-operation-scenario="customer-error"] .operation-status-mark::after {
  border-radius: 24px;
}

.customer-operation-step[data-operation-scenario="customer-error"] .login-heading {
  margin: 16px 0 9px;
}

.customer-operation-step[data-operation-scenario="customer-error"] .login-heading p {
  max-width: 360px;
  margin-right: auto;
  margin-left: auto;
}

.customer-operation-actions {
  margin-top: 3px;
  display: grid;
  gap: 7px;
}

.customer-operation-actions .secondary-button,
.customer-operation-actions .prototype-review-action,
.customer-operation-actions .login-text-button {
  margin-top: 0;
}

.customer-operation-actions .prototype-review-action {
  min-height: 42px;
}

.personal-verified {
  margin-top: 20px;
}

.registry-disclosure {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #111;
  border-radius: 15px;
  background: #fff;
}

.registry-disclosure summary {
  min-height: 70px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.registry-disclosure summary::-webkit-details-marker {
  display: none;
}

.registry-disclosure summary > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #17633f;
  background: #e6f4ec;
}

.registry-disclosure summary > span:first-child svg {
  width: 17px;
}

.registry-disclosure summary > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.registry-disclosure summary > svg {
  width: 16px;
  transition: transform .18s ease;
}

.registry-disclosure[open] summary > svg {
  transform: rotate(180deg);
}

.registry-disclosure dl {
  margin: 0 12px;
  padding: 4px 0;
  border-top: 1px solid #d7dad8;
}

.registry-disclosure dl > div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #eceeed;
}

.registry-disclosure dl > div:last-child {
  border-bottom: 0;
}

.registry-disclosure dd {
  margin: 0;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.registry-disclosure > button {
  min-height: 42px;
  margin: 0 12px 12px;
  padding: 0;
  border: 0;
  border-top: 1px dashed #c7cbc9;
  color: #5b625f;
  background: transparent;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.personal-declarations {
  margin-bottom: 16px;
}

.personal-declarations > header {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.personal-declarations > header small {
  color: var(--muted);
}

.personal-declarations .field:last-child {
  margin-bottom: 0;
}

.personal-form > .primary-button {
  margin-top: 8px;
}

/* Long status and correction screens must create real overflow instead of
   shrinking their cards to the height of the phone mock. */
.login-screen.visible {
  min-height: 0;
}

.customer-operation-step.active,
.correction-plan-step.active {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  justify-content: flex-start;
  padding-bottom: 44px;
}

.customer-operation-step.active > *,
.correction-plan-step.active > * {
  flex: 0 0 auto;
}

.correction-plan-step .login-heading {
  margin-bottom: 13px;
}

.correction-preserved-note {
  margin-bottom: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 9px;
  border-radius: 13px;
  color: #33423b;
  background: #eef3f0;
}

.correction-preserved-note > svg {
  width: 21px;
  height: 21px;
}

.correction-preserved-note > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.correction-preserved-note strong {
  font-size: 7.5px;
}

.correction-preserved-note small {
  color: #66706b;
  font-size: 6.2px;
  line-height: 1.65;
}

.correction-task-list {
  display: grid;
  gap: 10px;
}

.correction-task-card {
  width: 100%;
  min-height: 142px;
  padding: 12px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 9px 10px;
  border: 1px solid #c6cac8;
  border-radius: 15px;
  color: #111;
  background: #fff;
  text-align: right;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.correction-task-card:hover,
.correction-task-card:focus-visible {
  border-color: #111;
  box-shadow: 0 7px 20px rgba(17, 17, 17, .08);
  outline: none;
  transform: translateY(-1px);
}

.correction-task-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #111;
  font-size: 8px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
}

.correction-task-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.correction-task-content > small {
  color: var(--muted);
  font-size: 6px;
}

.correction-task-content > strong {
  margin-top: 2px;
  font-size: 8.5px;
}

.correction-task-content > i {
  margin-top: 5px;
  color: #656b68;
  font-size: 6.3px;
  font-style: normal;
  line-height: 1.75;
}

.correction-task-content > b {
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 5.8px;
}

.correction-task-route {
  grid-column: 2;
  min-height: 34px;
  padding-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #e1e3e2;
}

.correction-task-route small {
  color: var(--muted);
  font-size: 5.8px;
}

.correction-task-route strong {
  font-size: 6.3px;
}

.correction-task-route svg {
  width: 13px;
  height: 13px;
}

.correction-task-card.is-complete {
  border-color: #8ebca4;
  background: #fbfdfc;
}

.correction-task-card.is-complete .correction-task-number,
.correction-task-card.is-complete .correction-task-content > b {
  background: #237a55;
}

.correction-task-card.is-complete .correction-task-content > b {
  color: #fff;
}

.correction-plan-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.correction-plan-actions .primary-button {
  margin: 0;
}

.correction-plan-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 6px;
  line-height: 1.7;
  text-align: center;
}

#login-step-new-profile[data-correction-task="address"] .correction-unrelated-field {
  display: none !important;
}

#login-step-new-profile[data-correction-task="address"] .profile-correction-banner {
  margin-top: 12px;
}

#login-step-new-profile[data-correction-task="address"] .profile-form {
  margin-top: 2px;
}

#login-step-new-profile[data-correction-task="address"] .postal-search-field {
  margin-top: 4px;
}

.correction-operator-message {
  padding: 14px 15px;
  border: 1px solid #d8ddd9;
  border-radius: 14px;
  background: #f6f8f7;
}

.correction-operator-message strong {
  font-size: 12px;
}

.correction-operator-message p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.correction-task-content > ul {
  margin: 8px 0 5px;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.correction-task-content > ul li {
  display: flex;
  flex-direction: column;
}

.correction-task-content > ul strong {
  font-size: 11px;
}

.correction-task-content > ul small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

[data-correction-mode] .login-heading::before {
  content: "اصلاح همان بخش؛ سایر اطلاعات محفوظ است";
  display: block;
  margin-bottom: 8px;
  color: #8a5b23;
  font-size: 10px;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

@media (max-width: 560px) {
  .password-requirements {
    grid-template-columns: 1fr;
  }
}
