.tp-auth-page {
  background: #fffaf5;
}

/* Registration controls use the same icon-led input treatment as the approved
   Batch 2 reference while keeping the native form fields and actions intact. */
.tp-input-control {
  position: relative;
  display: block;
  width: 100%;
}

.tp-input-control > i:first-child {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  width: 20px;
  transform: translateY(-50%);
  color: #8793ae;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.tp-input-control input:not([type="checkbox"]):not([type="radio"]) {
  padding-left: 48px !important;
}

@media (max-width: 480px) {
  .tp-auth-register {
    background: #fff;
  }

  .tp-auth-register .tp-auth-layout {
    min-height: 0;
    padding: 72px 0 0;
  }

  .tp-auth-register .tp-auth-topbar {
    width: 100%;
  }

  .tp-auth-register .tp-auth-back {
    color: var(--tp-brand-600);
    font-size: 23px;
  }

  .tp-auth-register .tp-auth-brand img {
    max-width: 112px;
    max-height: 42px;
  }

  .tp-auth-register .tp-auth-visual {
    width: 100%;
    height: 174px;
    margin: 0;
    border-radius: 16px;
  }

  .tp-auth-register .tp-auth-visual img {
    object-position: 50% 44%;
  }

  .tp-auth-register .tp-auth-panel {
    width: 100%;
    padding: 20px 28px 8px;
  }

  .tp-auth-register .tp-auth-panel h1 {
    width: 100%;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.045em;
    text-align: center;
  }

  .tp-auth-register .tp-auth-panel h1::after {
    width: 100px;
    height: 9px;
    margin: -3px 0 0 34px;
    border-radius: 0;
    background: transparent var(--tpsi-title-underline, url("../auth/title-underline.png")) center / contain no-repeat;
  }

  .tp-auth-register .tp-auth-intro {
    max-width: 310px;
    margin: 8px auto 8px;
    color: #637397;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
  }

  .tp-auth-register .tp-auth-form {
    display: grid;
    gap: 0;
  }

  .tp-auth-register .tp-auth-form .tp-field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #071a4d;
    font-weight: 700;
    text-align: left;
  }

  .tp-auth-register .tp-auth-form .tp-field + .tp-field {
    margin-top: 20px;
  }

  .tp-auth-register .tp-field > span:first-child,
  .tp-auth-register .tp-field > label,
  .tp-auth-register .tp-intent-fieldset legend {
    font-family: var(--tp-font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
  }

  .tp-auth-register .tp-field .controls {
    width: 100%;
    margin: 0;
  }

  .tp-auth-register .tp-field input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 46px;
    padding-right: 15px;
    border: 1px solid #d5dce8;
    border-radius: 12px;
    background: #fff;
    color: #071a4d;
    font-size: 15px;
    font-weight: 400;
  }

  .tp-auth-register .tp-field input::placeholder {
    color: #7f8dab;
    opacity: 1;
  }

  .tp-auth-register .tp-password-control input {
    padding-right: 52px !important;
  }

  .tp-auth-register .tp-password-control > button {
    right: 5px;
    width: 42px;
    height: 42px;
    color: #7f8dab;
    font-size: 18px;
  }

  .tp-auth-register .tp-field small {
    display: block;
    margin-top: -2px;
    color: #637397;
    font-size: 12px;
    line-height: 1.4;
  }

  .tp-auth-register .tp-intent-fieldset {
    display: grid;
    gap: 6px;
    margin: 11px 0 0;
  }

  .tp-auth-register .tp-intent-fieldset legend {
    margin: 0;
  }

  .tp-auth-register .tp-intent-card {
    grid-template-columns: 22px 42px minmax(0, 1fr);
    gap: 8px;
    min-height: 42px;
    padding: 4px 11px;
    border: 1px solid #d5dce8;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
  }

  .tp-auth-register .tp-intent-card:has(input:checked) {
    border-color: #0757e8;
    background: #fff;
    box-shadow: inset 0 0 0 1px #0757e8;
  }

  .tp-auth-register .tp-intent-card > input {
    position: static;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0757e8;
    opacity: 1;
  }

  .tp-auth-register .tp-intent-card__icon {
    width: 42px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    color: #0757e8;
    font-size: 24px;
  }

  .tp-auth-register .tp-intent-card:nth-of-type(2) .tp-intent-card__icon {
    color: #ff5d45;
  }

  .tp-auth-register .tp-intent-card strong {
    font-family: var(--tp-font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
  }

  .tp-auth-register .tp-intent-card small,
  .tp-auth-register .tp-intent-card__check {
    display: none;
  }

  .tp-auth-register .tp-intent-note {
    margin: 6px 2px 0;
    color: #637397;
    font-size: 12px;
    line-height: 1.4;
  }

  .tp-auth-register .tp-terms-check {
    align-items: center;
    gap: 9px;
    margin: 8px 2px 0;
    color: #637397;
    font-size: 12px;
    line-height: 1.4;
  }

  .tp-auth-register .tp-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .tp-auth-register .tp-auth-submit {
    min-height: 47px;
    margin-top: 9px;
    border-radius: 11px;
    font-family: var(--tp-font-display);
    font-size: 16px;
    font-weight: 700;
  }

  .tp-auth-register .tp-auth-switch {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.4;
  }
}

