.plg-auth,
.plg-auth * {
  box-sizing: border-box;
}

body.plg-auth-page #main-content {
  background:
    radial-gradient(circle at 10% 4%, rgba(20, 155, 255, 0.1), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(229, 8, 83, 0.09), transparent 28%),
    #fbfaff;
}

body.plg-auth-page .et_pb_post,
body.plg-auth-page .entry-content {
  margin-bottom: 0;
  padding-top: 0;
}

.plg-auth {
  --plg-auth-primary: var(--pik-color-primary, #730062);
  --plg-auth-secondary: var(--pik-color-secondary, #a9045b);
  --plg-auth-link: var(--pik-link-color, #e50853);
  --plg-auth-ink: #1a1844;
  --plg-auth-muted: #666b7f;
  --plg-auth-border: #dcd9e8;
  --plg-auth-focus: #149bff;
  --plg-auth-error: #b42318;
  --plg-auth-success: #087a55;
  width: 100%;
  color: var(--plg-auth-ink);
  font-family: var(--pik-body-font-family, Nunito, "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.55;
}

.plg-auth [hidden] {
  display: none !important;
}

.plg-auth__shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--pik-desktop-header-height, 82px));
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) 24px;
}

.plg-auth__card {
  position: relative;
  width: min(100%, 500px);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(113, 47, 223, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 64px rgba(26, 24, 68, 0.12);
}

.plg-auth__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #149bff, #712fdf 40%, #e50853 72%, #2dd4bf);
}

.plg-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--plg-auth-primary);
  font-family: var(--pik-heading-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.plg-auth__brand:hover {
  color: var(--plg-auth-link);
}

.plg-auth__brand:focus-visible,
.plg-auth__link:focus-visible,
.plg-auth__secondary-action:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.plg-auth__brand-mark {
  display: block;
  width: 42px;
  height: 42px;
}

.plg-auth__header {
  margin-bottom: 28px;
}

.plg-auth__eyebrow {
  margin: 0 0 8px;
  color: var(--plg-auth-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plg-auth .plg-auth__heading {
  margin: 0;
  padding: 0;
  color: var(--pik-heading-color, #730062);
  font-family: var(--pik-heading-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(29px, 4vw, 38px);
  font-weight: var(--pik-heading-font-weight, 600);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.plg-auth__intro {
  margin: 12px 0 0;
  color: var(--plg-auth-muted);
  font-size: 15px;
  line-height: 1.55;
}

.plg-auth__form {
  display: grid;
  gap: 21px;
  margin: 0;
}

.plg-auth__field {
  min-width: 0;
}

.plg-auth__label {
  display: inline-block;
  margin: 0 0 7px;
  color: var(--plg-auth-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.plg-auth__required {
  color: var(--plg-auth-error);
}

.plg-auth__input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.plg-auth .plg-auth__input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--plg-auth-border);
  border-radius: 10px;
  outline: 0;
  color: var(--plg-auth-ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(26, 24, 68, 0.04);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  appearance: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.plg-auth .plg-auth__input:hover {
  border-color: #bcb6d2;
}

.plg-auth .plg-auth__input:focus {
  border-color: var(--plg-auth-focus);
  box-shadow: 0 0 0 3px rgba(20, 155, 255, 0.16);
}

.plg-auth .plg-auth__input[aria-invalid="true"] {
  border-color: var(--plg-auth-error);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.plg-auth__input-wrap--password .plg-auth__input {
  padding-right: 92px;
}

.plg-auth__password-toggle {
  position: absolute;
  top: 4px;
  right: 5px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 80px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #5e5874;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.plg-auth__password-toggle:hover {
  color: var(--plg-auth-primary);
  background: #f7f2ff;
}

.plg-auth__password-toggle:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.32);
  outline-offset: 1px;
}

.plg-auth__password-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plg-auth__password-toggle-slash {
  opacity: 0;
}

.plg-auth__password-toggle[aria-pressed="true"] .plg-auth__password-toggle-slash {
  opacity: 1;
}

.plg-auth__help,
.plg-auth__character-count {
  margin: 7px 0 0;
  color: var(--plg-auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.plg-auth__character-count {
  margin-top: 3px;
  text-align: right;
}

.plg-auth__password-strength {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.plg-auth__password-strength-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceaf3;
}

.plg-auth__password-strength-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #9a96aa;
  transition:
    width 0.18s ease,
    background-color 0.18s ease;
}

.plg-auth__password-strength[data-level="unknown"] .plg-auth__password-strength-track > span {
  width: 16%;
  background: #7a7590;
}

.plg-auth__password-strength[data-level="very-weak"] .plg-auth__password-strength-track > span {
  width: 25%;
  background: #b42318;
}

.plg-auth__password-strength[data-level="weak"] .plg-auth__password-strength-track > span {
  width: 48%;
  background: #d97706;
}

.plg-auth__password-strength[data-level="good"] .plg-auth__password-strength-track > span {
  width: 74%;
  background: #2563eb;
}

.plg-auth__password-strength[data-level="strong"] .plg-auth__password-strength-track > span {
  width: 100%;
  background: #087a55;
}

.plg-auth__password-strength-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--plg-auth-muted);
  font-size: 12px;
  line-height: 1.4;
}

.plg-auth__password-strength-copy strong {
  color: var(--plg-auth-ink);
  font-weight: 800;
}

.plg-auth__field-error {
  min-height: 0;
  margin-top: 6px;
  color: var(--plg-auth-error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.plg-auth__field-error:empty {
  display: none;
}

.plg-auth__submit,
.plg-auth__secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--plg-auth-primary), var(--plg-auth-secondary));
  box-shadow: 0 12px 25px rgba(115, 0, 98, 0.2);
  font-family: var(--pik-button-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: var(--pik-button-font-size, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.plg-auth__submit {
  width: 100%;
  margin-top: 3px;
  padding: 0 22px;
}

.plg-auth__submit:hover,
.plg-auth__secondary-action:hover {
  color: #ffffff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(115, 0, 98, 0.24);
}

.plg-auth__submit:focus-visible,
.plg-auth__secondary-action:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.42);
  outline-offset: 3px;
}

.plg-auth__submit:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.72;
  transform: none;
}

.plg-auth__submit-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.plg-auth__spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: plg-auth-spin 0.75s linear infinite;
}

.plg-auth__status {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.plg-auth__status--error {
  border-color: rgba(180, 35, 24, 0.22);
  color: #8f1d14;
  background: #fff2f0;
}

.plg-auth__status--development {
  margin: 20px 0 0;
  border-color: rgba(37, 99, 235, 0.2);
  color: #1e4ea2;
  background: #eff6ff;
}

.plg-auth__status--success {
  margin: 0;
  border-color: rgba(8, 122, 85, 0.2);
  color: #075f43;
  background: #ecfdf5;
  text-align: center;
}

.plg-auth__status--success h2 {
  margin: 8px 0 7px;
  padding: 0;
  color: #075f43;
  font-family: var(--pik-heading-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: 24px;
  line-height: 1.25;
}

.plg-auth__status--success p {
  margin: 0;
}

.plg-auth__status--info {
  margin: 0;
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--plg-auth-ink);
  background: #f5f8ff;
  text-align: center;
}

.plg-auth__status--info h2 {
  margin: 10px 0 8px;
  padding: 0;
  color: var(--plg-auth-ink);
  font-family: var(--pik-heading-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: 24px;
  line-height: 1.25;
}

.plg-auth__status--info p {
  margin: 0;
}

.plg-auth__status--info .plg-auth__resend {
  border-top-color: rgba(37, 99, 235, 0.16);
}

.plg-auth__status--verified,
.plg-auth__status--password-reset {
  display: grid;
  gap: 3px;
  margin-bottom: 22px;
  text-align: left;
}

.plg-auth__status--logged-out {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: left;
}

.plg-auth__status--verification {
  margin-bottom: 22px;
  border-color: rgba(217, 119, 6, 0.28);
  color: #713f12;
  background: #fffbeb;
}

.plg-auth__status--verification:focus {
  outline: 3px solid rgba(20, 155, 255, 0.32);
  outline-offset: 3px;
}

.plg-auth__status--verification h2 {
  margin: 0 0 6px;
  padding: 0;
  color: #713f12;
  font-family: var(--pik-heading-font-family, Comfortaa, "Helvetica Neue", Arial, sans-serif);
  font-size: 19px;
  line-height: 1.3;
}

.plg-auth__status--verification p {
  margin: 0;
}

.plg-auth__status--verification .plg-auth__resend-button {
  margin-top: 14px;
}

.plg-auth__login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.plg-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--plg-auth-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.plg-auth__remember input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--plg-auth-primary);
  cursor: pointer;
}

.plg-auth__remember input:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.36);
  outline-offset: 3px;
}

.plg-auth__forgot-link {
  flex: 0 0 auto;
  padding: 10px 0;
  text-align: right;
}

.plg-auth__result-note {
  margin-top: 8px !important;
  color: var(--plg-auth-muted);
  font-size: 13px;
}

.plg-auth__result-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  color: #315ba8;
  background: #eaf1ff;
}

.plg-auth__result-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plg-auth__success-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--plg-auth-success);
  font-weight: 900;
}

