/* فرم ورود — هماهنگ با پنل: پس‌زمینه #0C47E5، عناصر سفید، فونت سراسری سایت (وزیرمتن)، گوشه‌ی دکمه‌ها ۱۵px */

.myp-auth {
  --myp-blue: #0C47E5;
  --myp-blue-hover: #0934A8;
  --myp-blue-active: #06237A;
  --myp-radius: 15px;

  direction: rtl; text-align: center;
  width: 100%; max-width: 400px; margin: clamp(24px, 7vh, 64px) auto; padding: 34px 28px 30px;
  color: #fff; background: var(--myp-blue); border-radius: 24px;
  box-shadow: 0 20px 48px rgba(12, 71, 229, .28);
  font-family: var(--e-global-typography-text-font-family, "Vazirmatn"), "Vazirmatn", "Vazir Matn", Vazirmatn, Vazir, Tahoma, sans-serif;
  font-size: 1rem; line-height: 1.8;
}
.myp-auth *, .myp-auth *::before, .myp-auth *::after { box-sizing: border-box; }

/* نشان بالای کارت: گوشی موبایل (فقط CSS) */
.myp-auth__badge { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 16px; border: 2px solid #fff; border-radius: 50%; }
.myp-auth__badge::before { content: ""; position: absolute; left: 19px; top: 13px; width: 22px; height: 36px; border: 2px solid #fff; border-radius: 7px; }
.myp-auth__badge::after { content: ""; position: absolute; left: 27px; top: 18px; width: 6px; height: 2px; background: #fff; border-radius: 1px; }
.myp-auth__badge > span { position: absolute; left: 28px; top: 40px; width: 4px; height: 4px; background: #fff; border-radius: 50%; }

.myp-auth .myp-auth__title { margin: 0 0 8px; color: #fff; font-family: inherit; font-size: 1.5em; font-weight: 700; line-height: 1.4; }
.myp-auth .myp-auth__hint { margin: 0 0 22px; color: #fff; font-size: .92em; line-height: 1.9; }
.myp-auth label { display: block; margin: 0 0 8px; color: #fff; font-weight: 600; text-align: right; }

/* فیلدها (سلکتور قوی تا استایل فیلدهای سراسری المنتور آن را خراب نکند) */
.myp-auth .myp-step .myp-input.myp-input {
  display: block; width: 100%; height: 56px; margin: 0 0 16px; padding: 0 16px;
  font-family: inherit; font-size: 1.15em; font-weight: 600; line-height: 1; text-align: center; letter-spacing: .06em;
  color: var(--myp-blue); background: #fff; border: 2px solid #fff; border-radius: var(--myp-radius); box-shadow: none;
}
.myp-auth .myp-step .myp-input.myp-input::placeholder { color: var(--myp-blue); opacity: .55; font-weight: 400; letter-spacing: .04em; }
.myp-auth .myp-step .myp-input.myp-input:focus { outline: 3px solid #fff; outline-offset: 3px; }
.myp-auth .myp-step .myp-input[name="code"] { font-size: 1.5em; letter-spacing: .45em; text-indent: .45em; }

/* دکمه‌ها */
.myp-auth .myp-btn,
.myp-auth .myp-btn:visited {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0; padding: 0 20px;
  font-family: inherit; font-size: 1.05em; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--myp-blue); background: #fff; border: 2px solid #fff; border-radius: var(--myp-radius); box-shadow: none;
  transition: background-color .2s ease, color .2s ease;
}
.myp-auth .myp-btn:hover,
.myp-auth .myp-btn:focus { color: #fff; background: var(--myp-blue-hover); border-color: #fff; text-decoration: none; }
.myp-auth .myp-btn:active { color: #fff; background: var(--myp-blue-active); border-color: #fff; }
.myp-auth .myp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.myp-auth .myp-btn:disabled,
.myp-auth .myp-btn:disabled:hover { color: var(--myp-blue); background: #fff; opacity: .55; cursor: not-allowed; }

.myp-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.myp-auth .myp-link {
  margin: 0; padding: 8px 14px; font-family: inherit; font-size: .92em; line-height: 1.6; color: #fff; background: transparent;
  border: 2px solid transparent; border-radius: var(--myp-radius); box-shadow: none; text-decoration: underline; cursor: pointer;
  transition: background-color .2s ease;
}
.myp-auth .myp-link:hover, .myp-auth .myp-link:focus { color: #fff; background: var(--myp-blue-hover); }
.myp-auth .myp-link:active { background: var(--myp-blue-active); }
.myp-auth .myp-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.myp-auth .myp-link:disabled, .myp-auth .myp-link:disabled:hover { opacity: .7; cursor: default; text-decoration: none; background: transparent; }

/* پیام‌ها */
.myp-auth .myp-msg { margin: 0 0 18px; padding: 10px 14px; color: #fff; font-size: .92em; line-height: 1.8; border: 2px solid #fff; border-radius: var(--myp-radius); }
.myp-auth .myp-msg:empty { display: none; }
.myp-auth .myp-msg.is-err { font-weight: 700; }

.myp-auth .myp-step[hidden] { display: none; }
.myp-auth .myp-step:not([hidden]) { animation: myp-step-in .25s ease; }
@keyframes myp-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .myp-auth .myp-step:not([hidden]) { animation: none; } .myp-auth .myp-btn, .myp-auth .myp-link { transition: none; } }

@media (max-width: 480px) {
  .myp-auth { padding: 28px 20px 24px; margin-left: 16px; margin-right: 16px; width: auto; max-width: none; border-radius: 20px; }
}