.tp-auth-page .tp-site-header,
.tp-auth-page .tp-overlay-backdrop,
.tp-auth-page .tp-drawer,
.tp-auth-page .tp-sheet,
.tp-auth-page .tp-bottom-nav,
.tp-auth-page .tp-browser-footer {
  display: none !important;
}

.tp-auth-page .tp-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tp-auth-page .tp-content > #main {
  width: 100%;
}

.tp-auth-page .tp-flash {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  max-width: 640px;
}

.tp-auth-page .tp-flash:not(:empty) {
  margin-top: 72px;
}

.tp-auth-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 72px;
  padding: 10px 18px;
}

.tp-auth-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 25, 77, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--tp-navy-950);
  box-shadow: var(--tp-shadow-sm);
}

.tp-auth-brand {
  display: flex;
  justify-content: center;
}

.tp-auth-brand .logo {
  display: inline-flex;
  align-items: center;
  max-width: 145px;
  margin: 0;
}

.tp-auth-brand img {
  max-width: 145px;
  max-height: 42px;
}

.tp-auth-layout {
  display: grid;
  min-height: 100vh;
  padding-top: 72px;
}

.tp-auth-visual {
  height: 215px;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: #f3e8dc;
}

.tp-auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-auth-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tp-auth-visual--register img {
  object-position: 50% 44%;
}

.tp-auth-panel {
  align-self: start;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 30px 24px 48px;
}

.tp-eyebrow {
  margin: 0 0 10px;
  color: var(--tp-coral-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tp-auth-panel h1,
.tp-security-card h1 {
  position: relative;
  margin: 0;
  color: var(--tp-navy-950);
  font-family: var(--tp-font-display);
  font-size: clamp(27px, 7vw, 40px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.tp-auth-panel h1::after,
.tp-security-card h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-coral-500);
}

.tp-auth-intro {
  margin: 17px 0 26px;
  color: var(--tp-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

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

.tp-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--tp-text);
  font-weight: 600;
}

.tp-field > span:first-child,
.tp-field > label,
.tp-intent-fieldset legend {
  font-size: 14px;
}

.tp-field .controls {
  width: 100%;
}

.tp-field input:not([type="checkbox"]):not([type="radio"]),
.tp-auth-form > input[type="email"],
.tp-auth-form > input[type="text"] {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-control);
  background: var(--tp-surface);
  color: var(--tp-text);
  font: 500 16px var(--tp-font-ui);
  outline: none;
  box-shadow: none;
}

.tp-field input:focus {
  border-color: var(--tp-brand-500) !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 232, .12) !important;
}

.tp-field small {
  color: var(--tp-text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.tp-password-control {
  position: relative;
  display: block;
}

.tp-password-control input {
  padding-right: 52px !important;
}

.tp-password-control > button {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--tp-text-muted);
}

.tp-auth-row,
.tp-check,
.tp-auth-inline-actions {
  display: flex;
  align-items: center;
}

.tp-auth-row {
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.tp-auth-row a,
.tp-auth-switch a,
.tp-auth-inline-actions button,
.tp-security-back {
  color: var(--tp-brand-600);
  font-weight: 700;
  text-decoration: none;
}

.tp-check {
  gap: 9px;
  margin: 0;
  color: var(--tp-text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.tp-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--tp-brand-500);
}

.tp-auth-submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border-radius: var(--tp-radius-control);
  font-size: 15px;
  font-weight: 700;
}

.tp-auth-switch {
  margin: 24px 0 0;
  color: var(--tp-text-secondary);
  text-align: center;
  font-size: 14px;
}

.tp-auth-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 0;
  color: var(--tp-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.tp-auth-support__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tp-brand-50);
  color: var(--tp-brand-600);
  font-size: 18px;
}

