:root {
  --tp-auth-ink: #29242b;
  --tp-auth-muted: #6f6870;
  --tp-auth-line: #e6dfe3;
  --tp-auth-accent: rgb(184, 52, 121);
  --tp-auth-accent-dark: #8f245e;
  --tp-auth-accent-soft: #fff6fa;
  --tp-auth-gold: #c9932f;
  --tp-auth-gold-soft: #fff9ec;
  --tp-auth-radius: 14px;
  --tp-auth-shadow: 0 18px 48px rgba(65, 38, 54, 0.09);
}

body#authentication #left-column,
body#authentication #right-column,
body#registration #left-column,
body#registration #right-column,
body#address #left-column,
body#address #right-column {
  display: none;
}

body#authentication #content-wrapper,
body#registration #content-wrapper,
body#address #content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body#authentication #main #content,
body#registration #main #content,
body#address #main #content {
  width: 100% !important;
  max-width: none !important;
}

.tp-auth-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--tp-auth-ink);
}

.tp-login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(480px, 560px);
  gap: 32px;
  align-items: stretch;
  justify-content: center;
}

.tp-login-shell--single {
  grid-template-columns: minmax(280px, 560px);
}

.tp-login-context,
.tp-auth-card,
.tp-registration-shell {
  border: 1px solid var(--tp-auth-line);
  border-radius: var(--tp-auth-radius);
  background: #fff;
  box-shadow: var(--tp-auth-shadow);
}

.tp-login-context {
  padding: 44px 40px;
  background:
    radial-gradient(circle at 95% 0%, rgba(201, 147, 47, 0.18), transparent 36%),
    linear-gradient(155deg, #2e2930 0%, #422834 100%);
  color: #fff;
}

.wr-login-eyebrow {
  margin: 0 0 10px;
  color: var(--tp-auth-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wr-login-context__title {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.wr-login-context__lead {
  margin: 0;
  color: #e7dfe3;
  font-size: 16px;
  line-height: 1.65;
}

.wr-login-benefits {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
}

.wr-login-benefits li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.wr-login-benefits li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 147, 47, 0.22);
  color: #ffd984;
  font-weight: 900;
}

.wr-login-benefits strong,
.wr-login-benefits small,
.wr-login-help strong,
.wr-login-help span {
  display: block;
}

.wr-login-benefits small {
  margin-top: 4px;
  color: #cfc8cc;
  line-height: 1.45;
}

.wr-login-help {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.wr-login-help span {
  margin-top: 5px;
  color: #cfc8cc;
  font-size: 13px;
  line-height: 1.5;
}

.tp-auth-card {
  width: 100%;
  max-width: 560px;
  padding: 42px 48px;
}

.tp-registration-shell {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 44px 52px 50px;
}

.tp-auth-heading {
  margin-bottom: 26px;
}

.tp-auth-heading h1 {
  margin: 0;
  color: var(--tp-auth-ink);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.16;
}

.wr-login-card-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--tp-auth-muted);
  line-height: 1.6;
}

.tp-registration-login {
  display: flex;
  min-height: 62px;
  margin: -12px 0 28px;
  padding: 10px 12px 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #eadde4;
  border-radius: 10px;
  background: #fcf9fb;
  color: var(--tp-auth-muted);
}

.tp-registration-login__copy {
  font-size: 14px;
  line-height: 1.4;
}

.tp-registration-login .tp-registration-login__link {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 11px 8px 14px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  background: var(--tp-auth-accent-soft);
  color: var(--tp-auth-accent-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.tp-registration-login__arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 160ms ease;
}

.tp-registration-login__link:hover,
.tp-registration-login__link:focus-visible {
  background: #fbeaf3;
  color: var(--tp-auth-accent-dark);
  text-decoration: none;
}

.tp-registration-login__link:hover .tp-registration-login__arrow,
.tp-registration-login__link:focus-visible .tp-registration-login__arrow {
  transform: translateX(2px);
}

.tp-auth-card #login-form .form-group,
.tp-registration-shell #customer-form .form-group {
  margin-right: 0;
  margin-left: 0;
}

.tp-auth-card #login-form .form-control-label,
.tp-registration-shell #customer-form .form-control-label {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding: 0 0 7px;
  text-align: left;
}

.tp-auth-card #login-form .js-input-column,
.tp-registration-shell #customer-form .js-input-column {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding: 0;
}

.tp-auth-card .form-control,
.tp-registration-shell .form-control {
  min-height: 46px;
  border-radius: 7px;
}

.tp-auth-card #login-form .input-group,
.tp-registration-shell #customer-form .input-group {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: stretch;
}

