.nvk-login-wrap {
  direction: rtl;
  width: 100%;
  max-width: 430px;
  margin: 22px auto;
  font-family: inherit;
  box-sizing: border-box;
}

.nvk-login-wrap *,
.nvk-login-wrap *::before,
.nvk-login-wrap *::after {
  box-sizing: border-box;
}

.nvk-login-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 28px 24px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 55px rgba(15, 40, 75, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nvk-login-card::before {
  content: "";
  position: absolute;
  inset: -90px auto auto -90px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(0, 79, 132, 0.08);
  pointer-events: none;
}

.nvk-login-card::after {
  content: "";
  position: absolute;
  inset: auto -110px -110px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(0, 125, 191, 0.07);
  pointer-events: none;
}

.nvk-login-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nvk-login-form[hidden] {
  display: none !important;
}

.nvk-login-title {
  margin: 0;
  color: #082a44;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 900;
  text-align: center;
}

.nvk-login-subtitle {
  margin: 0 0 8px;
  color: #52697c;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;

  font-weight: 800;}

.nvk-field-label {
  display: block;
  color: #193b56;
  font-size: 13px;
  font-weight: 800;
  margin: 0 2px -4px;
}

.nvk-field-wrap {
  position: relative;
}

.nvk-field-wrap input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(15, 63, 100, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #082a44;
  outline: none;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nvk-field-wrap input:focus {
  border-color: rgba(0, 78, 130, 0.55);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 78, 130, 0.08);
}

.nvk-phone-input {
  direction: ltr;
  letter-spacing: 0.4px;
}


.nvk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #07385e, #0b5a89);
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 13px 25px rgba(0, 59, 102, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.nvk-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 59, 102, 0.26);
}

.nvk-button:disabled,
.nvk-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.nvk-code-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.nvk-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0b4e78;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 4px;
  cursor: pointer;
  text-decoration: none;
}

.nvk-message {
  display: none;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.8;
  text-align: center;
}

.nvk-message.is-visible {
  display: block;
}

.nvk-message.is-error {
  color: #8a1f1f;
  background: rgba(255, 232, 232, 0.92);
  border: 1px solid rgba(189, 54, 54, 0.18);
}

.nvk-message.is-success {
  color: #07502b;
  background: rgba(229, 250, 239, 0.92);
  border: 1px solid rgba(32, 149, 88, 0.16);
}

.nvk-phone-display {
  direction: ltr;
  unicode-bidi: plaintext;
  font-weight: 900;
  color: #082a44;
}

.nvk-login-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nvk-login-wrap.is-loading .nvk-login-loader {
  display: flex;
}

.nvk-login-loader > div {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a3657;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(12, 41, 70, 0.13);
}

.nvk-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 78, 130, 0.18);
  border-top-color: #0b4e78;
  animation: nvk-login-spin 0.8s linear infinite;
}

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

.nvk-login-done {
  color: #082a44;
  text-align: center;
}

@media (max-width: 480px) {
  .nvk-login-wrap {
    max-width: 100%;
    margin: 14px auto;
    padding: 0 10px;
  }

  .nvk-login-card {
    border-radius: 22px;
    padding: 24px 18px 20px;
  }

  .nvk-login-title {
    font-size: 20px;
  }
}




/* NVK Login 0.1.6: Single simple OTP input. */
.nvk-code-input {
  direction: ltr;
  letter-spacing: 4px;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.nvk-code-input::placeholder {
  letter-spacing: 0;
  color: rgba(82, 105, 124, 0.38);
  font-weight: 500;
}

/* NVK Login 0.1.5: lighter phone placeholder and strict 11-digit mobile field. */
.nvk-phone-input::placeholder {
  color: rgba(82, 105, 124, 0.38);
  font-weight: 500;
  letter-spacing: 0;
}

.nvk-phone-input::-webkit-input-placeholder {
  color: rgba(82, 105, 124, 0.38);
  font-weight: 500;
}

.nvk-phone-input::-moz-placeholder {
  color: rgba(82, 105, 124, 0.38);
  font-weight: 500;
  opacity: 1;
}

/* NVK Login 0.1.8: clearer validation messages, home link, and responsive polish. */
.nvk-login-footer {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 63, 100, 0.08);
  text-align: center;
}

.nvk-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 42, 68, 0.06);
  color: #0a4d78 !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.8;
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.18s ease;
}

.nvk-home-link::before {
  content: "⌂";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: rgba(10, 77, 120, 0.10);
  font-size: 13px;
  line-height: 1;
}

.nvk-home-link:hover {
  background: rgba(8, 42, 68, 0.10);
  transform: translateY(-1px);
}

