/* ==========================================================================

      █████╗ ███████╗ █████╗ ███╗   ██╗██╗    ██╗██████╗
     ██╔══██╗██╔════╝██╔══██╗████╗  ██║██║    ██║██╔══██╗
     ███████║███████╗███████║██╔██╗ ██║██║ █╗ ██║██████╔╝
     ██╔══██║╚════██║██╔══██║██║╚██╗██║██║███╗██║██╔═══╝
     ██║  ██║███████║██║  ██║██║ ╚████║╚███╔███╔╝██║
     ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝ ╚══╝╚══╝ ╚═╝

                            A S A N W P

   Authentication Styles
   Modern Login • OTP • WooCommerce • WordPress Authentication

   Plugin    : AsanWP Authentication
   Version   : 1.2.10
   Author    : AsanWP Team
   Website   : https://asanwp.com
   Docs      : https://asanwp.com/docs
   Support   : https://asanwp.com/support
   Mobile    : 09198827658
   Developer : Hamid Taherbakhsh
   Email     : info@asanwp.com

   Copyright (c) AsanWP
   Released under the GPL v2 or later.

   Thank you for using AsanWP ❤️
   Professional WordPress & WooCommerce Solutions

========================================================================== */


@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX/IRANYekanXVF.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

body .asanwp-auth,
body .asanwp-auth input,
body .asanwp-auth button,
body .asanwp-auth form {
  font-family: IRANYekanX !important;
  font-feature-settings: "ss02";
  font-weight: normal;
}

.asanwp-auth {
  width: 100%;
  max-width: 420px !important;
  margin: 40px auto;
  padding: 24px;
  box-sizing: border-box;
}

