/**
 * ورود انبار — دو ستونه با توضیحات (متفاوت از provider)
 */
.wh-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "primary-font", Tahoma, sans-serif;
  direction: rtl;
  color: #e8f4f2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  background: #142824 url("../../assets/images/inform/depot_image2.jpg") center center / cover no-repeat fixed;
}

.wh-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10, 28, 26, 0.88) 0%,
    rgba(15, 45, 40, 0.72) 42%,
    rgba(8, 20, 24, 0.82) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.wh-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 400px);
  max-width: 980px;
  width: 100%;
  margin: auto;
  min-height: 100vh;
  min-height: 100dvh;
  animation: whFade 0.5s ease-out;
}

@keyframes whFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ── ستون توضیحات ── */
.wh-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
}

.wh-brand-logo {
  max-width: 120px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.wh-aside h1 {
  margin: 0 0 0.65rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f0fdfa;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.wh-tagline {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(240, 253, 250, 0.82);
  font-weight: 500;
}

.wh-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.wh-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.95);
}

.wh-features li .bx {
  color: #5eead4;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.wh-aside-note {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(204, 251, 241, 0.75);
}

.wh-aside-note .bx {
  color: #99f6e4;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* ── ستون فرم ── */
.wh-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wh-card {
  width: 100%;
  max-width: 360px;
  padding: 1.65rem 1.5rem 1.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.wh-card__title {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  color: #134e4a;
}

.wh-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wh-field label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.32rem;
}

.wh-field--center label {
  justify-content: center;
}

.wh-input--center {
  text-align: center;
}

.wh-field label .bx {
  color: #0d9488;
  font-size: 0.9rem;
}

.wh-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 40px;
}

.wh-input:focus {
  outline: none;
  border-color: #14b8a6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.wh-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.wh-captcha__box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.wh-captcha__q {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 11px;
  background: #f0fdfa;
  border: 1px dashed #5eead4;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f766e;
  unicode-bidi: plaintext;
}

.wh-captcha__refresh {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.2s;
}

.wh-captcha__refresh:hover {
  transform: rotate(90deg);
  color: #fff;
}

.wh-input--captcha {
  text-align: center;
  font-weight: 700;
}

.wh-btn {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 11px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.32);
  transition: transform 0.12s, box-shadow 0.12s;
}

.wh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.4);
}

.wh-alerts {
  margin-top: 0.65rem;
}

.wh-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

.wh-alert .bx {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.wh-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.wh-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.wh-alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.wh-loader {
  text-align: center;
  margin: 0.85rem 0 0;
}

.wh-loader img {
  width: 40px;
}

.wh-copy {
  position: fixed;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.wh-login [class*="bx"] {
  font-family: "boxicons" !important;
}

@media (max-width: 860px) {
  .wh-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .wh-aside {
    padding: 1.75rem 1.35rem 1rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .wh-brand-logo {
    max-width: 90px;
  }
  .wh-aside h1 {
    font-size: 1.2rem;
  }
  .wh-main {
    padding: 1.25rem 1rem 2.5rem;
  }
}

@media (max-width: 400px) {
  .wh-card {
    padding: 1.35rem 1.15rem 1.5rem;
  }
}