.nvk-message.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.nvk-message::before {
  content: "";
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.nvk-message.is-error::before {
  content: "!";
  display: inline-flex;
  color: #fff;
  background: #d43c3c;
  box-shadow: 0 7px 14px rgba(212, 60, 60, 0.20);
}

.nvk-message.is-success::before {
  content: "✓";
  display: inline-flex;
  color: #fff;
  background: #15955a;
  box-shadow: 0 7px 14px rgba(21, 149, 90, 0.18);
}

.nvk-field-wrap.has-error input {
  border-color: rgba(212, 60, 60, 0.55);
  background: rgba(255, 248, 248, 0.96);
  box-shadow: 0 0 0 4px rgba(212, 60, 60, 0.08);
}

.nvk-phone-input::placeholder,
.nvk-code-input::placeholder {
  color: rgba(82, 105, 124, 0.38);
  font-weight: 600;
}

@media (max-width: 480px) {
  .nvk-login-wrap {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .nvk-field-wrap input,
  .nvk-button {
    min-height: 48px;
    border-radius: 15px;
  }

  .nvk-message {
    font-size: 12.5px;
    line-height: 1.9;
    padding: 10px 11px;
    text-align: right;
  }

  .nvk-code-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nvk-link-button,
  .nvk-home-link {
    width: 100%;
  }
}


.nvk-login-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  text-decoration: none !important;
}

.nvk-login-logo img {
  display: block;
  max-width: 178px;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0 !important;
}

.nvk-login-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.86) 50%, rgba(255,255,255,0) 65%, transparent 100%);
  transform: translateX(-135%) skewX(-18deg);
  animation: nvk-logo-shimmer 5.2s ease-in-out infinite;
  mix-blend-mode: screen;
  -webkit-mask: var(--nvk-logo-mask) center / contain no-repeat;
  mask: var(--nvk-logo-mask) center / contain no-repeat;
}

@keyframes nvk-logo-shimmer {
  0%, 36% {
    transform: translateX(-135%) skewX(-18deg);
    opacity: 0;
  }

  52% {
    opacity: 1;
  }

  84%, 100% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nvk-login-logo::after {
    animation: none;
    display: none;
  }
}

.nvk-vpn-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(220, 143, 38, 0.25);
  border-radius: 16px;
  background: rgba(255, 247, 232, 0.92);
  color: #7a4a00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
}

.nvk-vpn-warning::before {
  content: "!";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e49a26;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 480px) {
  .nvk-login-logo img {
    max-width: 160px;
    max-height: 78px;
  }

  .nvk-vpn-warning {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    font-size: 12.5px;
  }
}


/* NVK Login 0.1.12: isolate Persian font/spacing from theme styles. */
.nvk-login-wrap {
  --nvk-login-font: "IRANSansMobile", var(--wd-text-font, var(--wd-title-font, "IRANSans", "IRANYekan", "Yekan Bakh", "Vazirmatn", Tahoma, Arial, sans-serif));
  font-family: var(--nvk-login-font) !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
}

.nvk-login-wrap :where(h1, h2, h3, p, label, span, div, button, a, input, textarea, select) {
  font-family: var(--nvk-login-font) !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-variant: normal !important;
}

.nvk-login-title,
.nvk-login-subtitle,
.nvk-field-label,
.nvk-button,
.nvk-link-button,
.nvk-home-link,
.nvk-message,
.nvk-vpn-warning {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
}

.nvk-phone-input,
.nvk-code-input,
.nvk-phone-display {
  font-family: var(--nvk-login-font) !important;
  letter-spacing: 0 !important;
}