.tp-auth-card #login-form .input-group > .form-control,
.tp-registration-shell #customer-form .input-group > .form-control {
  width: 0 !important;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  flex: 1 1 0%;
  border-radius: 7px 0 0 7px;
}

.tp-auth-card #login-form .input-group-btn,
.tp-registration-shell #customer-form .input-group-btn {
  display: flex;
  width: auto !important;
  max-width: none;
  min-width: 0;
  flex: 0 0 auto;
  align-items: stretch;
}

.tp-auth-card #login-form .input-group-btn > .btn,
.tp-registration-shell #customer-form .input-group-btn > .btn {
  display: inline-flex;
  height: 46px;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 0 7px 7px 0;
  white-space: nowrap;
}

.tp-auth-card a:focus-visible,
.tp-registration-shell a:focus-visible,
.tp-auth-card button:focus-visible,
.tp-registration-shell button:focus-visible,
.tp-auth-card input:focus-visible,
.tp-registration-shell input:focus-visible,
.tp-registration-shell select:focus-visible,
.wr-address-completion h2:focus {
  outline: 3px solid rgba(184, 52, 121, 0.35);
  outline-offset: 3px;
}

.tp-auth-card #submit-login,
.tp-registration-actions .form-control-submit {
  width: 100%;
  min-height: 48px;
}

.tp-auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 26px 0 16px;
  color: var(--tp-auth-muted);
  font-size: 13px;
}

.tp-auth-separator::before,
.tp-auth-separator::after {
  height: 1px;
  background: var(--tp-auth-line);
  content: "";
}

.tp-login-choice {
  display: grid;
  min-height: 68px;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--tp-auth-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tp-auth-ink);
  text-align: left;
}

.tp-login-choice--business {
  border-color: rgba(184, 52, 121, 0.32);
  background: var(--tp-auth-accent-soft);
  color: var(--tp-auth-accent-dark);
}

.wr-login-account-choices {
  display: grid;
  gap: 10px;
}

.tp-login-choice__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f3f0f2;
  color: var(--tp-auth-accent);
  font-size: 18px;
}

.tp-login-choice__copy strong,
.tp-login-choice__copy small {
  display: block;
}

.tp-login-choice__copy small {
  margin-top: 3px;
  color: var(--tp-auth-muted);
  font-weight: 400;
}

.tp-login-choice__arrow {
  color: var(--tp-auth-ink);
}

.wr-login-account-choices p {
  margin: 2px 0 0;
  color: var(--tp-auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

.wr-login-account-choices .wr-login-professional-benefits {
  margin-top: -4px;
  color: var(--tp-auth-accent-dark);
  font-weight: 700;
}

.wr-account-choice,
.wr-business-fields {
  margin: 0;
  padding: 0;
  border: 0;
}

.wr-account-choice > legend {
  margin-bottom: 12px;
  color: var(--tp-auth-ink);
  font-size: 16px;
  font-weight: 700;
}

.wr-account-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.wr-account-option {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--tp-auth-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.wr-account-option.is-selected {
  border: 2px solid var(--tp-auth-accent);
  padding: 13px 15px;
  background: var(--tp-auth-accent-soft);
}

.wr-account-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--tp-auth-accent);
}

.wr-account-option__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wr-account-option__copy strong {
  color: var(--tp-auth-ink);
  font-weight: 700;
}

.wr-account-option__copy small {
  color: var(--tp-auth-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.wr-registration-copy {
  display: grid;
  gap: 16px;
  margin: 18px 0 26px;
}

.wr-professional-flow .wr-registration-copy {
  gap: 14px;
  margin: 0 0 18px;
}

.wr-registration-intro {
  display: grid;
  gap: 4px;
  color: var(--tp-auth-muted);
  font-size: 15px;
  line-height: 1.55;
}

.wr-registration-intro strong {
  color: var(--tp-auth-ink);
}

.wr-registration-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--tp-auth-line);
  border-radius: 10px;
  background: #fbfafb;
  list-style: none;
}

.wr-registration-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.wr-registration-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d3ccd0;
  border-radius: 50%;
  background: #fff;
  color: var(--tp-auth-muted);
  font-weight: 700;
}

.wr-registration-steps [aria-current="step"] > span {
  border-color: var(--tp-auth-accent);
  background: var(--tp-auth-accent);
  color: #fff;
}

.wr-registration-steps strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.wr-registration-status,
.wr-address-completion__notice {
  padding: 14px 16px;
  border: 1px solid rgba(201, 147, 47, 0.34);
  border-radius: 9px;
  background: var(--tp-auth-gold-soft);
  color: #604b22;
}