.tp-auth-support a {
  color: var(--tp-brand-600);
  text-decoration: none;
}

.tp-auth-recover {
  background: #fff;
}

.tp-auth-recover .tp-auth-panel h1::after {
  width: 192px;
  height: 13px;
  border-radius: 0;
  background: transparent var(--tpsi-title-underline, url("../auth/title-underline.png")) center / contain no-repeat;
}

/* Approved curved title underline for account-security flows. */
.tp-security-card h1,
.sms-user-verify .sms-wrap > h2 {
  font-family: var(--tp-font-display);
  font-weight: 700;
  letter-spacing: -.03em;
}

.tp-security-card h1::after,
.sms-user-verify .sms-wrap > h2::after {
  width: 192px;
  height: 13px;
  margin-top: 5px;
  border-radius: 0;
  background: transparent var(--tpsi-title-underline, url("../auth/title-underline.png")) center / contain no-repeat;
}

.tp-intent-fieldset {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.tp-intent-fieldset legend {
  margin-bottom: 10px;
  color: var(--tp-text);
  font-weight: 700;
}

.tp-intent-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  background: var(--tp-surface);
  cursor: pointer;
}

.tp-intent-card:has(input:checked) {
  border-color: var(--tp-brand-500);
  background: var(--tp-brand-50);
  box-shadow: 0 0 0 2px rgba(23, 105, 232, .08);
}

.tp-intent-card > input {
  position: absolute;
  opacity: 0;
}

.tp-intent-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff3e8;
  color: var(--tp-coral-500);
  font-size: 18px;
}

.tp-intent-card strong,
.tp-intent-card small {
  display: block;
}

.tp-intent-card strong {
  color: var(--tp-text);
  font-size: 14px;
}

.tp-intent-card small {
  margin-top: 3px;
  color: var(--tp-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tp-intent-card__check {
  color: var(--tp-brand-500);
  opacity: 0;
}

.tp-intent-card:has(input:checked) .tp-intent-card__check {
  opacity: 1;
}

.tp-terms-check {
  align-items: flex-start;
}

.tp-intent-note {
  margin: -8px 0 0;
  color: var(--tp-text-muted);
  font-size: 13px;
}

.tp-terms-check a {
  color: var(--tp-brand-600);
}

.tp-form-errors:empty,
.tp-auth-recaptcha:empty {
  display: none;
}

.tp-form-errors {
  margin: 0;
  padding: 12px 16px 12px 34px;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
}

.tp-auth-inline-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--tp-text-muted);
  font-size: 13px;
}

.tp-auth-inline-actions form {
  margin: 0;
}

.tp-auth-inline-actions button {
  padding: 4px;
  border: 0;
  background: transparent;
  font: inherit;
}

.tp-otp-timer {
  margin: -5px 0 0;
  color: var(--tp-text-secondary);
  font-size: 13px;
  text-align: center;
}

.tp-otp-timer i {
  margin-right: 5px;
  color: var(--tp-coral-500);
}

.tp-otp-timer.is-expired {
  color: var(--tp-danger);
}

.tp-auth-register .email-verification-row {
  padding: 12px;
  border: 1px solid #bdd8f5;
  border-radius: 12px;
  background: #f4f9ff;
  min-width: 0;
}

.tp-auth-register .email-verification-actions {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 2;
  transform: translateY(-50%);
  min-height: 0;
  max-width: calc(100% - 12px);
}

.tp-auth-register .tp-input-control:has(.email-verification-actions:not([hidden])) input {
  padding-right: 122px !important;
}

.tp-auth-register .tp-input-control:has(.email-verification-actions.is-verified) {
  display: grid;
  gap: 8px;
}

.tp-auth-register .tp-input-control:has(.is-verified) > i:first-child {
  top: 23px;
}

.tp-auth-register .email-verification-actions.is-verified {
  position: static;
  transform: none;
  justify-content: flex-start;
}

.tp-auth-register .tp-input-control:has(.is-verified) input {
  padding-right: 15px !important;
}

.tp-auth-register .email-verification-widget:not([hidden]) {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400;
}

.tp-auth-register .email-verification-send,
.tp-auth-register .email-verification-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #075fe8;
  color: #fff;
  font: 600 13px/1.4 var(--tp-font-body, sans-serif);
  text-decoration: none;
}

