.twc-auth-v2 {
  --twc-auth-primary: #087c79;
  --twc-auth-primary-dark: #056563;
  --twc-auth-ink: #111827;
  --twc-auth-muted: #667085;
  --twc-auth-border: #d9e1e7;
  --twc-auth-panel: #f1f7fb;
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(520px, 1.14fr);
  max-width: 1120px;
  min-height: 650px;
  margin: 42px auto 72px;
  overflow: hidden;
  border: 1px solid #e3e9ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(26, 51, 76, .1);
  color: var(--twc-auth-ink);
}

.twc-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
  background:
    radial-gradient(circle at 12% 8%, rgba(8, 124, 121, .12), transparent 30%),
    linear-gradient(145deg, #f7fbfd 0%, var(--twc-auth-panel) 100%);
}

.twc-auth-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 230px;
  margin-bottom: 44px;
  text-decoration: none;
}

.twc-auth-logo-image {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 76px;
  object-fit: contain;
}

.twc-auth-logo-text {
  color: var(--twc-auth-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.twc-auth-eyebrow {
  margin: 0 0 14px;
  color: var(--twc-auth-primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .025em;
}

.twc-auth-intro {
  margin: 0 0 34px;
  color: var(--twc-auth-muted);
  font-size: 17px;
  line-height: 1.6;
}

.twc-auth-brand h2 {
  margin: 0 0 25px;
  color: var(--twc-auth-ink);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.32;
}

.twc-auth-stats {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.twc-auth-stats li {
  position: relative;
  padding-left: 22px;
  color: #566273;
  font-size: 16px;
  line-height: 1.4;
}

.twc-auth-stats li::before {
  position: absolute;
  top: .43em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--twc-auth-primary);
  content: "";
}

.twc-auth-benefit {
  margin: 26px 0 0;
  color: var(--twc-auth-primary-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.twc-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 52px;
}

.twc-auth-card {
  width: 100%;
  max-width: 560px;
}

.twc-auth-card h1 {
  margin: 0;
  color: var(--twc-auth-ink);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.twc-auth-card-intro {
  margin: 10px 0 28px;
  color: var(--twc-auth-muted);
  font-size: 15px;
  text-align: center;
}

.twc-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.twc-auth-field {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.twc-auth-full {
  width: 100%;
  margin: 0 0 19px !important;
}

.twc-auth-field label {
  display: block;
  margin: 0 0 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.twc-auth-field .required {
  color: #d92d20;
}

.twc-auth-field input,
.twc-auth-field select {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--twc-auth-border);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: var(--twc-auth-ink);
  font-size: 14px;
  line-height: 1.3;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.twc-auth-field input {
  padding: 9px 42px 9px 12px;
}

.twc-auth-field select {
  padding: 9px 34px 9px 12px;
}

.twc-auth-field input:focus,
.twc-auth-field select:focus {
  border-color: var(--twc-auth-primary);
  box-shadow: 0 0 0 3px rgba(8, 124, 121, .1);
}

.twc-auth-password-wrap,
.twc-auth-code-wrap {
  position: relative;
  display: block;
}

.twc-auth-v2 .twc-auth-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7b8794 !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
}

.twc-auth-password-toggle:hover,
.twc-auth-password-toggle:focus {
  background: #f2f5f7 !important;
  color: var(--twc-auth-primary) !important;
}

.twc-auth-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.twc-auth-password-toggle.is-visible::after {
  position: absolute;
  width: 21px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
}

.twc-auth-code-wrap input {
  padding-right: 102px;
}

.twc-auth-v2 .twc-auth-code-button {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  bottom: auto !important;
  left: auto !important;
  min-width: 90px;
  height: 36px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #e9f5f4 !important;
  box-shadow: none !important;
  color: var(--twc-auth-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  margin: 0 !important;
  text-transform: none !important;
}

.twc-auth-code-button:disabled {
  background: #f2f4f7 !important;
  color: #a6adb7 !important;
  cursor: not-allowed;
}

.twc-auth-code-message {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--twc-auth-primary);
  font-size: 12px;
  line-height: 1.4;
}

.twc-auth-code-message.is-error {
  color: #b42318;
}

.twc-auth-password-note,
.twc-auth-policy {
  margin: 16px 0 0;
  color: var(--twc-auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

.twc-auth-policy a,
.twc-auth-switch a,
.twc-auth-login-options a {
  color: var(--twc-auth-primary);
  font-weight: 650;
  text-decoration: none;
}

.twc-auth-policy a:hover,
.twc-auth-switch a:hover,
.twc-auth-login-options a:hover {
  text-decoration: underline;
}

.twc-auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--twc-auth-primary) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 46px !important;
  text-transform: none !important;
  transition: background .18s ease, opacity .18s ease;
}

.twc-auth-submit:hover,
.twc-auth-submit:focus {
  background: var(--twc-auth-primary-dark) !important;
  color: #fff !important;
}

.twc-auth-submit:disabled {
  background: #d8dde3 !important;
  color: #8b95a2 !important;
  cursor: not-allowed;
  opacity: 1;
}

.twc-auth-switch {
  margin: 22px 0 0;
  color: var(--twc-auth-muted);
  font-size: 14px;
  text-align: center;
}

.twc-auth-login-card {
  max-width: 430px;
}

.twc-auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  font-size: 13px;
}

.twc-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #475467;
}

.twc-auth-remember input {
  margin: 0;
  accent-color: var(--twc-auth-primary);
}

.woocommerce-notices-wrapper {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 960px) {
  .twc-auth-v2 {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .twc-auth-brand {
    padding: 38px 42px;
  }

  .twc-auth-logo {
    margin-bottom: 28px;
  }

  .twc-auth-form-panel {
    padding: 42px;
  }
}

@media (max-width: 620px) {
  .twc-auth-v2 {
    margin: 24px 12px 48px;
    border-radius: 13px;
  }

  .twc-auth-brand,
  .twc-auth-form-panel {
    padding: 30px 22px;
  }

  .twc-auth-brand h2 {
    font-size: 21px;
  }

  .twc-auth-card h1 {
    font-size: 28px;
  }

  .twc-auth-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .twc-auth-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
