.tb-account-access,
.tb-account-access *,
.tb-account-recovery,
.tb-account-recovery * {
  box-sizing: border-box;
  min-width: 0;
}

.tb-account-feedback,
.tb-account-page-title,
.tb-account-access,
.tb-account-recovery {
  margin-inline: auto;
  max-width: 64rem;
}

.tb-account-page-title {
  color: var(--tb-color-navy, #13274b);
  font-family: var(--tb-font-heading, Inter, Arial, sans-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto 1.5rem;
}

.tb-account-feedback {
  border: 1px solid var(--tb-color-navy, #13274b);
  border-radius: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
}

.tb-account-feedback--success {
  background: var(--tb-color-success-surface, #eef8f2);
  border-color: var(--tb-color-success, #287a4b);
}

.tb-account-feedback--error,
.tb-account-unavailable {
  background: var(--tb-color-error-surface, #fff1ef);
  border-color: var(--tb-color-coral-text, #c63f36);
}

.tb-account-feedback p,
.tb-account-unavailable {
  margin: 0;
}

.tb-account-access {
  border-block: 1px solid var(--tb-color-border-subtle, #d9dee7);
  display: grid;
}

.tb-account-access__section {
  padding-block: 1.5rem;
}

.tb-account-access__section + .tb-account-access__section {
  border-top: 1px solid var(--tb-color-border-subtle, #d9dee7);
}

.tb-account-access h2,
.tb-account-recovery h1,
.tb-account-recovery h2 {
  color: var(--tb-color-navy, #13274b);
  font-family: var(--tb-font-heading, Inter, Arial, sans-serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.tb-account-access__section > p,
.tb-account-recovery > p {
  color: var(--tb-color-muted, #596579);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.tb-account-access form,
.tb-account-request,
.tb-account-recovery {
  display: grid;
  gap: 1rem;
}

.tb-account-access form,
.tb-account-recovery,
.tb-account-request {
  border: 0;
  margin: 0;
  padding: 0;
}

.woocommerce .tb-account-access form.woocommerce-form-login {
  border: 0;
  padding: 0;
}

.tb-account-access .form-row,
.tb-account-recovery .form-row,
.tb-account-request .form-row {
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.tb-account-access label,
.tb-account-recovery label,
.tb-account-request label {
  color: var(--tb-color-text, #2f2f2f);
  font-weight: 700;
}

.tb-account-access input[type="text"],
.tb-account-access input[type="email"],
.tb-account-access input[type="password"],
.tb-account-recovery input[type="email"],
.tb-account-recovery input[type="password"] {
  background: #fff;
  border: 1px solid var(--tb-color-border, #c8d0dc);
  border-radius: 0.4rem;
  color: var(--tb-color-text, #2f2f2f);
  font: inherit;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.tb-account-access .password-input,
.tb-account-recovery .password-input {
  display: block;
  position: relative;
}

.tb-account-access .password-input input,
.tb-account-recovery .password-input input {
  padding-right: 3.25rem;
}

.tb-account-access .show-password-input,
.tb-account-recovery .show-password-input {
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  right: 0.125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
}

.tb-account-access input:focus-visible,
.tb-account-recovery input:focus-visible,
.tb-account-access a:focus-visible,
.tb-account-recovery a:focus-visible,
.tb-account-access button:focus-visible,
.tb-account-recovery button:focus-visible {
  outline: 3px solid var(--tb-color-active, #4f8fcc);
  outline-offset: 3px;
}

.tb-account-remember,
.tb-account-consent {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  line-height: 1.45;
  min-height: 44px;
}

.tb-account-remember input,
.tb-account-consent input {
  flex: 0 0 auto;
  height: 1.25rem;
  margin-top: 0.15rem;
  width: 1.25rem;
}

.tb-account-access button[type="submit"],
.tb-account-recovery button[type="submit"] {
  align-items: center;
  background: var(--tb-color-navy, #13274b);
  border: 1px solid var(--tb-color-navy, #13274b);
  border-radius: 0.4rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
  width: 100%;
}

.tb-account-access button[type="submit"]:active,
.tb-account-recovery button[type="submit"]:active {
  transform: scale(0.97);
}

.woocommerce .tb-account-access button.button[type="submit"],
.woocommerce .tb-account-recovery button.button[type="submit"] {
  background: var(--tb-color-navy, #13274b);
  border-color: var(--tb-color-navy, #13274b);
  color: #fff;
}

.tb-account-lost,
.tb-account-back,
.tb-account-password-rule {
  margin: 0;
}

.tb-account-password-rule {
  color: var(--tb-color-muted, #596579);
  font-size: 0.95rem;
}

.tb-account-lost a,
.tb-account-back a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding-block: 0.35rem;
}

.tb-account-lost a,
.tb-account-back a,
.tb-account-consent a {
  color: var(--tb-color-navy, #13274b);
  text-underline-offset: 0.18em;
}

.tb-account-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.tb-account-recovery {
  max-width: 34rem;
}

.tb-account-unavailable {
  border: 1px solid var(--tb-color-coral-text, #c63f36);
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .tb-account-access button[type="submit"],
  .tb-account-recovery button[type="submit"] {
    transition: none;
  }

  .tb-account-access button[type="submit"]:active,
  .tb-account-recovery button[type="submit"]:active {
    transform: none;
  }
}

@media (min-width: 48rem) {
  .tb-account-access {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-account-access__section {
    padding: 2rem;
  }

  .tb-account-access__section:first-child {
    padding-left: 0;
  }

  .tb-account-access__section:last-child {
    padding-right: 0;
  }

  .tb-account-access__section + .tb-account-access__section {
    border-left: 1px solid var(--tb-color-border-subtle, #d9dee7);
    border-top: 0;
  }

  .tb-account-access button[type="submit"],
  .tb-account-recovery button[type="submit"] {
    justify-self: start;
    width: auto;
  }
}