.tp-auth-register .email-verification-send {
  min-height: 32px;
  min-width: 66px;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tp-auth-register .email-verification-send:disabled {
  background: #598bdb;
  color: #fff;
  opacity: 1;
  cursor: default;
}

.tp-auth-register .email-verification-send:not(:disabled):hover,
.tp-auth-register .email-verification-confirm:not(:disabled):hover {
  background: #064fa6;
  color: #fff;
}

.tp-auth-register .email-verification-code:not([hidden]) {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #bed2ef;
  border-radius: 9px;
  background: #f3f8fe;
}

.tp-auth-register .email-verification-code-header {
  margin: 0;
}

.tp-auth-register .email-verification-code-header strong {
  font-size: 14px;
}

.tp-auth-register .email-verification-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

.tp-auth-register .tp-field .email-verification-digit {
  width: 100% !important;
  min-width: 0;
  height: 40px;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid #bed0e8 !important;
  border-radius: 7px !important;
  text-align: center;
  font-size: 18px !important;
}

.tp-auth-register .tp-field .email-verification-digit:focus {
  outline: 2px solid #075fe8;
  outline-offset: 2px;
}

.tp-auth-register .email-verification-code-instruction,
.tp-auth-register .email-verification-resend-prompt,
.tp-auth-register .email-verification-message,
.tp-auth-register .email-verification-delivery-note,
.tp-auth-register .email-verification-proof-note {
  margin: 0;
  color: var(--tp-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.tp-auth-register .email-verification-message {
  min-height: 0;
  text-align: center;
}

.tp-auth-register .email-verification-message:empty,
.tp-auth-register .email-verification-delivery-note {
  display: none;
}

.tp-auth-register .email-verification-message.is-error {
  color: #b91c1c;
}

.tp-auth-register .email-verification-message.is-success {
  color: #078735;
}

.tp-auth-register .email-verification-widget:has(.email-verification-code:not([hidden])) .email-verification-delivery-note {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: #b91c1c;
  font-weight: 700;
  text-align: center;
}

.tp-auth-register .email-verification-resend-prompt {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 6px;
  font-weight: 400;
}

.tp-auth-register .email-verification-resend-prompt > span {
  order: 0;
}

.tp-auth-register .email-verification-resend {
  order: 1;
  float: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-brand-600);
  font: inherit;
  font-weight: 700;
}

.tp-auth-register .email-verification-resend:disabled {
  color: #64748b;
}

.tp-security-layout {
  display: grid;
  width: min(100% - 32px, 1040px);
  margin: 24px auto 70px;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-radius: 24px;
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow-md);
}

.tp-security-art {
  height: 220px;
  overflow: hidden;
}

.tp-security-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-security-card {
  padding: 28px 24px 36px;
}

.tp-security-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 13px;
}

.tp-current-email {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--tp-surface-subtle);
}

.tp-current-email span {
  color: var(--tp-text-muted);
  font-size: 12px;
}

.sms-body {
  width: min(100% - 32px, 940px);
  margin: 24px auto 80px;
}

.sms-box {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-radius: 24px;
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow-md);
}

.sms-box::before {
  content: "";
  min-height: 220px;
  background: #e9f4ff var(--tpsi-phone-illustration, url('../auth/phone-illustration.png')) center/cover no-repeat;
}

.sms-box:has(input[name="type"][value="ITEM"])::before {
  background-image: var(--tpsi-listing-contact, url('../auth/listing-contact.png'));
}

.sms-wrap {
  padding: 28px 24px 36px;
}

.sms-wrap h2 {
  position: relative;
  margin: 0 0 22px;
  color: var(--tp-navy-950);
  font-family: var(--tp-font-display);
  font-size: clamp(31px, 8vw, 46px);
  line-height: 1.25;
}

.sms-wrap h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-coral-500);
}

.sms-lead {
  margin: -4px 0 26px;
  color: var(--tp-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.sms-listing-summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--tp-border);
}

.sms-listing-summary img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.sms-listing-summary span,
.sms-listing-summary strong {
  display: block;
}

.sms-listing-summary span {
  margin-bottom: 5px;
  color: var(--tp-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sms-listing-summary strong {
  color: var(--tp-navy-950);
  font-family: var(--tp-font-display);
  font-size: 19px;
  line-height: 1.25;
}

.sms-row {
  margin: 0 0 16px;
}

.sms-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--tp-text);
  font-size: 14px;
  font-weight: 700;
}

.sms-input-field,
.sms-input-box {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: white;
}

.sms-input-field.valid {
  border-color: var(--tp-success);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, .1);
}

.sms-input-field.error {
  border-color: var(--tp-danger);
}

.sms-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--tp-brand-600) !important;
  color: white !important;
  font-weight: 700;
}

.sms-button.disabled,
.sms-button:disabled {
  opacity: .48;
}