.plg-auth__secondary-action {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
}

.plg-auth__resend {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 122, 85, 0.17);
}

.plg-auth__resend > p:first-child {
  margin-bottom: 10px;
  color: var(--plg-auth-ink);
  font-weight: 700;
}

.plg-auth__resend-button {
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(115, 0, 98, 0.28);
  border-radius: 9px;
  color: var(--plg-auth-primary);
  background: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.plg-auth__resend-button:hover {
  border-color: var(--plg-auth-primary);
  color: var(--plg-auth-primary);
  background: #fbf5ff;
}

.plg-auth__resend-button:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.36);
  outline-offset: 3px;
}

.plg-auth__resend-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.plg-auth__resend-status {
  min-height: 20px;
  margin: 10px 0 0 !important;
  color: var(--plg-auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.plg-auth__footer {
  margin: 25px 0 0;
  color: var(--plg-auth-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.plg-auth__link {
  color: var(--plg-auth-link);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.plg-auth__link:hover {
  color: var(--plg-auth-primary);
}

.plg-auth .plg-auth__input:-webkit-autofill,
.plg-auth .plg-auth__input:-webkit-autofill:hover,
.plg-auth .plg-auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--plg-auth-ink);
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-out 0s;
}

@keyframes plg-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .plg-auth__shell {
    min-height: calc(100vh - 72px);
    padding: 24px 16px 36px;
  }

  .plg-auth__card {
    padding: 27px 22px 30px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(26, 24, 68, 0.1);
  }

  .plg-auth__brand {
    margin-bottom: 23px;
  }

  .plg-auth__header {
    margin-bottom: 24px;
  }

  .plg-auth .plg-auth__heading {
    font-size: clamp(27px, 9vw, 34px);
  }

}

@media (max-width: 359px) {
  .plg-auth__shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .plg-auth__card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .plg-auth__password-toggle {
    min-width: 72px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .plg-auth__input-wrap--password .plg-auth__input {
    padding-right: 82px;
  }

  .plg-auth__login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .plg-auth__forgot-link {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plg-auth *,
  .plg-auth *::before,
  .plg-auth *::after {
    scroll-behavior: auto;
    transition: none;
  }

  .plg-auth__spinner {
    animation-duration: 1.5s;
  }
}
