/**
 * Auth layout: product photo left, underline fields right. No social login.
 */

body.woocommerce-account:not(.logged-in) {
  background: #fff;
}

body.woocommerce-account:not(.logged-in) .dsc-page-content.entry-content {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: 1.25rem 3rem;
}

.dsc-auth--split {
  width: 100%;
}

.dsc-auth--split .dsc-auth__shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  min-height: 34rem;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  border: 0;
}

.dsc-auth--split .dsc-auth__visual {
  margin: 0;
  min-height: 32rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7d6de 0%, #f4c9d4 42%, #f8e4ea 100%);
  display: flex;
}

.dsc-auth--split .dsc-auth__visual img,
.dsc-auth--split .dsc-auth__visual-img,
.woocommerce .dsc-auth--split .dsc-auth__visual img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 32rem !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex: 1 1 auto;
}

.dsc-auth--split .dsc-auth__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
  background: #fff;
}

.dsc-auth--split .dsc-auth__toggle {
  display: flex;
  width: min(100%, 16.5rem);
  margin: 0 auto 2.25rem;
  padding: 0;
  border: 1.5px solid #5c3d42;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.dsc-auth--split .dsc-auth__toggle-btn {
  flex: 1;
  margin: 0;
  padding: 0.7rem 0.5rem;
  border: 0;
  background: transparent;
  color: #5c3d42;
  font-family: var(--font-accent, inherit);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
}

.dsc-auth--split[data-mode="register"] .dsc-auth__toggle-btn[data-dsc-auth-mode="register"],
.dsc-auth--split[data-mode="login"] .dsc-auth__toggle-btn[data-dsc-auth-mode="login"] {
  background: #f4b6c4;
  color: #fff;
}

.dsc-auth--split .dsc-auth__panel {
  display: none;
  padding: 0;
  align-items: stretch;
  text-align: left;
}

.dsc-auth--split[data-mode="login"] .dsc-auth__panel--login,
.dsc-auth--split[data-mode="register"] .dsc-auth__panel--register {
  display: block;
}

.dsc-auth--split .dsc-auth__form,
.woocommerce .dsc-auth--split form.login,
.woocommerce .dsc-auth--split form.register {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dsc-auth--split .dsc-auth__form .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 1.35rem !important;
}

.dsc-auth--split .dsc-auth__form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5a60;
}

.dsc-auth--split .dsc-auth__form input.input-text,
.dsc-auth--split .dsc-auth__form input[type="email"],
.dsc-auth--split .dsc-auth__form input[type="password"],
.dsc-auth--split .dsc-auth__form input[type="tel"],
.dsc-auth--split .dsc-auth__form input[type="text"] {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.35rem 0 0.5rem;
  border: 0;
  border-bottom: 1.5px solid #d9c6c9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  color: #231f20;
}

.dsc-auth--split .dsc-auth__form input.input-text:focus {
  outline: none;
  border-bottom-color: #5c3d42;
  background: transparent;
}

.dsc-auth--split .dsc-auth__submit,
.woocommerce .dsc-auth--split button.button.dsc-auth__submit,
.woocommerce .dsc-auth--split .woocommerce-form-login__submit,
.woocommerce .dsc-auth--split .woocommerce-form-register__submit {
  display: flex !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 3rem;
  margin: 1.35rem 0 0 !important;
  padding: 0.9rem 1.25rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #4a2c31 !important;
  color: #fff !important;
  font-family: var(--font-accent, inherit);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.woocommerce .dsc-auth--split button.button.dsc-auth__submit:hover,
.woocommerce .dsc-auth--split .woocommerce-form-login__submit:hover,
.woocommerce .dsc-auth--split .woocommerce-form-register__submit:hover {
  background: #231f20 !important;
  color: #fff !important;
  transform: none;
  box-shadow: none !important;
}

.dsc-auth--split .dsc-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  clear: both;
  width: 100%;
  gap: 0.5rem 1rem;
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
}

.woocommerce .dsc-auth--split form.login .button,
.woocommerce .dsc-auth--split form.register .button,
.woocommerce .dsc-auth--split .woocommerce-form-login__submit,
.woocommerce .dsc-auth--split .woocommerce-form-register__submit {
  float: none !important;
  clear: both !important;
}

.woocommerce .dsc-auth--split .dsc-auth__links,
.woocommerce .dsc-auth--split .lost_password {
  float: none !important;
  clear: both !important;
  width: 100% !important;
}

.dsc-auth--split .dsc-auth__links a,
.dsc-auth--split .dsc-auth__text-btn {
  border: 0;
  background: none;
  padding: 0;
  color: #8a6a70;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.dsc-auth--split .dsc-auth__links a:hover,
.dsc-auth--split .dsc-auth__text-btn:hover {
  color: #4a2c31;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* No social sign-in */
.dsc-auth .nsl-container,
.dsc-auth .nsl-button,
.dsc-auth .wc-social-login,
.dsc-auth .woocommerce-form-login-socials,
.dsc-auth .mo-openid-app-icons,
.dsc-auth .login-social,
.dsc-auth [class*="social-login"],
.dsc-auth [class*="SocialLogin"],
.dsc-auth .fb-login,
.dsc-auth .google-login,
.dsc-auth .apple-login {
  display: none !important;
}

.dsc-auth--split .dsc-auth__overlay,
.dsc-auth--split .dsc-auth__mobile-switch,
.dsc-auth--split .dsc-auth__or,
.dsc-auth--split .dsc-auth__brand,
.dsc-auth--split .dsc-auth__lede,
.dsc-auth--split .woocommerce-privacy-policy-text {
  display: none !important;
}

.dsc-auth--split .dsc-auth__form.is-busy .dsc-auth__submit {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 860px) {
  .dsc-auth--split .dsc-auth__shell {
    grid-template-columns: 1fr !important;
    min-height: 0;
    border-radius: 0;
  }

  .dsc-auth--split .dsc-auth__visual {
    min-height: 14rem;
    max-height: 18rem;
  }

  .dsc-auth--split .dsc-auth__card {
    padding: 1.5rem 1.15rem 2.25rem;
  }

  .dsc-auth--split .dsc-auth__form input.input-text {
    font-size: 16px;
  }
}
