/* ==========================================================================
   Vikrun — Login / OTP page skin (minimal marketplace card)
   صفحه‌ی «ورود و ثبت‌نام» (login-otino, page id 2054). RTL, brand #ffcd11.
   روی form-notheme-otino.css سوار می‌شود؛ منطقِ نمایش/مخفیِ دو مرحله دست‌نخورده.
   ========================================================================== */

/* --- container: center the card, fill the empty space --- */
body.vk-login-page .site-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 62vh;
  padding: 48px 16px 76px;
  background: #f6f7f9;
}

/* --- page title as card heading (centered above card) --- */
body.vk-login-page .page-header {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  text-align: center;
}
body.vk-login-page .page-header .page-title,
body.vk-login-page .page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1d21;
  margin: 0;
  line-height: 1.5;
}

/* --- the white card --- */
body.vk-login-page .page-content {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(20, 23, 28, .07);
  padding: 30px 26px 32px;
  box-sizing: border-box;
}

/* --- reset both forms inside the card --- */
body.vk-login-page #otino-login-register-form-mobile,
body.vk-login-page #otino-form-otp {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
}

/* --- helper hint line under the title (optional, if theme adds one) --- */
body.vk-login-page #otino-login-register-form-mobile > p:first-of-type,
body.vk-login-page #otino-form-otp > p:first-of-type {
  margin-top: 0;
}

/* --- labels --- */
body.vk-login-page #otino-login-register-form-mobile label,
body.vk-login-page #otino-form-otp label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #363b41;
  margin: 0 0 8px;
  text-align: right;
}
body.vk-login-page .required {
  color: #e23744;
  text-decoration: none;
  border: 0;
}

/* --- phone input --- */
body.vk-login-page #otino_mobile {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  border: 1.5px solid #e3e6ea;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1d21;
  direction: ltr;
  text-align: right;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.vk-login-page #otino_mobile::placeholder {
  color: #aeb4bb;
  font-weight: 400;
}
body.vk-login-page #otino_mobile:focus {
  outline: none;
  border-color: #ffcd11;
  box-shadow: 0 0 0 3px rgba(255, 205, 17, .28);
}

/* --- primary buttons (send code + verify) --- */
body.vk-login-page #otino-login-register-form-mobile button[name="otino_mobile_submit"],
body.vk-login-page #otino-form-otp button[type="submit"] {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: #ffcd11;
  color: #1a1d21;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
  transition: background .15s ease, transform .05s ease;
}
body.vk-login-page #otino-login-register-form-mobile button[name="otino_mobile_submit"]:hover,
body.vk-login-page #otino-form-otp button[type="submit"]:hover {
  background: #f2be00;
}
body.vk-login-page #otino-login-register-form-mobile button[name="otino_mobile_submit"]:active,
body.vk-login-page #otino-form-otp button[type="submit"]:active {
  transform: translateY(1px);
}

/* --- OTP: 4 separate digit boxes --- */
body.vk-login-page #otino-form-otp label {
  text-align: center;
}
body.vk-login-page .otino_otp_container {
  display: flex;
  flex-direction: row;      /* first box on the left (numeric order) */
  justify-content: center;
  gap: 12px;
  margin: 10px 0 4px;
  direction: ltr;
}
body.vk-login-page .otino_otp_item {
  width: 52px;
  height: 60px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1a1d21;
  border: 1.5px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.vk-login-page .otino_otp_item:focus {
  outline: none;
  border-color: #ffcd11;
  box-shadow: 0 0 0 3px rgba(255, 205, 17, .28);
}

/* --- resend / back links (if present) --- */
body.vk-login-page #otino-form-otp a,
body.vk-login-page .otino-legacy-login-back,
body.vk-login-page .otino-resend-code {
  display: inline-block;
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
body.vk-login-page #otino-form-otp a:hover,
body.vk-login-page .otino-resend-code:hover {
  color: #1a1d21;
}

/* --- WooCommerce / Otino notices inside the card (errors, success) --- */
body.vk-login-page .page-content .woocommerce-error,
body.vk-login-page .page-content .woocommerce-message,
body.vk-login-page .page-content .woocommerce-info,
body.vk-login-page .page-content .otino-message,
body.vk-login-page .page-content ul.woocommerce-error {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  text-align: right;
  border: 1px solid transparent;
}
body.vk-login-page .page-content .woocommerce-error,
body.vk-login-page .page-content ul.woocommerce-error {
  background: #fdecee; color: #b3242f; border-color: #f6c9ce;
}
body.vk-login-page .page-content .woocommerce-message,
body.vk-login-page .page-content .woocommerce-info,
body.vk-login-page .page-content .otino-message {
  background: #eaf7ee; color: #1f7a3d; border-color: #c5e8d0;
}

/* --- mobile --- */
@media (max-width: 480px) {
  body.vk-login-page .site-main { padding: 28px 14px 56px; }
  body.vk-login-page .page-content { padding: 24px 18px 26px; border-radius: 14px; }
  body.vk-login-page .otino_otp_item { width: 48px; height: 56px; font-size: 22px; }
  body.vk-login-page .otino_otp_container { gap: 10px; }
}

/* --- very small phones (≤340px): shrink OTP boxes so they never crowd --- */
@media (max-width: 340px) {
  body.vk-login-page .otino_otp_item { width: 44px; height: 52px; font-size: 20px; }
  body.vk-login-page .otino_otp_container { gap: 8px; }
}

/* --- accessibility: respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  body.vk-login-page #otino_mobile,
  body.vk-login-page .otino_otp_item,
  body.vk-login-page #otino-login-register-form-mobile button,
  body.vk-login-page #otino-form-otp button { transition: none; }
}
