/* HamtaYar login — nodws-style canvas + white card (right column) */
html, body {
  margin: 0;
  min-height: 100%;
}

body.hy-login-body {
  font-family: "IRANSans", "IRANSansX", Tahoma, sans-serif !important;
  color: #e8eef8;
  background: #020b18;
  height: auto;
  overflow: auto;
  overflow-x: hidden;
}

.hy-login-wrap {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hy-login-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  background: radial-gradient(ellipse at 30% 20%, #0b3d6e 0%, #041628 45%, #01060f 100%);
}

html.pk-shop .hy-login-canvas,
html.pk-shop body.hy-login-body {
  background: radial-gradient(ellipse at 28% 18%, #ffb9ca 0%, #c45c78 42%, #3a1c28 100%);
}

html.pk-shop body.hy-login-body {
  color: #fff6f4;
}

html.pk-blanton .hy-login-canvas,
html.pk-blanton body.hy-login-body {
  background: radial-gradient(ellipse at 28% 18%, #7ee8cc 0%, #00a984 42%, #04281f 100%);
}

html.pk-blanton .hy-login-card-logo img {
  width: min(260px, 88%);
  height: auto;
}

.hy-login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hy-login-grid--solo {
  grid-template-columns: 1fr;
  max-width: none;
}

/* RTL: first column = right side */
.hy-login-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.hy-login-col-form {
  min-height: 100vh;
}

.hy-login-card-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.hy-login-card-logo img {
  width: clamp(140px, 42%, 190px);
  height: auto;
  display: block;
  object-fit: contain;
}

html.pk-shop .hy-login-card-logo img {
  width: min(240px, 82%);
}

.hy-login-card {
  width: 100%;
  max-width: 360px;
  padding: 28px 26px 22px;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: hy-login-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hy-login-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hy-login-brand {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b3d6e;
}

.hy-login-sub {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

.hy-login-card .pk-field {
  margin-bottom: 12px;
}

.hy-login-card .pk-field label,
.hy-login-card .pk-label,
.hy-login-card label {
  color: #334155 !important;
  font-weight: 700;
  font-size: 0.86rem;
}

.hy-login-card input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  padding: 11px 12px !important;
  font-family: inherit !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hy-login-card input::placeholder {
  color: #94a3b8;
}

.hy-login-card input:focus {
  border-color: var(--pk-primary, #0ea5e9) !important;
  box-shadow: 0 0 0 3px var(--pk-primary-100, rgba(14, 165, 233, 0.2));
  background: #fff !important;
}

.hy-login-card .pk-btn {
  border-radius: 10px !important;
  min-height: 44px;
  font-weight: 800 !important;
  font-family: inherit !important;
}

.hy-login-card button.pk-btn-primary,
.hy-login-card .pk-btn.pk-btn-primary {
  background: linear-gradient(135deg, var(--pk-primary, #0ea5e9) 0%, var(--pk-primary-600, #0369a1) 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pk-primary, #0369a1) 32%, transparent) !important;
}

.hy-login-card button.pk-btn-primary:hover:not(:disabled),
.hy-login-card .pk-btn.pk-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.hy-login-card button.pk-btn-ghost,
.hy-login-card .pk-btn.pk-btn-ghost {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  margin-bottom: 8px;
  width: 100%;
}

.hy-login-msg {
  margin-top: 12px;
  min-height: 1.25em;
  font-size: 0.86rem;
  color: #b45309;
}

.hy-login-msg.ok {
  color: #15803d;
}

.hy-login-msg.err {
  color: #b91c1c;
}

.hy-login-hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
}

.hy-login-otp-timer {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0369a1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.hy-login-otp-timer.is-expired {
  color: #b45309;
  direction: rtl;
}

.hy-login-resend {
  margin-top: 10px !important;
  width: 100%;
}

.hy-login-resend:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hy-login-card-tools {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hy-login-card-tools .hy-login-lang {
  flex: 0 0 auto;
}

.hy-login-card-tools .pk-lang-select {
  color: #0f172a !important;
  background: #fff !important;
  min-width: 8.5rem;
  max-width: 11rem;
  cursor: pointer;
}

.hy-login-alt button,
.hy-login-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.84rem;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
}

.hy-login-alt button:hover,
.hy-login-link:hover {
  color: #64748b;
  text-decoration: none;
}

.hy-login-link-end {
  margin-inline-end: auto;
}

.hy-login-link-start {
  margin-inline-start: auto;
}

.hy-login-muted {
  color: #64748b;
  font-size: 0.86rem;
  margin: 8px 0 12px;
}

.hy-login-emerg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .hy-login-col-form {
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-login-card {
    animation: none !important;
  }
}
