.auth-methods {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid #d7dfd6;
  border-radius: 10px;
  background: #eff3ed;
}

.auth-methods input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.auth-methods label {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 6px;
  color: #3e574b;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.auth-methods input:checked + label {
  background: #194b39;
  color: #fff;
}

.auth-methods input:focus-visible + label,
.auth-methods label:hover {
  box-shadow: inset 0 0 0 2px #9a7437;
}

.auth-methods input:checked:focus-visible + label {
  box-shadow: inset 0 0 0 2px #e6d094;
}

@media (max-width: 768px) {
  .auth-page .form-control,
  .auth-page .form-select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

.auth-methods input:disabled + label {
  color: #68796f;
  cursor: default;
  box-shadow: none;
}

.auth-otp-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-otp-row .form-control {
  min-width: 0;
  flex: 1;
}

.auth-otp-row .btn-otp {
  flex: none;
  padding: 8px 12px;
  border: 1px solid #d9c798;
  border-radius: 8px;
  background: #efe3c0;
  color: #513e17;
  font-size: .82rem;
  font-weight: 700;
}

.auth-otp-row .btn-otp:disabled { opacity: .62; }
.auth-otp-status, .auth-otp-timer { margin: 6px 0 0; color: #426454; font-size: .84rem; }
.auth-otp-status.is-error { color: #a22634; }
.auth-otp-status:empty, .auth-otp-timer:empty { margin: 0; }
.auth-otp-code { letter-spacing: .18em; }
.auth-otp-code::placeholder { letter-spacing: 0; }

.shop-setup-page {
  min-height: 100vh;
  background: #eff2eb;
  color: #1d352c;
  font-family: Inter, system-ui, sans-serif;
}

.shop-setup {
  width: min(650px, calc(100% - 32px));
  margin: clamp(24px, 6vw, 64px) auto 32px;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid #d6dfd3;
  border-radius: 8px;
  color: #4a6054;
  font-size: .84rem;
  font-weight: 650;
  text-align: center;
}

.setup-steps li span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 100%;
  background: #dbe6da;
  font-size: .75rem;
}

.setup-steps .is-current { background: #194b39; color: #fff; border-color: #194b39; }
.setup-steps .is-current span { background: #fff; color: #194b39; }
.setup-steps .is-done { color: #194b39; }

.setup-card {
  padding: clamp(17px, 4vw, 32px);
  border: 1px solid #cedbce;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px -27px #244939;
}

.setup-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

.setup-description { margin: 8px 0 22px; color: #4a6054; line-height: 1.55; }

.setup-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setup-field-wide { grid-column: 1 / -1; }
.setup-fields label { margin-bottom: 6px; font-size: .87rem; font-weight: 650; }
.setup-fields label span { color: #516459; font-weight: 400; }
.setup-fields label .setup-required { margin-left: 3px; color: #dc2626; font-weight: 750; }
.setup-required-note { margin: -12px 0 20px; color: #516459; font-size: .84rem; }
.setup-required-note span { color: #dc2626; font-weight: 750; }
.setup-fields .form-control { min-height: 46px; border-color: #aebdb1; border-radius: 8px; }

.setup-fields .form-control:focus {
  border-color: #37624c;
  box-shadow: 0 0 0 3px #37624c28;
}

.setup-message {
  margin: 14px 0 0;
  color: #a22634;
  font-size: .88rem;
}

.setup-message:empty { margin: 0; }

.setup-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #194b39;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.setup-button:hover { background: #123b2d; color: #fff; }
.setup-button:disabled { opacity: .68; }
.setup-dashboard-link { color: #194b39; text-underline-offset: 3px; }
.setup-dashboard-link { display: inline-block; margin: 12px 0 0 12px; }
.setup-success-icon { display: block; margin-bottom: 8px; color: #194b39; font-size: 1.8rem; }
.shop-setup-page .erp-shell-skip:not(:focus) { clip-path: inset(50%); }

@media (max-width: 520px) {
  .setup-fields { grid-template-columns: 1fr; gap: 12px; }
  .setup-steps li { gap: 4px; font-size: .75rem; }
}

.auth-navigation, .auth-page .language-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-navigation { justify-content: space-between; margin: 0 0 12px; }
.auth-navigation .auth-home { margin: 0; }
.auth-page .language-picker { font-size: .84rem; }
.auth-page .language-picker label { font-weight: 650; }
.auth-page .language-picker select {
  max-width: 100%;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid #aebdb1;
  border-radius: 7px;
  background: #fbfcfa;
  color: #273c33;
}
.signup-body > .language-picker { justify-content: flex-end; margin-bottom: 14px; }
[dir="rtl"] .setup-dashboard-link { margin-left: 0; margin-right: 12px; }

.setup-section {
  margin: 24px 0 0;
  padding-top: 17px;
  border-top: 1px solid #e0e8e0;
  min-width: 0;
}

.setup-section legend {
  float: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #203b2d;
}
.setup-section legend span { color: #516459; font-size: .84rem; font-weight: 400; }

.setup-brand-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce6dd;
  border-radius: 10px;
  background: #f8faf7;
}

.setup-brand-panel h2 { margin: 0 0 5px; font-size: .97rem; font-weight: 700; }
.setup-brand-panel h2 span { color: #516459; font-size: .84rem; font-weight: 400; }
.setup-brand-panel p { margin: 0 0 10px; color: #4a6054; font-size: .86rem; }

.setup-image-preview {
  display: grid;
  min-height: 94px;
  margin-bottom: 12px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e8e0;
  border-radius: 8px;
}

.setup-image-preview[hidden], .setup-image-preview [hidden] { display: none; }
.setup-image-preview img, .setup-image-preview canvas { max-width: 100%; max-height: 170px; object-fit: contain; }
.setup-brand-panel input[type=file] { min-height: auto; font-size: .82rem; }

.setup-secondary-button {
  margin-top: 10px;
  padding: 6px 10px;
  color: #194b39;
  background: #fff;
  border: 1px solid #aebdb1;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 650;
}

.setup-secondary-button:hover { background: #eef4ee; }
