:root {
  --cp-auth-primary: #543c8c;
  --cp-auth-primary-strong: #442f73;
  --cp-auth-text: #241f3d;
  --cp-auth-muted: #726d86;
  --cp-auth-line: rgba(84, 60, 140, 0.14);
  --cp-auth-line-strong: rgba(84, 60, 140, 0.22);
  --cp-auth-field-height: 50px;
  --cp-auth-field-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body.cp-auth-page,
.cp-auth-page {
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(112, 83, 180, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(84, 60, 140, 0.14),
      transparent 26%
    ),
    linear-gradient(135deg, #fbf8ff 0%, #fffdfb 46%, #f2ecff 100%) !important;
  overflow-x: hidden;
}

.cp-auth-page header,
.cp-auth-page .site-header,
.cp-auth-page #masthead,
.cp-auth-page footer,
.cp-auth-page .site-footer,
.cp-auth-page #colophon,
.cp-auth-page .breadcrumbs,
.cp-auth-page .page-header,
.cp-auth-page .entry-header,
.cp-auth-page .wp-block-template-part {
  display: none !important;
}

.cp-auth-page #page,
.cp-auth-page #content,
.cp-auth-page .site,
.cp-auth-page .site-content,
.cp-auth-page main,
.cp-auth-page .content-area,
.cp-auth-page .container,
.cp-auth-page .wrap,
.cp-auth-page .main-wrap {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.cp-auth-page .woocommerce,
.cp-auth-page .entry-content,
.cp-auth-page .post,
.cp-auth-page article {
  width: 100%;
  margin: 0;
}

.cp-auth {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.cp-auth::before,
.cp-auth::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(22px);
}

.cp-auth::before {
  top: 72px;
  left: -44px;
  width: 170px;
  height: 170px;
  background: rgba(126, 93, 194, 0.26);
  animation: cp-auth-float-soft 16s ease-in-out infinite;
}

.cp-auth::after {
  right: 5%;
  bottom: 7%;
  width: 220px;
  height: 220px;
  background: rgba(84, 60, 140, 0.18);
  animation: cp-auth-float-soft 20s ease-in-out infinite reverse;
}

.cp-auth__shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.cp-auth__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px clamp(24px, 5vw, 76px);
}

.cp-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 420px);
  height: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.cp-auth__brand {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  text-decoration: none;
}

.cp-auth__logo {
  width: clamp(108px, 7vw, 128px);
  height: auto;
}

.cp-auth__top {
  margin-bottom: 16px;
}

.cp-auth__switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--cp-auth-line);
  border-radius: 999px;
  background: rgba(245, 240, 255, 0.62);
  overflow: hidden;
}

.cp-auth__switcher::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cp-auth-primary) 0%, #7350b6 100%);
  box-shadow: 0 10px 18px rgba(84, 60, 140, 0.16);
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-auth[data-auth-active="register"] .cp-auth__switcher::before {
  transform: translateX(calc(100% + 4px));
}

.cp-auth__switcher-link,
.cp-auth__utility-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.cp-auth__switcher-link:hover,
.cp-auth__utility-link:hover {
  color: var(--cp-auth-primary-strong);
}

.cp-auth__switcher-link.is-active {
  color: #fff;
}

.cp-auth__utility-link {
  border: 1px solid var(--cp-auth-line);
  background: transparent;
}

.cp-auth__body {
  width: 100%;
}

.cp-auth__intro {
  margin-bottom: 14px;
}

.cp-auth__intro-stack {
  display: grid;
  margin-bottom: 14px;
  overflow: hidden;
  transition: height 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.cp-auth__intro-stack .cp-auth__intro {
  grid-area: 1 / 1;
  margin-bottom: 0;
}

.cp-auth__intro-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
}

.cp-auth__intro-panel[data-auth-copy-panel="login"] {
  transform: translate3d(-14px, 0, 0) scale(0.985);
}

.cp-auth__intro-panel[data-auth-copy-panel="register"] {
  transform: translate3d(14px, 0, 0) scale(0.985);
}

.cp-auth__intro-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: none;
  transform: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-auth__title {
  margin: 0;
  color: var(--cp-auth-text);
  font-family: Outfit, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cp-auth__subtitle {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.cp-auth__reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: cp-auth-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--cp-delay, 0s);
}

.cp-auth .woocommerce-notices-wrapper:empty,
.cp-auth .clear {
  display: none;
}

.cp-auth .woocommerce-notices-wrapper {
  margin-bottom: 14px;
}

.cp-auth .woocommerce-error,
.cp-auth .woocommerce-info,
.cp-auth .woocommerce-message {
  margin: 0 0 14px;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--cp-auth-line);
  border-radius: 14px;
  background: rgba(245, 240, 255, 0.72);
  color: var(--cp-auth-text);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.cp-auth .woocommerce-error::before,
.cp-auth .woocommerce-info::before,
.cp-auth .woocommerce-message::before {
  left: 14px;
  top: 14px;
  color: var(--cp-auth-primary);
}