.asanwp-auth__wrapper {
  border-radius: 16px;
  padding: 30px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

body .asanwp-auth a {
  text-decoration: none !important;
  color: var(--asanwp-auth-title-color, #232323);
  transition: 0.3s;
}

body .asanwp-auth a:hover {
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth a:focus {
  outline: 0
}

body .asanwp-auth label,
body .asanwp-auth legend {
  font-weight: normal;
}

body .asanwp-auth,
body .asanwp-auth h2,
body .asanwp-auth form,
body .asanwp-auth button:not(.unset),
body .asanwp-auth input:not(.unset),
body .asanwp-auth select {
  line-height: 1.5;
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth input:not(.unset) {
  width: 100%;
  height: 50px;
  padding: 0 5px;
  border: 2px solid #ffffff00 !important;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  direction: rtl;
  text-align: center;
  background-color: #f2f2f2 !important;
  box-shadow: none !important;
  margin: 0;
  outline: none !important;
}

body .asanwp-auth input:not(.unset):focus {
  color: var(--asanwp-auth-title-color, #232323);
  border-color: var(--asanwp-auth-button-color, #ef394e) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Buttons */

body .asanwp-auth button.button:not(.unset),
body .asanwp-auth a.button:not(.unset) {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 4px;
  color: var(--asanwp-auth-button-text-color, #ffffff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  padding: 0;
  background-color: var(--asanwp-auth-button-color, #ef394e);
  margin: 0;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  display: flex;
}

body .asanwp-auth button.button:not(.unset):hover,
body .asanwp-auth a.button:not(.unset):hover {
  filter: brightness(1.2);
  background-color: var(--asanwp-auth-button-color, #ef394e);
  box-shadow: none;
}

body .asanwp-auth button.button:not(.unset):disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--asanwp-auth-button-color, #ef394e);
  box-shadow: none;
}

body .asanwp-auth button.button:not(.unset):disabled[disabled]:hover {
  background-color: var(--asanwp-auth-button-color, #ef394e);
  box-shadow: none;
}

body .asanwp-auth a.button {
  align-items: center;
  display: flex;
  justify-content: space-around;
}

/*------------------------------------*/
/* Checkbox
/*------------------------------------*/

body .asanwp-auth .asanwp-auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth .asanwp-auth__remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--asanwp-auth-button-color, #ef394e);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}

body .asanwp-auth .asanwp-auth__remember input[type="checkbox"]:checked {
  background: var(--asanwp-auth-button-color, #ef394e);
  border-color: var(--asanwp-auth-button-color, #ef394e);
  padding: 0;
}

body .asanwp-auth .asanwp-auth__remember input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: content-box;
}

body .asanwp-auth .asanwp-auth__remember input[type="checkbox"]:checked::after,
body .asanwp-auth .asanwp-auth__remember input[type="checkbox"]:after {
  display: none
}

body .asanwp-auth .asanwp-auth__remember span {
  cursor: pointer;
  user-select: none;
}

/* Title */

body .asanwp-auth .asanwp-auth__title {
  margin: 0 0 20px;
  text-align: center;
  font-weight: 700;
}

/* Form */

.asanwp-auth__form,
body .asanwp-auth form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: 0;
  background: none;
}

/* Email registration step */

body .asanwp-auth .asanwp-auth-step--register-email {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

body .asanwp-auth .asanwp-auth-step--register-email > .asanwp-auth__message,
body .asanwp-auth .asanwp-auth-step--register-email > .asanwp-auth__field,
body .asanwp-auth .asanwp-auth-step--register-email > .asanwp-password-policy,
body .asanwp-auth .asanwp-auth-step--register-email > .asanwp-auth__button {
  margin: 0;
}

.asanwp-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a7a7a;
  font-size: 13px;
}

.asanwp-auth__divider::before,
.asanwp-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(127, 127, 127, 0.25);
}

body .asanwp-auth a.button.asanwp-auth__google {
  gap: 10px;
  justify-content: center;
  border: 1px solid #d9dce1;
  background: #ffffff;
  color: #303134;
}

body .asanwp-auth a.button.asanwp-auth__google:hover {
  border-color: #b9bec6;
  background: #f8f9fa;
  color: #202124;
  filter: none;
}

.asanwp-auth__google svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* OTP */

body .asanwp-auth .asanwp-auth__otp {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

body .asanwp-auth input.asanwp-auth__otp-input {
  font-size: 23px !important;
  font-weight: 900 !important;
  direction: ltr;
}

body .asanwp-auth .asanwp-auth__otp-input:focus {
  border-color: #ef394e;
  outline: none;
}

/* Actions */

.asanwp-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body .asanwp-auth button:not(.unset).button.button-secondary {
  background: #f2f2f2;
  color: #555;
}

body .asanwp-auth button:not(.unset).button.button-secondary:hover {
  background: #e2e2e2;
  filter: brightness(1)
}

/* Message */

.asanwp-auth__message {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.asanwp-auth__message strong {
  direction: ltr;
  display: inline-block;
}

/* Resend */

body .asanwp-auth .asanwp-auth__resend {
  text-align: center;
  font-size: 14px;
}

body .asanwp-auth #asanwp-resend-counter a {
  color: #ef394e;
  text-decoration: none;
  font-weight: 600;
}

/* Notice */

#asanwp-auth-response {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

/* Mobile */

@media (max-width: 480px) {
  .asanwp-auth {
    padding: 16px;
    margin: 20px auto;
  }

  .asanwp-auth__wrapper {
    padding: 24px 18px;
  }

  .asanwp-auth__otp {
    gap: 6px;
  }

  .asanwp-auth__otp-input {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }
}

.asanwp-auth__otp-input.error {
  border-color: #ef394e !important;
  background: #fff5f6;
}

/* Password */

.asanwp-auth__password-field {
  position: relative;
}

body .asanwp-auth .asanwp-auth__password-toggle {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

body .asanwp-auth .asanwp-auth__password-toggle:hover {
  color: #555;
}

.asanwp-auth__password-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.asanwp-auth__eye-slash {
  display: none;
}

.asanwp-auth__password-toggle.is-visible .asanwp-auth__eye-slash {
  display: block;
}

.asanwp-auth__input.error {
  border-color: #ef394e;
  background: #fff5f6;
}

.asanwp-auth__input.shake {
  animation: asanwpShake 0.35s ease;
}

@keyframes asanwpShake {

  10%,
  90% {
    transform: translateX(-2px);
  }

  20%,
  80% {
    transform: translateX(4px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-6px);
  }

  40%,
  60% {
    transform: translateX(6px);
  }
}

body .asanwp-auth .asanwp-auth__description {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
}

body .asanwp-auth .asanwp-auth__success {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 5px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 600;
  font-size: 15px;
}

body .asanwp-auth .asanwp-password-policy__item.success {
  background: none;
}

body .asanwp-auth #asanwp-auth-back {
  position: absolute;
}

body .asanwp-auth h2.asanwp-auth__title {
  margin-top: 0;
  font-size: 18px;
}

body .asanwp-auth .asanwp-auth__back {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  fill: var(--asanwp-auth-title-color, #232323);
  transition: all 0.2s ease;
  width: auto;
  height: auto;
}

body .asanwp-auth .asanwp-auth__back:hover {
  background: #f5f5f500;
  fill: var(--asanwp-auth-title-color, #232323);
  filter: brightness(2)
}

.asanwp-auth__back svg {
  width: 20px;
  height: 20px;
}

.asanwp-auth__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

body .asanwp-auth a#asanwp-forgot-password,
body .asanwp-auth a#asanwp-login-with-password,
body .asanwp-auth a#asanwp-login-with-email-code {
  font-size: 14px
}

.asanwp-auth__remember {
  padding: 10px 0;
  display: flex;
}

.asanwp-auth__notice {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.asanwp-auth__notice--error {
  color: #b42318;
}

.asanwp-auth__notice--success {
  color: #027a48;
}

.asanwp-auth__term {
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
}

body .asanwp-auth .asanwp-auth__term a {
  font-weight: 600;
  color: var(--asanwp-auth-button-color, #ef394e);
  border-bottom: 1px solid var(--asanwp-auth-button-color, #ef394e);
}

body .asanwp-auth .asanwp-auth__term a:hover {
  color: var(--asanwp-auth-button-color, #ef394e);
  filter: brightness(0.7)
}

#asanwp_reset_email {
  margin-bottom: 15px;
}

.asanwp-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: asanwp-spin 0.7s linear infinite;
}

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

button .asanwp-spinner,
a .asanwp-spinner {
  flex: 0 0 auto;
}

.asanwp-auth__logo {
  text-align: center;

  margin-bottom: 24px;
}

.asanwp-auth__logo img {
  display: inline-block;
  max-width: 130px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.asanwp-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IRANYekanX' !important;
}

.asanwp-auth-page__content {
  width: 100%;
}

#asanwp-captcha-image {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/*
|--------------------------------------------------------------------------
| CAPTCHA
|--------------------------------------------------------------------------
*/
.asanwp-auth__captcha {
  position: relative;
}

.asanwp-auth__captcha img {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 80px;
  height: 34px;
  cursor: pointer;
  border-radius: 6px;
}

#asanwp_captcha {
  padding-right: 95px;
}

.asanwp-auth__captcha img {
  left: 8px;
  right: auto;
}

#asanwp_captcha {
  padding-left: 95px;
  padding-right: 16px;
}

.asanwp-auth__captcha {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asanwp-auth__captcha-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fafafa;
}

#asanwp-captcha-image {
  display: block;
  width: 85px;
  height: auto;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
}

#asanwp-captcha-image.loading {
  opacity: 0.45;
}

#asanwp_captcha {
  text-align: center;
  font-weight: 900 !important;
  font-size: 23px !important;
}

#asanwp_captcha::placeholder {
  font-weight: 400;
  font-size: 14px;
  top: -3px;
  position: relative;
}

.asanwp-auth__captcha-help {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #777;
}

.asanwp-auth input[type="password"]::-ms-reveal,
.asanwp-auth input[type="password"]::-ms-clear {
  display: none;
}

/*--------------------------------------------------------------
# Password Policy
--------------------------------------------------------------*/

.asanwp-password-policy {
  margin-top: 15px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
}

.asanwp-password-policy__title {
  margin-bottom: 14px;

  font-size: 14px;

  font-weight: 600;

  color: #111827;
}

.asanwp-password-policy__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
  transition: 0.2s;
}

.asanwp-password-policy__item:last-child {
  margin-bottom: 0;
}

.asanwp-password-policy__icon {
  width: 18px;
  text-align: center;
  font-weight: 700;
}

.asanwp-password-policy__item.success {
  color: #16a34a;
}

.asanwp-password-policy__item.success .asanwp-password-policy__icon {
  color: #16a34a;
}

.asanwp-password-policy__item.error {
  color: #dc2626;
}

.asanwp-password-policy__item.error .asanwp-password-policy__icon {
  color: #dc2626;
}

.asanwp-password-policy {
  display: none;
}

.asanwp-password-policy.is-active {
  display: block;
}

#asanwp-auth-back[hidden] {
  display: none !important;
}

/* Auth page background */

body.asanwp-auth-page {
  background-color: var(--asanwp-auth-bg-color, #ffffff);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Auth form wrapper */

body.asanwp-auth-page .asanwp-auth__wrapper {
  background-color: var(--asanwp-auth-form-color, rgb(255 255 255 / 20%));
}

/*======================================*
 * Login Popup
 *======================================*/

.asanwp-login-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.asanwp-login-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.asanwp-login-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
  cursor: pointer;
}

.asanwp-login-popup.is-open .asanwp-login-popup__overlay {
  background: rgba(0, 0, 0, 0.55);
}

.asanwp-login-popup__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100vh - 40px);
  padding: 0;
  background: #fff;
  border-radius: 15px;
  box-sizing: border-box;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s ease;
}

.asanwp-login-popup.is-open .asanwp-login-popup__container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.asanwp-login-popup__container {
  max-width: 800px;
}

.asanwp-login-popup__container:not(:has(.asanwp-login-popup__image)) .asanwp-login-popup__form {
  flex: 0 0 100%;
  width: 100%;
}

.asanwp-login-popup__container:not(:has(.asanwp-login-popup__image)) {
  max-width: 380px;
}

.asanwp-login-popup.is-open .asanwp-login-popup__container {
  transform: translateY(0);
}

.asanwp-login-popup-open .asanwp-auth__wrapper {
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.asanwp-login-popup-open .asanwp-auth {
  padding: 0;
  margin: 0 auto;
}


/*======================================*
 * Close Button
 *======================================*/

.asanwp-login-popup-open .is-open .asanwp-login-popup__close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
  margin: 0;
  font: menu;
}

.asanwp-login-popup__close svg {
  width: 15px;
  height: 15px;
  fill: #202020
}

.asanwp-login-popup-open .is-open .asanwp-login-popup__close:hover {
  background: transparent;
  transform: rotate(90deg);
}


/*======================================*
 * Popup Content
 *======================================*/

.asanwp-login-popup__content {
  display: flex;
  flex-direction: row;
  direction: ltr;
  width: 100%;
}


/*======================================*
 * Login Form
 *======================================*/

.asanwp-login-popup__form {
  order: 1;
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  padding: 30px;
  box-sizing: border-box;
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asanwp-login-popup__form:only-child {
  flex: 0 0 100%;
  width: 100%;
}


/*======================================*
 * Popup Image
 *======================================*/

.asanwp-login-popup__image {
  order: 2;
  flex: 0 0 50%;
  width: 50%;
  min-height: 480px;
  overflow: hidden;
}

.asanwp-login-popup__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*======================================*
 * Without Image
 *======================================*/

.asanwp-login-popup__form:only-child {
  width: 100%;
}


/*======================================*
 * Body Lock
 *======================================*/

body.asanwp-login-popup-open {
  overflow: hidden;
}


/*======================================*
 * Login Popup - Mobile
 *======================================*/

@media (max-width: 767px) {

  .asanwp-login-popup__container {
    max-height: calc(100vh - 20px);
    margin: 15px;
    overflow-y: auto;
    max-width: 380px;
  }

  .asanwp-login-popup__image {
    display: none;
  }

  .asanwp-login-popup__form {
    flex: 0 0 100%;
    width: 100%;
    padding: 25px 20px;
  }

}

/* ========================================================================== 
   Frontend light / dark authentication themes
   ========================================================================== */

.asanwp-auth,
.asanwp-login-popup,
body.asanwp-auth-page {
  --asanwp-auth-bg-color: var(--asanwp-auth-light-bg-color, #ffffff);
  --asanwp-auth-form-color: var(--asanwp-auth-light-form-color, rgb(255 255 255 / 20%));
  --asanwp-auth-title-color: var(--asanwp-auth-light-title-color, #232323);
  --asanwp-auth-button-color: var(--asanwp-auth-light-button-color, #ef394e);
  --asanwp-auth-button-text-color: var(--asanwp-auth-light-button-text-color, #ffffff);
  --asanwp-auth-muted-color: #70757d;
  --asanwp-auth-input-bg: #f2f2f2;
  --asanwp-auth-input-border: #d9dce1;
  --asanwp-auth-surface: #ffffff;
  --asanwp-auth-surface-soft: #f8f9fa;
  --asanwp-auth-secondary-bg: #f2f2f2;
  --asanwp-auth-secondary-bg-hover: #e2e2e2;
  --asanwp-auth-secondary-text: #555555;
  --asanwp-auth-divider: rgba(127, 127, 127, .25);
  --asanwp-auth-danger: #b42318;
  --asanwp-auth-danger-bg: #fff5f6;
  --asanwp-auth-success: #027a48;
  --asanwp-auth-success-bg: #ecfdf3;
  --asanwp-auth-bg-image: var(--asanwp-auth-light-bg-image, none);
  --asanwp-auth-bg-overlay: var(--asanwp-auth-light-bg-overlay, rgba(255, 255, 255, 0));
}

.asanwp-auth[data-asanwp-auth-theme="dark"],
.asanwp-login-popup[data-asanwp-auth-theme="dark"],
body.asanwp-auth-page[data-asanwp-auth-theme="dark"],
.asanwp-auth[data-asanwp-auth-mode="dark"],
.asanwp-login-popup[data-asanwp-auth-mode="dark"],
body.asanwp-auth-page[data-asanwp-auth-mode="dark"] {
  --asanwp-auth-bg-color: var(--asanwp-auth-dark-bg-color, #111318);
  --asanwp-auth-form-color: var(--asanwp-auth-dark-form-color, #1f232b);
  --asanwp-auth-title-color: var(--asanwp-auth-dark-title-color, #f4f4f5);
  --asanwp-auth-button-color: var(--asanwp-auth-dark-button-color, #ef394e);
  --asanwp-auth-button-text-color: var(--asanwp-auth-dark-button-text-color, #ffffff);
  --asanwp-auth-muted-color: var(--asanwp-auth-dark-muted-color, #a1a1aa);
  --asanwp-auth-input-bg: var(--asanwp-auth-dark-input-color, #2a2f38);
  --asanwp-auth-input-border: var(--asanwp-auth-dark-border-color, #414854);
  --asanwp-auth-surface: var(--asanwp-auth-dark-form-color, #1f232b);
  --asanwp-auth-surface-soft: var(--asanwp-auth-dark-input-color, #2a2f38);
  --asanwp-auth-secondary-bg: var(--asanwp-auth-dark-input-color, #2a2f38);
  --asanwp-auth-secondary-bg-hover: #343b46;
  --asanwp-auth-secondary-text: var(--asanwp-auth-dark-title-color, #f4f4f5);
  --asanwp-auth-divider: var(--asanwp-auth-dark-border-color, #414854);
  --asanwp-auth-danger: #fca5a5;
  --asanwp-auth-danger-bg: #3a2024;
  --asanwp-auth-success: #86efac;
  --asanwp-auth-success-bg: #173326;
  --asanwp-auth-bg-image: var(--asanwp-auth-dark-bg-image, var(--asanwp-auth-light-bg-image, none));
  --asanwp-auth-bg-overlay: var(--asanwp-auth-dark-bg-overlay, rgba(0, 0, 0, .50));
  color-scheme: dark;
}

/* Force-light must win even when a parent theme is dark. */
.asanwp-auth[data-asanwp-auth-theme="light"],
.asanwp-login-popup[data-asanwp-auth-theme="light"],
body.asanwp-auth-page[data-asanwp-auth-theme="light"],
.asanwp-auth[data-asanwp-auth-mode="light"],
.asanwp-login-popup[data-asanwp-auth-mode="light"],
body.asanwp-auth-page[data-asanwp-auth-mode="light"] {
  color-scheme: light;
}

@media (max-width: 782px) {
  body.asanwp-auth-page,
  .asanwp-auth,
  .asanwp-login-popup {
    --asanwp-auth-bg-image: var(--asanwp-auth-light-bg-image-mobile, var(--asanwp-auth-light-bg-image, none));
  }

  body.asanwp-auth-page[data-asanwp-auth-theme="dark"],
  body.asanwp-auth-page[data-asanwp-auth-mode="dark"],
  .asanwp-auth[data-asanwp-auth-theme="dark"],
  .asanwp-auth[data-asanwp-auth-mode="dark"],
  .asanwp-login-popup[data-asanwp-auth-theme="dark"],
  .asanwp-login-popup[data-asanwp-auth-mode="dark"] {
    --asanwp-auth-bg-image: var(--asanwp-auth-dark-bg-image-mobile, var(--asanwp-auth-dark-bg-image, var(--asanwp-auth-light-bg-image-mobile, none)));
  }
}

body.asanwp-auth-page {
  background-color: var(--asanwp-auth-bg-color, #ffffff);
  background-image:
    linear-gradient(var(--asanwp-auth-bg-overlay, transparent), var(--asanwp-auth-bg-overlay, transparent)),
    var(--asanwp-auth-bg-image, none);
  background-size: 100% 100%, var(--asanwp-auth-bg-size, cover);
  background-position: center, var(--asanwp-auth-bg-position, center center);
  background-repeat: no-repeat, var(--asanwp-auth-bg-repeat, no-repeat);
  transition: background-color .22s ease;
}

body.asanwp-auth-page .asanwp-auth__wrapper,
body .asanwp-auth .asanwp-auth__wrapper {
  background-color: var(--asanwp-auth-form-color, rgb(255 255 255 / 20%));
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

body .asanwp-auth,
body .asanwp-auth h2,
body .asanwp-auth label,
body .asanwp-auth legend,
body .asanwp-auth .asanwp-auth__description,
body .asanwp-auth .asanwp-auth__message,
body .asanwp-auth .asanwp-auth__term,
body .asanwp-auth .asanwp-auth__remember,
body .asanwp-auth a {
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth input:not(.unset),
body .asanwp-auth textarea:not(.unset),
body .asanwp-auth select:not(.unset) {
  border-color: transparent !important;
  background-color: var(--asanwp-auth-input-bg, #f2f2f2) !important;
  color: var(--asanwp-auth-title-color, #232323) !important;
}

body .asanwp-auth input:not(.unset)::placeholder,
body .asanwp-auth textarea:not(.unset)::placeholder {
  color: var(--asanwp-auth-muted-color, #70757d);
  opacity: 1;
}

body .asanwp-auth .asanwp-auth__divider,
body .asanwp-auth .asanwp-auth__captcha-help,
body .asanwp-auth .asanwp-password-policy__item,
body .asanwp-auth .asanwp-auth__password-toggle {
  color: var(--asanwp-auth-muted-color, #70757d);
}

.asanwp-auth__divider::before,
.asanwp-auth__divider::after {
  background: var(--asanwp-auth-divider, rgba(127, 127, 127, .25));
}

body .asanwp-auth a.button.asanwp-auth__google {
  border-color: var(--asanwp-auth-input-border, #d9dce1);
  background: var(--asanwp-auth-surface, #ffffff);
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth a.button.asanwp-auth__google:hover {
  border-color: var(--asanwp-auth-input-border, #d9dce1);
  background: var(--asanwp-auth-surface-soft, #f8f9fa);
  color: var(--asanwp-auth-title-color, #232323);
}

body .asanwp-auth button:not(.unset).button.button-secondary {
  background: var(--asanwp-auth-secondary-bg, #f2f2f2);
  color: var(--asanwp-auth-secondary-text, #555555);
}

body .asanwp-auth button:not(.unset).button.button-secondary:hover {
  background: var(--asanwp-auth-secondary-bg-hover, #e2e2e2);
  color: var(--asanwp-auth-secondary-text, #555555);
}

.asanwp-auth__otp-input.error,
.asanwp-auth__input.error {
  border-color: var(--asanwp-auth-button-color, #ef394e) !important;
  background: var(--asanwp-auth-danger-bg, #fff5f6) !important;
}

.asanwp-auth__notice--error {
  color: var(--asanwp-auth-danger, #b42318);
}

.asanwp-auth__notice--success,
body .asanwp-auth .asanwp-auth__success {
  color: var(--asanwp-auth-success, #027a48);
}

body .asanwp-auth .asanwp-auth__success {
  background: var(--asanwp-auth-success-bg, #ecfdf3);
}

.asanwp-auth__captcha-image,
.asanwp-password-policy {
  border-color: var(--asanwp-auth-input-border, #e5e5e5);
  background: var(--asanwp-auth-surface, #ffffff);
}

.asanwp-password-policy__title {
  color: var(--asanwp-auth-title-color, #111827);
}

/* The popup shell is outside .asanwp-auth, so theme it separately. */
.asanwp-login-popup__container {
  border: 1px solid transparent;
  background: var(--asanwp-auth-surface, #ffffff);
  color: var(--asanwp-auth-title-color, #232323);
  transition: background-color .22s ease, border-color .22s ease;
}

.asanwp-login-popup[data-asanwp-auth-theme="dark"] .asanwp-login-popup__container,
.asanwp-login-popup[data-asanwp-auth-mode="dark"] .asanwp-login-popup__container {
  border-color: var(--asanwp-auth-dark-border-color, #414854);
}

.asanwp-login-popup__close svg {
  fill: var(--asanwp-auth-title-color, #202020);
}

/* Light / dark logo pair. */
.asanwp-auth__logo-image--dark {
  display: none !important;
}

.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-auth__logo-image--light,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-auth__logo-image--light {
  display: none !important;
}

.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-auth__logo-image--dark,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-auth__logo-image--dark {
  display: inline-block !important;
}

.asanwp-auth[data-asanwp-auth-theme="light"] .asanwp-auth__logo-image--light,
.asanwp-auth[data-asanwp-auth-mode="light"] .asanwp-auth__logo-image--light {
  display: inline-block !important;
}

.asanwp-auth[data-asanwp-auth-theme="light"] .asanwp-auth__logo-image--dark,
.asanwp-auth[data-asanwp-auth-mode="light"] .asanwp-auth__logo-image--dark {
  display: none !important;
}

/* Keep stateful controls above the generic theme surface overrides. */
body .asanwp-auth .asanwp-auth__remember input[type="checkbox"] {
  border-color: var(--asanwp-auth-button-color, #ef394e) !important;
  background: var(--asanwp-auth-surface, #ffffff) !important;
}

body .asanwp-auth .asanwp-auth__remember input[type="checkbox"]:checked {
  border-color: var(--asanwp-auth-button-color, #ef394e) !important;
  background: var(--asanwp-auth-button-color, #ef394e) !important;
}

body .asanwp-auth .asanwp-password-policy__item.success,
body .asanwp-auth .asanwp-password-policy__item.success .asanwp-password-policy__icon {
  color: #16a34a;
}

body .asanwp-auth .asanwp-password-policy__item.error,
body .asanwp-auth .asanwp-password-policy__item.error .asanwp-password-policy__icon {
  color: #dc2626;
}

.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-password-policy__item.success,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-password-policy__item.success,
.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-password-policy__item.success .asanwp-password-policy__icon,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-password-policy__item.success .asanwp-password-policy__icon {
  color: #86efac;
}

.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-password-policy__item.error,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-password-policy__item.error,
.asanwp-auth[data-asanwp-auth-theme="dark"] .asanwp-password-policy__item.error .asanwp-password-policy__icon,
.asanwp-auth[data-asanwp-auth-mode="dark"] .asanwp-password-policy__item.error .asanwp-password-policy__icon {
  color: #fca5a5;
}
