body.page-template-blank-login,
body.persika-login-blank-template {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100vh !important;
  background-color: #fafafa;
}

/* ====== پرسیکا لاگین – CSS ====== */

.persika-login-wrapper,
.persika-login-wrapper * ,
.persika-login-wrapper *::before,
.persika-login-wrapper *::after { box-sizing: border-box; }

.persika-login-wrapper {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 80px auto;
  padding: 32px 24px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  direction: rtl;
  overflow: hidden;
  position: relative;
}


#pl-close-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #777;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: all .2s;
  z-index: 999999;
}


#pl-close-btn:hover {
  color: #000;
}

.persika-login-wrapper .pl-input-wrap {
  position: relative;
}

.persika-login-wrapper .pl-password-eye {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  box-shadow: none;
  color: #ccc;
  transition: color 0.2s;
  padding: 0;
  cursor: pointer;
}

.persika-login-wrapper .pl-password-eye:hover {
  color: #000;
}

.persika-login-wrapper input[type="password"] {
  padding-left: 40px;
}

/* Typography */
.persika-login-wrapper h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; text-align: right; padding-right: 0; color: #222; }
.persika-login-wrapper .pl-desc { margin-bottom: 12px; color: #666; font-size: 14px; }
.persika-login-wrapper .pl-step-1 h3 { margin-bottom: 20px; }
.persika-login-wrapper .pl-step-1 label[for="pl-phone"] { display:block; margin-bottom: 8px; }
.persika-login-wrapper .pl-step-1 #pl-next { margin-top: 40px; }
.persika-login-wrapper .pl-step-1 .pl-desc { margin-top: 8px; }

/* Inputs / Buttons */
.persika-login-wrapper .pl-input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  outline: none;
  background: #fff;
  font-size: 16px;
  box-shadow: none;
}
.persika-login-wrapper .pl-input:focus { border-color: #999; }

.persika-login-wrapper .pl-btn {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--pl-primary);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  box-shadow: none;
}
.persika-login-wrapper .pl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.persika-login-wrapper .pl-error { color: #c0392b; margin-top: 8px; min-height: 18px; font-size: 13px; }
.persika-login-wrapper .pl-info { color: var(--pl-primary); margin-top: 8px; font-size: 13px; min-height: 18px; }

/* OTP */
.persika-login-wrapper .pl-step-otp h3 { margin-bottom: 12px; }

.persika-login-wrapper .pl-otp-inputs {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  width: 100%;
  overflow: hidden;
}

.persika-login-wrapper .pl-otp-inputs input {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color .15s ease;
  direction: ltr;
}
.persika-login-wrapper .pl-otp-inputs input:focus { border-color: #999; }


.persika-login-wrapper .pl-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 24px;
}
.persika-login-wrapper .pl-back {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border:0; background:transparent; color:var(--pl-primary); font-size:24px; cursor:pointer;
  z-index: 3;
}
.persika-login-wrapper .pl-brand {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.persika-login-wrapper .pl-brand-logo,
.persika-login-wrapper .pl-brand img {
  width: 204px;
  height: 75px;
  object-fit: contain;
  max-width: 100%;
}

@media (max-width: 768px) {
  .persika-login-wrapper .pl-header { padding-right: 42px; }
  .persika-login-wrapper .pl-back { right: 4px; }
}

.persika-login-wrapper #pl-otp-single-input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  margin: 10px 0 15px;
}
.persika-login-wrapper #pl-otp-single-input:focus { border-color: var(--pl-primary); box-shadow: 0 0 0 3px rgba(179,0,0,.1);}
.persika-login-wrapper .pl-resend-options { margin-top: 12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content: center; font-size: 14px; font-weight: 400; }
.persika-login-wrapper .pl-resend-options span { font-size:14px; color:#666; font-weight: 400; }

/* Timer & actions */
.persika-login-wrapper .pl-timer { font-size: 13px; color: #666; }
.persika-login-wrapper .pl-timer strong { font-weight: 700; }

.persika-login-wrapper .pl-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.persika-login-wrapper .pl-actions > .pl-link {
  flex: 1 1 0;
  min-width: 180px; /* روی موبایل هر کدوم یک خط هم می‌تونن باشند */
}

.persika-login-wrapper .pl-link {
  background: transparent;
  border: 0;
  color: var(--pl-primary);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
.persika-login-wrapper .pl-link:disabled { opacity: .5; cursor: not-allowed; }
.persika-login-wrapper .pl-step-2 .pl-link {
  display: block;
  width: 100%;
  margin: 12px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-primary);
  padding: 8px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pl-primary) 10%, white);
}
.persika-login-wrapper .pl-step-2 .pl-link:hover { background: #e8f6f1; }

.persika-login-wrapper .pl-step { width: 100%; }

.persika-login-wrapper .pl-choice-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.persika-login-wrapper .pl-choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
}
.persika-login-wrapper .pl-choice-item input { margin: 0; }
.persika-login-wrapper .pl-choice-item:has(input:checked) {
  border-color: var(--pl-primary);
  background: color-mix(in srgb, var(--pl-primary) 10%, white);
}

.persika-login-wrapper .pl-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
}
.persika-login-wrapper .pl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.persika-login-wrapper .pl-modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  z-index: 2;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