.cp-auth .woocommerce-error li,
.cp-auth .woocommerce-info li,
.cp-auth .woocommerce-message li {
  margin-left: 0;
}

.cp-auth__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.cp-auth__stack {
  display: grid;
  overflow: hidden;
  transition: height 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.cp-auth__view {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(10px);
  transform: translate3d(20px, 0, 0) scale(0.985);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
}

.cp-auth__view--login {
  transform: translate3d(-20px, 0, 0) scale(0.985);
}

.cp-auth__view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: none;
  transform: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-auth.is-auth-transitioning [data-auth-toggle] {
  pointer-events: none;
}

.cp-auth__stack .cp-auth__form,
.cp-auth__stack .cp-auth__switch {
  margin: 0 !important;
}

.cp-auth__form p {
  margin: 0 !important;
}

.cp-auth__form--lost-password .cp-auth__field-row,
.cp-auth__form--lost-password .woocommerce-form-row,
.cp-auth__form--lost-password .form-row {
  float: none !important;
  clear: both;
  width: 100% !important;
  max-width: none !important;
}

.cp-auth .form-row-first,
.cp-auth .form-row-last,
.cp-auth .woocommerce-form-row--first,
.cp-auth .woocommerce-form-row--last {
  float: none;
  width: 100%;
}

.cp-auth__row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cp-auth input.input-text {
  width: 100%;
  min-height: var(--cp-auth-field-height);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--cp-auth-field-radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(84, 60, 140, 0.14), rgba(255, 217, 212, 0.18))
      border-box;
  color: var(--cp-auth-text);
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cp-auth input.input-text::placeholder {
  color: #9d98aa;
  opacity: 1;
}

.cp-auth input.input-text:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(84, 60, 140, 0.09);
}

.cp-auth__password-field {
  position: relative;
  display: block;
}

.cp-auth__password-field input {
  padding-right: 54px !important;
}

.cp-auth .show-password-input {
  display: none !important;
}

.cp-auth__password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(84, 60, 140, 0.08);
  color: #756f84;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cp-auth__password-toggle:hover {
  background: rgba(84, 60, 140, 0.14);
  color: var(--cp-auth-primary);
}

.cp-auth__password-toggle:focus-visible {
  outline: 2px solid rgba(84, 60, 140, 0.35);
  outline-offset: 2px;
}

.cp-auth__password-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-auth__password-icon--visible {
  display: none;
}

.cp-auth__password-toggle[aria-pressed="true"] .cp-auth__password-icon--hidden {
  display: none;
}

.cp-auth__password-toggle[aria-pressed="true"]
  .cp-auth__password-icon--visible {
  display: block;
}

.cp-auth__remember-row {
  margin-top: 0 !important;
}

.cp-auth__checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cp-auth__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(84, 60, 140, 0.2);
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
}

.cp-auth__checkbox input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 140ms ease-in-out;
  box-shadow: inset 1em 1em var(--cp-auth-primary);
}

.cp-auth__checkbox input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.cp-auth__checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(84, 60, 140, 0.3);
  outline-offset: 2px;
}

.cp-auth__submit.button,
.cp-auth__submit.woocommerce-button,
.cp-auth .woocommerce-button.button,
.cp-auth .woocommerce-Button.button,
.cp-auth__submit--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--cp-auth-primary) 0%,
    #7350b6 100%
  ) !important;
  color: #fff !important;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgb(84 60 140 / 4%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cp-auth__submit.button:hover,
.cp-auth__submit.woocommerce-button:hover,
.cp-auth .woocommerce-button.button:hover,
.cp-auth .woocommerce-Button.button:hover,
.cp-auth__submit--link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(84, 60, 140, 0.22);
}

.cp-auth__submit.button:focus-visible,
.cp-auth__submit.woocommerce-button:focus-visible,
.cp-auth .woocommerce-button.button:focus-visible,
.cp-auth .woocommerce-Button.button:focus-visible,
.cp-auth__submit--link:focus-visible {
  outline: 2px solid rgba(84, 60, 140, 0.3);
  outline-offset: 4px;
}

.cp-auth__lost-password {
  margin-top: 2px !important;
}