.wr-registration-status {
  display: grid;
  gap: 3px;
  line-height: 1.5;
}

.wr-registration-status .wr-registration-benefits {
  margin-top: 6px;
  color: var(--tp-auth-accent-dark);
  font-weight: 700;
}

.tp-core-customer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px 24px;
  align-items: start;
}

.wr-form-section-heading {
  margin: 0 0 18px;
}

.wr-form-section-heading h2 {
  margin: 0 0 5px;
  color: var(--tp-auth-ink);
  font-size: 21px;
  line-height: 1.25;
}

.wr-form-section-heading p {
  margin: 0;
  color: var(--tp-auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.wr-company-section-heading {
  margin-top: 8px;
}

.wr-professional-flow [data-wr-personal-heading] {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--tp-auth-line);
}

.tp-core-customer-fields > .form-group,
.tp-core-customer-fields > .field-password-policy {
  min-width: 0;
  margin-bottom: 0 !important;
}

.tp-core-customer-fields > .form-group:has(input[name="id_gender"]) {
  grid-column: 1 / -1;
}

.tp-core-customer-fields > .form-group:has(input[name="email"]),
.tp-core-customer-fields > .field-password-policy,
.tp-core-customer-fields > .form-group:has(input[type="checkbox"]) {
  grid-column: 1 / -1;
}

.tp-core-customer-fields .form-control,
.wr-business-fields .form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wr-business-fields {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tp-auth-line);
}

.wr-professional-flow .wr-business-fields {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--tp-auth-line);
  border-radius: 12px;
  background: #fbfafb;
}

.wr-business-fields__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px 20px;
}

.wr-business-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.wr-business-field > label {
  color: var(--tp-auth-ink);
  font-weight: 700;
}

.wr-business-field:has(select) {
  grid-column: 1 / -1;
}

.wr-optional {
  margin-left: 6px;
  color: var(--tp-auth-muted);
  font-size: 11px;
  font-weight: 500;
}

.wr-required-mark {
  margin-left: 3px;
  color: var(--tp-auth-accent);
}

.wr-field-help {
  color: var(--tp-auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tp-registration-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: center;
}

.tp-registration-actions p {
  margin: 0;
  color: var(--tp-auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.wr-noscript {
  margin: 10px 0;
}

.wr-address-completion {
  width: min(840px, 100%);
  margin: 0 auto 28px;
  padding: 24px;
  border: 1px solid var(--tp-auth-line);
  border-radius: var(--tp-auth-radius);
  background: #fff;
  box-shadow: var(--tp-auth-shadow);
}

.wr-address-completion h2 {
  margin: 20px 0 12px;
  color: var(--tp-auth-ink);
  font-size: clamp(26px, 3vw, 34px);
}

.tp-auth-card a,
.tp-registration-shell a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.tp-auth-card .tp-login-choice {
  display: grid;
  width: 100%;
}

.wr-address-completion__notice {
  margin: 0;
  line-height: 1.55;
}

.wr-address-completion__submit-hint {
  margin: 14px 0 0;
  color: var(--tp-auth-accent-dark);
  font-weight: 700;
}

@media (max-width: 1023px) {
  .tp-auth-page {
    width: min(840px, calc(100% - 32px));
  }

  .tp-login-shell {
    grid-template-columns: minmax(0, 720px);
  }

  .tp-login-context {
    padding: 28px 32px;
  }

  .wr-login-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .wr-login-benefits li {
    display: block;
  }

  .wr-login-benefits li > span {
    margin-bottom: 8px;
  }

  .wr-login-help {
    display: none;
  }

  .tp-core-customer-fields,
  .wr-business-fields__grid,
  .wr-account-choice__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-core-customer-fields > .form-group:has(input[name="email"]),
  .tp-core-customer-fields > .field-password-policy,
  .tp-core-customer-fields > .form-group:has(input[type="checkbox"]),
  .wr-business-field:has(select) {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  body#authentication #main #content,
  body#registration #main #content,
  body#address #main #content {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .tp-auth-page {
    width: calc(100% - 28px);
  }

  .tp-login-context {
    display: none;
  }

  .tp-auth-card,
  .tp-registration-shell {
    max-width: 100%;
    padding: 30px 22px 34px;
  }

  .tp-registration-login {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .tp-registration-login .tp-registration-login__link {
    width: 100%;
    justify-content: space-between;
  }

  .wr-account-choice__grid,
  .wr-registration-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .wr-account-option {
    min-height: 56px;
  }

  .tp-auth-card a,
  .tp-auth-card button,
  .tp-registration-shell a,
  .tp-registration-shell button,
  .tp-registration-shell input,
  .tp-registration-shell select {
    min-height: 44px;
  }
}

@media (max-width: 479px) {
  .tp-auth-page {
    width: calc(100% - 24px);
  }

  .tp-auth-card,
  .tp-registration-shell,
  .wr-address-completion {
    padding: 24px 16px 28px;
    border-radius: 10px;
  }

  .tp-auth-heading h1 {
    font-size: 27px;
  }
}

/* Personal-information page */
body#identity #main #content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#identity #main > .page-header {
  display: none;
}

.tp-auth-page--identity {
  width: min(840px, calc(100% - 48px));
  margin: 8px auto 48px;
}

.tp-identity-shell {
  width: 100%;
  padding: 42px 48px 48px;
  border: 1px solid var(--tp-auth-line);
  border-radius: var(--tp-auth-radius);
  background: #fff;
  box-shadow: var(--tp-auth-shadow);
}

.tp-identity-shell .tp-auth-heading {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tp-auth-line);
}

.tp-identity-shell #customer-form .form-group {
  margin-right: 0;
  margin-left: 0;
}

.tp-identity-shell #customer-form .form-control-label,
.tp-identity-shell #customer-form .js-input-column {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  text-align: left;
}