.sms-support-note {
  margin-top: 22px;
  color: var(--tp-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.sms-support-note i {
  margin-right: 5px;
  color: var(--tp-brand-600);
}

.sms-support-note a {
  color: var(--tp-brand-600);
  font-weight: 700;
}

.sms-four-inputs {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  justify-content: center;
  gap: 10px;
}

.sms-code {
  width: 100% !important;
  height: 56px;
  border: 1px solid var(--tp-border) !important;
  border-radius: 11px !important;
  text-align: center;
  font-size: 20px !important;
}

/* Keep phone OTP controls aligned with the registration email OTP surface. */
.sms-body .sms-step2 .sms-otp-phone-summary a.sms-button-resend {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  background: #075fe8 !important;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.sms-body .sms-step2 .sms-otp-phone-summary a.sms-button-resend.disabled {
  background: #4169a7 !important;
}

.sms-body .sms-step2 .sms-otp-phone-summary a.sms-button-resend:not(.disabled):hover,
.sms-body .sms-step2 .sms-otp-phone-summary a.sms-button-resend:not(.disabled):focus {
  color: #fff !important;
  background: #064fa6 !important;
}

.sms-body .sms-otp-resend-row {
  flex-direction: row;
  gap: 4px 6px;
  font-size: 12px;
}

.sms-body .sms-otp-resend-row > span { order: 0; }
.sms-body .sms-otp-resend-row > button { order: 1; float: none; }

.sms-body .sms-step2 .sms-button-primary.sms-verify {
  min-height: 38px;
}

@media (min-width: 760px) {
  .tp-auth-layout {
    grid-template-columns: minmax(340px, 48%) 1fr;
    align-items: stretch;
    padding-top: 0;
  }

  .tp-auth-visual {
    height: auto;
    min-height: 100vh;
    margin: 0;
    border-radius: 0 34px 34px 0;
  }

  .tp-auth-panel {
    align-self: center;
    padding: 104px 56px 64px;
  }

  .tp-auth-topbar {
    grid-template-columns: 44px minmax(340px, 48%) 1fr;
    padding: 18px 28px;
  }

  .tp-auth-brand {
    grid-column: 3;
    grid-row: 1;
  }

  .tp-auth-topbar__spacer {
    display: none;
  }

  .tp-security-layout,
  .sms-box {
    grid-template-columns: 42% 1fr;
  }

  .tp-security-art,
  .sms-box::before {
    height: auto;
    min-height: 560px;
  }

  .tp-security-card,
  .sms-wrap {
    align-self: center;
    padding: 48px;
  }
}

@media (max-width: 420px) {
  .tp-auth-panel {
    padding-inline: 20px;
  }

  .tp-auth-visual {
    height: 190px;
    margin-inline: 12px;
  }

  .sms-body {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .sms-wrap {
    padding: 30px 20px 34px;
  }

  .sms-box::before {
    min-height: 218px;
    background-size: contain;
    background-color: #edf5ff;
  }

  .sms-type-item .sms-box::before {
    display: none;
  }
}

/* Batch 2 approved-reference mobile sizing. */
@media (max-width: 480px) {
  .tp-auth-topbar { min-height: 72px; padding: 9px 20px; }
  .tp-auth-back { width: 38px; height: 38px; border: 0; box-shadow: none; background: transparent; }
  .tp-auth-brand img { max-width: 112px; max-height: 38px; }
  .tp-auth-layout { padding-top: 72px; }
  .tp-auth-visual { margin-inline: 0; padding: 0; border-radius: 0; }
  .tp-auth-login .tp-auth-visual { height: 244px; }
  .tp-auth-register .tp-auth-visual { height: 168px; margin-inline: 0; border-radius: 14px; }
  .tp-auth-recover .tp-auth-visual { height: 276px; }
  .tp-auth-panel { padding: 22px 28px 32px; }
  .tp-auth-register .tp-auth-panel { padding-top: 17px; }
  .tp-auth-recover .tp-auth-panel { padding: 16px 46px 34px; text-align: left; }
  .tp-auth-recover .tp-auth-panel h1::after { margin-left: 0; }
  .tp-auth-panel h1 { font-size: 39px; line-height: 1.08; }
  .tp-auth-login .tp-auth-panel h1 { font-size: 42px; }
  .tp-auth-register .tp-auth-panel h1 { text-align: center; }
  .tp-auth-register .tp-auth-panel h1::after { margin-inline: auto; }
  .tp-auth-panel h1::after { width: 76px; height: 3px; margin-top: 7px; }
  .tp-auth-intro { margin: 8px 0 19px; font-size: 14px; line-height: 1.45; }
  .tp-auth-register .tp-auth-intro { margin: 7px auto 15px; max-width: 290px; text-align: center; }
  .tp-auth-form { gap: 13px; }
  .tp-field { gap: 5px; }
  .tp-field > span:first-child,
  .tp-field > label,
  .tp-intent-fieldset legend { font-size: 12px; }
  .tp-field input:not([type="checkbox"]):not([type="radio"]),
  .tp-auth-form > input[type="email"],
  .tp-auth-form > input[type="text"] { min-height: 48px; font-size: 13px; }
  .tp-auth-submit { min-height: 47px; }
  .tp-intent-fieldset { gap: 5px; }
  .tp-intent-fieldset legend { margin-bottom: 3px; }
  .tp-intent-card { grid-template-columns: 29px 1fr 18px; gap: 6px; min-height: 42px; padding: 4px 9px; border-radius: 9px; }
  .tp-intent-card__icon { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .tp-intent-card strong { font-size: 11px; }
  .tp-intent-card small { display: none; }
  .tp-intent-note { margin-top: -3px; font-size: 10px; }
  .tp-check { font-size: 10px; }
  .tp-check input[type="checkbox"] { width: 16px; height: 16px; }
  .tp-auth-switch { margin-top: 9px; font-size: 11px; }

  .tp-auth-recover { background: #fff; }
  .tp-auth-recover .tp-auth-layout { align-content: start; padding: 0; }
  .tp-auth-recover .tp-auth-topbar { min-height: 92px; padding: 22px 20px 8px; }
  .tp-auth-recover .tp-auth-brand img { max-width: 120px; max-height: 46px; }
  .tp-auth-recover .tp-auth-back { padding: 0; color: var(--tp-brand-600); font-size: 22px; }
  .tp-auth-recover .tp-auth-visual { width: 100%; height: 320px; margin: 0; }
  .tp-auth-recover .tp-auth-visual { background: #fff; }
  .tp-auth-recover .tp-auth-visual picture img { height: 254px; margin-top: 66px; object-fit: fill; }
  .tp-auth-recover .tp-auth-panel { width: 100%; padding: 13px 46px 34px; }
  .tp-auth-recover .tp-auth-panel h1 { max-width: 320px; font-size: 48px; font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
  .tp-auth-recover .tp-auth-panel h1::after { width: 192px; height: 13px; margin: -3px 0 0 31px; border-radius: 0; background: transparent var(--tpsi-title-underline, url("../auth/title-underline.png")) center / contain no-repeat; }
  .tp-auth-recover .tp-auth-intro { margin: 9px 0 33px; font-size: 16px; line-height: 1.5; }
  .tp-auth-recover .tp-auth-form { gap: 28px; }
  .tp-auth-recover .tp-field { gap: 1px; margin: 0; font-weight: 700; }
  .tp-auth-recover .tp-field > span:first-child { font-family: var(--tp-font-display); font-size: 15px; }
  .tp-auth-recover .tp-field input:not([type="checkbox"]):not([type="radio"]) { min-height: 59px; padding-inline: 16px; border-radius: 13px; font-size: 16px; }
  .tp-auth-recover .tp-field input::placeholder { color: #8793ae; opacity: 1; }
  .tp-auth-recover .tp-auth-submit { min-height: 61px; border-radius: 13px; font-size: 16px; font-weight: 700; }
  .tp-auth-recover .tp-auth-switch { margin-top: 34px; font-size: 16px; }
  .tp-auth-recover .tp-auth-support { width: 282px; gap: 14px; margin: 34px auto 0; white-space: nowrap; font-size: 12px; }
  .tp-auth-recover .tp-auth-support__icon { width: 36px; height: 36px; font-size: 17px; }

  .tp-security-layout { width: 100%; margin: 0 0 70px; border: 0; border-radius: 0; box-shadow: none; }
  .tp-security-art { height: 190px; }
  .tp-security-art img { object-fit: contain; }
  .tp-security-card { padding: 13px 23px 30px; }
  .tp-security-back { margin-bottom: 15px; }
  .tp-security-card h1 { font-size: 25px; }
  .tp-security-card h1::after { margin-top: 8px; }
  .tp-security-card .tp-auth-intro { margin: 13px 0 18px; }

  .sms-body { width: 100%; margin: 0 0 70px; }
  .sms-box { border: 0; border-radius: 0; box-shadow: none; }
  .sms-box::before { min-height: 155px; background-size: contain; }
  .sms-wrap { padding: 16px 23px 30px; }
  .sms-wrap h2 { margin-bottom: 14px; font-size: 25px; line-height: 1.08; }
  .sms-wrap h2::after { margin-top: 8px; }
  .sms-lead { margin: 0 0 18px; font-size: 13px; line-height: 1.45; }
  .sms-type-item .sms-box::before { display: none; }
  .sms-listing-summary { grid-template-columns: 150px 1fr; gap: 15px; margin-bottom: 28px; padding-bottom: 20px; }
  .sms-listing-summary img { width: 150px; height: 104px; }
  .sms-listing-summary strong { font-size: 18px; }
  .sms-input-field,
  .sms-input-box,
  .sms-button { min-height: 50px; }
}

/* Registration reference overrides must remain after the shared mobile rules. */
@media (max-width: 480px) {
  .tp-auth-register .tp-auth-visual {
    height: 174px;
    border-radius: 16px;
  }

  .tp-auth-register .tp-auth-panel {
    padding-top: 22px;
  }

  .tp-auth-register .tp-auth-panel h1 {
    font-size: 45px;
  }

  .tp-auth-register .tp-auth-panel h1::after {
    width: 102px;
    height: 10px;
    margin: -2px 0 0 35px;
    background-size: 100% 100%;
  }

  .tp-auth-register .tp-auth-intro {
    max-width: 290px;
    margin: 8px auto;
  }

  .tp-auth-register .tp-field > span:first-child,
  .tp-auth-register .tp-field > label {
    transform: translateY(8px);
  }

  .tp-auth-register .tp-auth-form .tp-field + .tp-field {
    margin-top: 15px;
  }

  .tp-auth-register .tp-field input:not([type="checkbox"]):not([type="radio"]) {
    height: 46px !important;
    min-height: 46px;
  }

  .tp-auth-register .tp-field small {
    justify-content: flex-start;
    margin-top: -7px;
    text-align: left;
  }

  .tp-auth-register .tp-intent-fieldset {
    display: block;
  }

  .tp-auth-register .tp-intent-fieldset legend {
    display: block;
    width: 100%;
    margin: 0 0 2px;
  }

  .tp-auth-register .tp-intent-card {
    text-align: left;
  }

  .tp-auth-register .tp-intent-card + .tp-intent-card {
    margin-top: 6px;
  }

  .tp-auth-register .tp-intent-card > span:last-child,
  .tp-auth-register .tp-intent-note {
    text-align: left;
  }

  .tp-auth-register .tp-intent-card {
    grid-template-columns: 22px 28px minmax(0, 1fr);
    gap: 6px;
  }

  .tp-auth-register .tp-intent-card__icon {
    position: relative;
    width: 28px;
  }

  .tp-auth-register .tp-intent-card__accent {
    position: absolute;
    right: -4px;
    bottom: 0;
    font-size: 12px;
  }
}

/* Keep the phone-verification route inside the visible viewport after reload.
   The plugin's legacy fixed-width card otherwise sits beyond the app shell on
   narrow and tablet-sized layouts. */
body.sms-customize-body .tp-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

body.sms-customize-body .tp-content > #main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

body.sms-customize-body .tp-flash:not(:empty) {
  margin-top: 12px !important;
}

body.sms-customize-body .tp-flash .flashmessage {
  margin-top: 0 !important;
}

@media (max-width: 899px) {
  body.sms-customize-body .tp-content {
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden;
  }

  body.sms-customize-body .sms-body,
  body.sms-customize-body .sms-box {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.sms-customize-body .sms-box {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sms-customize-body .sms-box::before {
    height: 190px;
    min-height: 190px;
  }

  body.sms-customize-body .sms-wrap {
    min-width: 0;
    padding: 16px 23px 30px;
  }

  body.sms-customize-body .sms-user-verify .sms-wrap > h2 {
    font-size: 30px;
  }
}

/* Login reference overrides stay after shared mobile rules so the approved
   full-width composition remains stable at phone breakpoints. */
@media (max-width: 480px) {
  .tp-auth-login {
    background: #fff;
  }

  .tp-auth-login .tp-auth-topbar {
    min-height: 62px;
    padding: 8px 14px;
  }

  .tp-auth-login .tp-auth-back {
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--tp-brand-600);
    font-size: 17px;
  }

  .tp-auth-login .tp-auth-brand img {
    max-width: 96px;
    max-height: 38px;
  }

  .tp-auth-login .tp-auth-layout {
    min-height: 0;
    padding: 62px 0 0;
  }

  .tp-auth-login .tp-auth-visual {
    width: 100%;
    height: 207px;
    margin: 0;
    border-radius: 0;
  }

  .tp-auth-login .tp-auth-visual img {
    object-position: 50% 50%;
  }

  .tp-auth-login .tp-auth-panel {
    width: 100%;
    padding: 22px 26px 5px 21px;
  }

  .tp-auth-login .tp-auth-panel h1 {
    width: 100%;
    font-size: 33px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
    text-align: left;
    white-space: nowrap;
  }

  .tp-auth-login .tp-auth-panel h1::after {
    width: 100px;
    height: 10px;
    margin: -3px 0 0;
    border-radius: 0;
    background: transparent var(--tpsi-title-underline, url("../auth/title-underline.png")) center / 100% 100% no-repeat;
  }

  .tp-auth-login .tp-auth-intro {
    margin: 0 0 10px;
    color: #637397;
    font-size: 12px;
    line-height: 1.45;
  }

  .tp-auth-login .tp-auth-form {
    display: grid;
    gap: 0;
  }

  .tp-auth-login .tp-field {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #071a4d;
    font-weight: 700;
    text-align: left;
  }

  .tp-auth-login .tp-field + .tp-field {
    margin-top: 11px;
  }

  .tp-auth-login .tp-field > span:first-child {
    font-family: var(--tp-font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
  }

  .tp-auth-login .tp-field input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding-right: 42px;
    border: 1px solid #d5dce8;
    border-radius: 9px;
    background: #fff;
    color: #071a4d;
    font-size: 12px;
    font-weight: 500;
  }

  .tp-auth-login .tp-input-control > i:first-child {
    left: 13px;
    width: 18px;
    color: #8793ae;
    font-size: 15px;
  }

  .tp-auth-login .tp-input-control {
    height: 42px;
  }

  .tp-auth-login .tp-input-control input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    float: none !important;
    padding-left: 40px !important;
  }

  .tp-auth-login .tp-field input::placeholder {
    color: #73809d;
    opacity: 1;
  }

  .tp-auth-login .tp-password-control input {
    padding-right: 42px !important;
  }

  .tp-auth-login .tp-password-control > button {
    right: 2px;
    width: 38px;
    height: 38px;
    color: #637397;
    font-size: 15px;
  }

  .tp-auth-login .tp-auth-row {
    justify-content: flex-end;
    min-height: 17px;
    margin-top: 7px;
    font-size: 11px;
  }

  .tp-auth-login .tp-auth-row .tp-check {
    display: none;
  }

  .tp-auth-login .tp-auth-row a {
    font-weight: 500;
  }

  .tp-auth-login .tp-auth-submit {
    min-height: 39px;
    height: 39px;
    margin-top: 12px;
    border-radius: 8px;
    font-family: var(--tp-font-display);
    font-size: 14px;
    font-weight: 700;
  }

  .tp-auth-login .tp-auth-divider {
    position: relative;
    height: 1px;
    margin: 21px 0 23px;
    background: #d7dde7;
    text-align: center;
  }

  .tp-auth-login .tp-auth-divider span {
    position: relative;
    top: -9px;
    display: inline-block;
    padding: 0 13px;
    background: #fff;
    color: #637397;
    font-size: 11px;
    line-height: 18px;
  }

  .tp-auth-login .tp-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d5dce8;
    border-radius: 9px;
    background: #fff;
    color: #071a4d;
    font: 700 12px var(--tp-font-ui);
    text-decoration: none;
    box-shadow: none;
  }

  .tp-auth-login .tp-google-button i {
    color: #4285f4;
    font-size: 17px;
  }

  .tp-auth-login .tp-auth-switch {
    margin: 17px 0 0;
    color: #071a4d;
    font-size: 11px;
    line-height: 1.4;
  }

  .tp-auth-login .tp-auth-switch a {
    font-weight: 500;
  }

  .tp-auth-login .tp-auth-privacy {
    margin: 27px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
  }

  .tp-auth-login .tp-auth-privacy a {
    color: #637397;
    text-decoration: underline;
  }
}

/* Keep mobile form headings in scale with other utility pages. */
@media (max-width: 599px) {
  .tp-auth-login .tp-auth-panel h1,
  .tp-auth-register .tp-auth-panel h1,
  .tp-auth-recover .tp-auth-panel h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .tp-auth-recover .tp-auth-panel h1::after {
    width: 120px;
    height: 8px;
    margin: 3px 0 0;
  }
}