.cp-auth__lost-password a,
.cp-auth__switch a {
  color: var(--cp-auth-primary);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.cp-auth__lost-password a:hover,
.cp-auth__switch a:hover {
  color: var(--cp-auth-primary-strong);
}

.cp-auth__switch {
  margin: 10px 2px 0;
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.cp-auth__helper {
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.cp-auth__helper--intro {
  margin-bottom: 2px !important;
}

.cp-auth__message {
  display: grid;
  gap: 12px;
  padding: 2px 0;
  color: var(--cp-auth-muted);
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.cp-auth__message p {
  margin: 0;
}

.cp-auth__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(84, 60, 140, 0.1);
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(255, 255, 255, 0.84),
      transparent 18%
    ),
    radial-gradient(
      circle at 78% 24%,
      rgba(112, 83, 180, 0.2),
      transparent 20%
    ),
    radial-gradient(
      circle at 72% 78%,
      rgba(84, 60, 140, 0.24),
      transparent 22%
    ),
    linear-gradient(180deg, #f6f0ff 0%, #ede3ff 54%, #f1e9ff 100%);
}

.cp-auth__media::before,
.cp-auth__media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cp-auth__media::before {
  inset: 42px;
  border: 1px solid rgba(84, 60, 140, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 22% 24%,
      rgba(255, 255, 255, 0.82) 0 12%,
      transparent 12.5%
    ),
    radial-gradient(
      circle at 70% 18%,
      rgba(112, 83, 180, 0.18) 0 16%,
      transparent 16.5%
    ),
    radial-gradient(
      circle at 76% 70%,
      rgba(84, 60, 140, 0.12) 0 14%,
      transparent 14.5%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.56),
      rgba(255, 255, 255, 0.16)
    ),
    repeating-linear-gradient(
      135deg,
      transparent 0 24px,
      rgba(84, 60, 140, 0.04) 24px 25px
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: cp-auth-float-card 12s ease-in-out infinite;
}

.cp-auth__media::after {
  top: 14%;
  left: 12%;
  width: 124px;
  height: 124px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(84, 60, 140, 0.92),
    rgba(126, 93, 194, 0.7)
  );
  box-shadow:
    176px 18px 0 -18px rgba(84, 60, 140, 0.24),
    68px 180px 0 10px rgba(255, 255, 255, 0.52),
    220px 214px 0 -8px rgba(84, 60, 140, 0.16),
    136px 278px 0 -26px rgba(112, 83, 180, 0.26);
  transform: rotate(16deg);
  animation: cp-auth-float-shape 14s ease-in-out infinite;
}

@media (min-width: 721px) {
  .cp-auth__switcher-link,
  .cp-auth__utility-link {
    min-height: 40px;
    font-size: 16px;
  }

  .cp-auth__subtitle,
  .cp-auth .woocommerce-error,
  .cp-auth .woocommerce-info,
  .cp-auth .woocommerce-message,
  .cp-auth input.input-text,
  .cp-auth__checkbox,
  .cp-auth__submit.button,
  .cp-auth__submit.woocommerce-button,
  .cp-auth .woocommerce-button.button,
  .cp-auth .woocommerce-Button.button,
  .cp-auth__submit--link,
  .cp-auth__lost-password a,
  .cp-auth__switch a,
  .cp-auth__switch,
  .cp-auth__helper,
  .cp-auth__message {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .cp-auth__shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .cp-auth__content {
    justify-content: flex-start;
    padding: 24px 20px 20px;
  }

  .cp-auth__panel {
    width: 100%;
    height: auto;
  }

  .cp-auth__media {
    display: none;
  }
}

@media (max-width: 720px) {
  body.cp-auth-page,
  .cp-auth-page {
    background:
      radial-gradient(
        circle at 22% 12%,
        rgba(112, 83, 180, 0.08),
        transparent 24%
      ),
      radial-gradient(
        circle at 80% 18%,
        rgba(84, 60, 140, 0.06),
        transparent 28%
      ),
      linear-gradient(180deg, #fcfaff 0%, #fffdfa 54%, #f7f3ff 100%) !important;
  }

  .cp-auth__shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .cp-auth__content {
    padding: 20px 16px 18px;
  }

  .cp-auth::before {
    top: 52px;
    left: -72px;
    width: 140px;
    height: 140px;
    background: rgba(126, 93, 194, 0.12);
    filter: blur(28px);
  }

  .cp-auth::after {
    right: -32px;
    bottom: 10%;
    width: 160px;
    height: 160px;
    background: rgba(84, 60, 140, 0.1);
    filter: blur(30px);
  }

  .cp-auth__switcher {
    width: 100%;
    grid-auto-columns: 1fr;
  }

  .cp-auth__switcher-link,
  .cp-auth__utility-link {
    width: 100%;
  }

  .cp-auth__title {
    font-size: 28px;
  }

  .cp-auth__subtitle,
  .cp-auth__helper,
  .cp-auth__message,
  .cp-auth__switch {
    font-size: 13px;
  }

  .cp-auth__row--split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cp-auth::before,
  .cp-auth::after,
  .cp-auth__media::before,
  .cp-auth__media::after,
  .cp-auth__reveal,
  .cp-auth__switcher::before,
  .cp-auth__switcher-link,
  .cp-auth__utility-link,
  .cp-auth__intro-stack,
  .cp-auth__intro-panel,
  .cp-auth__stack,
  .cp-auth__view,
  .cp-auth__password-toggle,
  .cp-auth__submit.button,
  .cp-auth__submit.woocommerce-button,
  .cp-auth .woocommerce-button.button,
  .cp-auth .woocommerce-Button.button,
  .cp-auth__submit--link,
  .cp-auth input.input-text {
    animation: none !important;
    transition: none !important;
  }

  .cp-auth__reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes cp-auth-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cp-auth-float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10px, -14px, 0) scale(1.04);
  }
}

@keyframes cp-auth-float-card {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes cp-auth-float-shape {
  0%,
  100% {
    transform: rotate(14deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(9deg) translate3d(8px, -12px, 0);
  }
}