/* NVK Login 1.16: placeholder font isolation and mobile vertical position fix. */
.nvk-phone-input::placeholder,
.nvk-code-input::placeholder,
.nvk-phone-input::-webkit-input-placeholder,
.nvk-code-input::-webkit-input-placeholder,
.nvk-phone-input::-moz-placeholder,
.nvk-code-input::-moz-placeholder {
  font-family: var(--nvk-login-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  color: rgba(82, 105, 124, 0.42) !important;
  opacity: 1 !important;
}

.nvk-phone-input::-webkit-input-placeholder,
.nvk-code-input::-webkit-input-placeholder {
  line-height: normal !important;
}

@media (max-width: 782px) {
  .nvk-login-wrap {
    margin-top: 4px !important;
    margin-bottom: 24px !important;
  }
}

@media (max-width: 480px) {
  .nvk-login-wrap {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
  }

  .nvk-login-card {
    padding-top: 20px !important;
  }
}


/* NVK Login 1.18: page-wide optional background and tighter mobile vertical layout. */
.nvk-login-page-bg {
  width: 100%;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 12px;
  background: transparent;
}

.nvk-login-page-bg-custom {
  min-height: 100vh;
}

.nvk-login-page-bg > .nvk-login-wrap {
  margin: 0 auto;
}

@media (max-width: 782px) {
  .nvk-login-page-bg {
    padding-top: 6px;
    padding-bottom: 10px;
  }

  .nvk-login-page-bg-custom {
    min-height: 100vh;
  }

  .nvk-login-page-bg > .nvk-login-wrap {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .nvk-login-page-bg {
    padding-top: 2px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 6px;
  }

  .nvk-login-card {
    padding: 16px 18px 14px !important;
  }

  .nvk-login-logo {
    margin-bottom: 7px;
  }

  .nvk-login-logo img {
    max-width: 162px;
    max-height: 74px;
  }

  .nvk-login-form {
    gap: 9px;
  }

  .nvk-login-title {
    font-size: 19px;
    line-height: 1.45;
  }

  .nvk-login-subtitle {
    margin-bottom: 1px;
    font-size: 12.8px;
    line-height: 1.65;
  }

  .nvk-field-wrap input,
  .nvk-button {
    min-height: 46px;
  }

  .nvk-login-footer {
    margin-top: 9px;
    padding-top: 8px;
  }

  .nvk-home-link {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}


/* NVK Login 1.22: wider login card and smaller side gaps after mobile positioning changes. */
.nvk-login-wrap {
  max-width: 480px;
}

.nvk-login-card {
  padding-left: 30px;
  padding-right: 30px;
}

.nvk-login-page-bg {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 782px) {
  .nvk-login-wrap {
    max-width: min(96vw, 470px);
  }

  .nvk-login-page-bg {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 480px) {
  .nvk-login-wrap {
    max-width: 100%;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .nvk-login-page-bg {
    padding-left: 4px;
    padding-right: 4px;
  }

  .nvk-login-card {
    padding-left: 17px !important;
    padding-right: 17px !important;
  }
}


/* NVK Login 1.23: stronger width override and logo mask shimmer. */
.nvk-login-page-bg > .nvk-login-wrap,
.nvk-login-wrap {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
}

.nvk-login-card {
  width: 100% !important;
  max-width: none !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

.nvk-login-logo::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.nvk-login-logo img {
  color: grey;
  -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 50%) right / 300% 100%;
  mask: linear-gradient(-60deg, #000 30%, #0005, #000 50%) right / 300% 100%;
  background-repeat: no-repeat;
  animation: nvk-logo-mask-shimmer 3s infinite !important;
}

@keyframes nvk-logo-mask-shimmer {
  0% {
    -webkit-mask-position: right;
    mask-position: right;
  }
  100% {
    -webkit-mask-position: left;
    mask-position: left;
  }
}

@media (max-width: 782px) {
  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap {
    width: calc(100vw - 12px) !important;
    max-width: 540px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nvk-login-card {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 480px) {
  .nvk-login-page-bg {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap {
    width: calc(100vw - 6px) !important;
    max-width: calc(100vw - 6px) !important;
  }

  .nvk-login-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nvk-login-logo img {
    animation: none !important;
    -webkit-mask: none !important;
    mask: none !important;
  }
}


/* NVK Login 1.24: keep wider form while restoring breathing room for the card shadow. */
@media (max-width: 782px) {
  .nvk-login-page-bg {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap {
    width: 100% !important;
    max-width: min(540px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 480px) {
  .nvk-login-page-bg {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap {
    width: 100% !important;
    max-width: calc(100vw - 28px) !important;
  }

  .nvk-login-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}


/* NVK Login 1.26: keep phone and OTP steps at the exact same approved card width. */
.nvk-login-page-bg {
  --nvk-login-stable-width: 560px;
}

.nvk-login-page-bg > .nvk-login-wrap,
.nvk-login-wrap[data-nvk-login] {
  flex: 0 0 min(var(--nvk-login-stable-width), calc(100vw - 28px)) !important;
  width: min(var(--nvk-login-stable-width), calc(100vw - 28px)) !important;
  min-width: min(var(--nvk-login-stable-width), calc(100vw - 28px)) !important;
  max-width: min(var(--nvk-login-stable-width), calc(100vw - 28px)) !important;
  box-sizing: border-box !important;
}

.nvk-login-card,
.nvk-login-form,
.nvk-phone-form,
.nvk-code-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.nvk-phone-form,
.nvk-code-form {
  align-self: stretch !important;
}

@media (max-width: 782px) {
  .nvk-login-page-bg {
    --nvk-login-stable-width: 540px;
  }

  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap[data-nvk-login] {
    flex-basis: min(var(--nvk-login-stable-width), calc(100vw - 32px)) !important;
    width: min(var(--nvk-login-stable-width), calc(100vw - 32px)) !important;
    min-width: min(var(--nvk-login-stable-width), calc(100vw - 32px)) !important;
    max-width: min(var(--nvk-login-stable-width), calc(100vw - 32px)) !important;
  }
}

@media (max-width: 480px) {
  .nvk-login-page-bg > .nvk-login-wrap,
  .nvk-login-wrap[data-nvk-login] {
    flex-basis: calc(100vw - 28px) !important;
    width: calc(100vw - 28px) !important;
    min-width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
}

/* NVK Login 1.29: make phone input placeholder lighter. */
.nvk-phone-input::placeholder,
.nvk-phone-input::-webkit-input-placeholder,
.nvk-phone-input::-moz-placeholder {
  color: rgba(82, 105, 124, 0.28) !important;
  opacity: 1 !important;
}
