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

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

                            A S A N W P

   Authentication Styles
   Modern Login • OTP • WooCommerce • WordPress Authentication

   Plugin    : AsanWP Authentication
   Version   : 1.0.0
   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 16px;
  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;
}

/* 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;
  font-weight: 900;
  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 {
  margin-top: 10px;
}

body .asanwp-auth a#asanwp-forgot-password,
body .asanwp-auth a#asanwp-login-with-password {
  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__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;
  font-size: 23px;
}

#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%));
}