html.auth-ready body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
html.auth-ready body.woocommerce-account:not(.logged-in) .woocommerce-form-register,
html.auth-ready body.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword,
html.auth-ready body.woocommerce-account:not(.logged-in) .u-columns {
  display: none;
}

.auth-account-note {
  max-width: 420px;
  margin: 48px auto;
  padding: 28px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.auth-account-note p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-account-open {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.auth-modal-on {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 69, 59, 0.52);
}

.auth-modal-box {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(26, 69, 59, 0.18);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: var(--cream);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.auth-modal-close:focus-visible,
.auth-form input:focus-visible,
.auth-submit:focus-visible,
.auth-text-btn:focus-visible,
.auth-otp-box:focus-visible,
.auth-account-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-modal-head {
  margin: 0 0 22px;
}

.auth-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-modal-box h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-hint,
.auth-otp-to {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-step {
  display: grid;
  gap: 8px;
}

.auth-step[hidden] {
  display: none;
}

.auth-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-phone {
  display: flex;
  align-items: stretch;
  direction: ltr;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.auth-phone:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 148, 3, 0.18);
}

.auth-phone-cc {
  display: grid;
  place-items: center;
  min-width: 58px;
  color: var(--ink);
  background: rgba(26, 69, 59, 0.06);
  border-inline-end: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-phone input,
.auth-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.auth-form input[type="text"] {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 600;
}

.auth-form input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 148, 3, 0.18);
  outline: 0;
}

.auth-phone input::placeholder,
.auth-form input::placeholder {
  color: rgba(92, 110, 104, 0.55);
  font-weight: 500;
  letter-spacing: 0;
}

.auth-otp-to {
  margin-bottom: 4px;
}

.auth-otp-to b {
  color: var(--ink);
  font-weight: 800;
}

.auth-otp {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  direction: ltr;
}

.auth-otp-box {
  width: 100%;
  min-height: 52px;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.auth-otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 148, 3, 0.18);
  outline: 0;
}

.auth-otp-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-text-btn {
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-text-btn:disabled {
  color: var(--muted);
  cursor: default;
}

.auth-status {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.auth-status.is-error {
  color: #b42318;
}

.auth-submit {
  min-height: 52px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 480px) {
  .auth-modal-box {
    padding: 24px 18px 18px;
  }

  .auth-phone input,
  .auth-otp-box {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-box,
  .auth-submit,
  .auth-phone,
  .auth-otp-box {
    transition: none;
  }
}