/* Toast */
#persika-toast {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease;
}
#persika-toast.show {
  opacity: 1;
  visibility: visible;
}
#persika-toast .persika-toast__card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  box-shadow: 0 14px 42px rgba(0,0,0,.22);
  transform: translateY(12px) scale(.98);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
#persika-toast.show .persika-toast__card {
  transform: translateY(0) scale(1);
}
#persika-toast .persika-toast__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}
#persika-toast .persika-toast__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
#persika-toast .persika-toast__circle-bg {
  fill: rgba(34,197,94,.18);
}
#persika-toast .persika-toast__circle-progress {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
#persika-toast .persika-toast__check {
  fill: none;
  stroke: #22c55e;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}
#persika-toast.show .persika-toast__circle-progress {
  animation: pl-toast-circle .72s ease forwards;
}
#persika-toast.show .persika-toast__check {
  animation: pl-toast-check .32s ease .48s forwards;
}
#persika-toast .persika-toast__text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
@keyframes pl-toast-circle { to { stroke-dashoffset: 0; } }
@keyframes pl-toast-check { to { stroke-dashoffset: 0; } }
@media (max-width: 480px) {
  #persika-toast .persika-toast__card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }
  #persika-toast .persika-toast__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  #persika-toast .persika-toast__text {
    font-size: 14px;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .persika-login-wrapper { width:100%; min-height:100vh; margin:0; display:flex; align-items:center; flex-direction:column; justify-content:center; border:0; border-radius:0; box-shadow:none; background:#fff; padding:20px 16px; }
  .persika-login-wrapper .pl-otp-inputs { gap: 10px; }
  .persika-login-wrapper .pl-otp-inputs input { height: 46px; font-size: 19px; }
  .persika-login-wrapper .pl-btn { padding: 11px 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  .persika-login-wrapper .pl-otp-inputs { gap: 8px; }
  .persika-login-wrapper .pl-otp-inputs input { height: 44px; font-size: 18px; }
}

/* جلوگیری از تداخل المنتور/قالب */
.persika-login-wrapper .elementor,
.persika-login-wrapper .elementor * { box-sizing: border-box; }
.persika-login-wrapper, .persika-login-wrapper * { line-height: 1.45; z-index: 999999; }

.persika-login-wrapper .pl-step-choice h3,
.persika-login-wrapper .pl-step-password h3,
.persika-login-wrapper .pl-step-password-login h3,
.persika-login-wrapper .pl-step-2 h3,
.persika-login-wrapper .pl-step-otp h3 {
  text-align: center;
}

.persika-login-wrapper .pl-step-choice .pl-desc,
.persika-login-wrapper .pl-step-password .pl-desc,
.persika-login-wrapper .pl-step-password-login .pl-desc,
.persika-login-wrapper .pl-step-2 .pl-desc,
.persika-login-wrapper .pl-step-otp .pl-desc {
  text-align: center;
  margin-bottom: 16px;
}


.persika-login-wrapper .pl-step h3 {
  font-size: 20px;
  font-weight: bold;
}

.persika-login-wrapper label[for="pl-phone"] {
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-top: 10px;
  margin-bottom: 8px;
}

.persika-login-wrapper .pl-step-1 .pl-desc a {
  color: var(--pl-primary);
  font-weight: 700;
  text-decoration: none;
}

.persika-login-wrapper .pl-link {
  color: var(--pl-primary);
  text-decoration: none;
}

.persika-login-wrapper #pl-edit-phone {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.persika-login-wrapper #pl-link-to-password {
  font-size: 14px;
  font-weight: 500;
}