.tp-identity-shell #customer-form .form-control-label {
  padding: 0 0 7px;
  color: var(--tp-auth-ink);
  font-weight: 700;
}

.tp-identity-shell #customer-form .js-input-column {
  padding: 0;
}

.tp-identity-shell .tp-core-customer-fields {
  gap: 20px 24px;
}

.tp-identity-shell .form-control {
  min-height: 48px;
  border-color: #d8d1d5;
  border-radius: 8px;
  background: #fff;
  color: var(--tp-auth-ink);
  font-size: 16px;
}

.tp-identity-shell .form-control:focus {
  border-color: var(--tp-auth-accent);
  box-shadow: 0 0 0 3px rgba(184, 52, 121, 0.13);
}

.tp-identity-shell #customer-form .input-group {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: stretch;
}

.tp-identity-shell #customer-form .input-group > .form-control {
  width: 0 !important;
  min-width: 0;
  height: 48px;
  flex: 1 1 0%;
  border-radius: 8px 0 0 8px;
}

.tp-identity-shell #customer-form .input-group-btn {
  display: flex;
  width: auto !important;
  max-width: none;
  flex: 0 0 auto;
  align-items: stretch;
}

.tp-identity-shell #customer-form .input-group-btn > .btn {
  display: inline-flex;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 0 8px 8px 0;
  white-space: nowrap;
}

.tp-identity-shell .form-control-comment {
  display: block;
  margin-top: 6px;
  color: var(--tp-auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tp-identity-shell .tp-core-customer-fields > .form-group:has(input[type="checkbox"]) {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--tp-auth-line);
  border-radius: 10px;
  background: #fcfafb;
}

.tp-identity-shell .tp-core-customer-fields > .form-group:has(input[type="checkbox"]) .form-control-label {
  grid-column: 1;
  padding: 3px 0 0;
  color: #d52727;
  line-height: 1;
}

.tp-identity-shell .tp-core-customer-fields > .form-group:has(input[type="checkbox"]) .js-input-column {
  grid-column: 2;
}

.tp-identity-shell .custom-checkbox label {
  margin: 0;
  color: var(--tp-auth-ink);
  font-size: 15px;
  line-height: 1.55;
}

.tp-identity-shell .custom-checkbox + .form-control-comment,
.tp-identity-shell .custom-checkbox .form-control-comment {
  max-width: 68ch;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.tp-identity-shell a {
  color: var(--tp-auth-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tp-identity-shell a:focus-visible,
.tp-identity-shell button:focus-visible,
.tp-identity-shell input:focus-visible,
.tp-identity-shell select:focus-visible {
  outline: 3px solid rgba(184, 52, 121, 0.35);
  outline-offset: 3px;
}

.tp-identity-actions .form-control-submit {
  width: min(100%, 280px);
  min-height: 48px;
  justify-self: end;
}

@media (max-width: 767px) {
  body#identity #main #content {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .tp-auth-page--identity {
    width: calc(100% - 28px);
    margin-bottom: 32px;
  }

  .tp-identity-shell {
    padding: 30px 22px 34px;
  }

  .tp-identity-actions .form-control-submit {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .tp-auth-page--identity {
    width: calc(100% - 24px);
  }

  .tp-identity-shell {
    padding: 24px 16px 28px;
    border-radius: 10px;
  }

  .tp-identity-shell .tp-core-customer-fields > .form-group:has(input[type="checkbox"]) {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 14px;
  }
}
