/**
 * ورود پنل نمایندگان — Pinar + teal، دو ستونه
 */
:root {
  --rl-pinar: #e66f13;
  --rl-pinar-d: #c55e0e;
  --rl-pinar-l: #fde8d4;
  --rl-teal: #146b76;
  --rl-teal-d: #0d3d47;
  --rl-teal-l: #0d9488;
  --rl-gold: #d4af37;
}

.rl-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "primary-font", Tahoma, sans-serif;
  direction: rtl;
  color: #e8eef7;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  background: #0a1628 url("../../assets/images/inform/bg10.jpg") center center / cover no-repeat fixed;
}

.rl-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(13, 61, 71, 0.78) 38%,
    rgba(18, 40, 62, 0.88) 72%,
    rgba(8, 16, 28, 0.94) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.rl-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  animation: rlOrbFloat 14s ease-in-out infinite;
}

.rl-orb--1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(230, 111, 19, 0.55), transparent 70%);
  top: 8%;
  right: 12%;
  animation-delay: 0s;
}

.rl-orb--2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(20, 107, 118, 0.5), transparent 70%);
  bottom: 15%;
  left: 8%;
  animation-delay: -5s;
}

.rl-orb--3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
  top: 45%;
  left: 35%;
  animation-delay: -9s;
}

@keyframes rlOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.05); }
  66% { transform: translate(-10px, 14px) scale(0.96); }
}

.rl-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 420px);
  max-width: 1060px;
  width: 100%;
  margin: auto;
  min-height: 100vh;
  min-height: 100dvh;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  animation: rlFade 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rlFade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rl-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem 2.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    165deg,
    rgba(230, 111, 19, 0.14) 0%,
    rgba(20, 107, 118, 0.1) 45%,
    transparent 72%
  );
}

.rl-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rl-brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.rl-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(230, 111, 19, 0.22);
  border: 1px solid rgba(230, 111, 19, 0.35);
  color: #fde8d4;
  font-size: 0.72rem;
  font-weight: 700;
}

.rl-brand-badge .bx {
  color: var(--rl-gold);
  font-size: 0.95rem;
}

.rl-aside h1 {
  margin: 0 0 0.7rem;
  font-size: 1.62rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.rl-tagline {
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(248, 250, 252, 0.86);
}

.rl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
}

.rl-chip .bx {
  color: var(--rl-pinar);
  font-size: 1rem;
}

.rl-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.rl-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.96);
}

.rl-features li .bx {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(20, 107, 118, 0.35);
  color: #5eead4;
  font-size: 1rem;
  margin-top: 0.05rem;
}

.rl-aside-note {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  line-height: 1.75;
  color: rgba(204, 251, 241, 0.78);
}

.rl-aside-note .bx {
  color: var(--rl-gold);
  vertical-align: middle;
  margin-left: 0.3rem;
}

.rl-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rl-card {
  width: 100%;
  max-width: 390px;
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  color: #1e293b;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.rl-card__head {
  padding: 1.35rem 1.5rem 1.1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--rl-teal-d) 0%, var(--rl-teal) 55%, var(--rl-teal-l) 100%);
  color: #fff;
  position: relative;
}

.rl-card__head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--rl-pinar), var(--rl-gold), transparent);
}

.rl-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}

.rl-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rl-card__sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
  font-weight: 500;
}

.rl-card__body {
  padding: 1.5rem 1.55rem 1.65rem;
}

.rl-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rl-field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.38rem;
}

.rl-field label .bx {
  color: var(--rl-teal);
  font-size: 0.95rem;
}

.rl-input-wrap {
  position: relative;
}

.rl-input-wrap .rl-input-icon {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.15s;
}

.rl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 2.6rem 0.78rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 46px;
}

.rl-input--center {
  text-align: center;
  padding-left: 2.6rem;
  padding-right: 2.6rem;
}

.rl-input:focus {
  outline: none;
  border-color: var(--rl-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 107, 118, 0.14);
}

.rl-input:focus + .rl-input-icon,
.rl-input-wrap:focus-within .rl-input-icon {
  color: var(--rl-teal);
}

.rl-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.rl-pw-toggle {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.25rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.15s;
}

.rl-pw-toggle:hover {
  color: var(--rl-teal);
}

.rl-captcha__box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.rl-captcha__q {
  flex: 1;
  text-align: center;
  padding: 0.58rem 0.85rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff8f2, #f0fdfa);
  border: 1.5px dashed var(--rl-pinar);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--rl-teal-d);
  unicode-bidi: plaintext;
  letter-spacing: 0.02em;
}

.rl-captcha__refresh {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rl-pinar), var(--rl-pinar-d));
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(230, 111, 19, 0.35);
  transition: transform 0.25s ease, box-shadow 0.2s;
}

.rl-captcha__refresh:hover {
  transform: rotate(180deg);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 111, 19, 0.45);
}

.rl-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 13px;
  background: linear-gradient(90deg, var(--rl-teal-d) 0%, var(--rl-teal) 45%, var(--rl-teal-l) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 28px rgba(20, 107, 118, 0.38);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  position: relative;
  overflow: hidden;
}

.rl-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.rl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 107, 118, 0.45);
}

.rl-btn:hover::before {
  transform: translateX(120%);
}

.rl-alerts {
  margin-top: 0.75rem;
}

.rl-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.65;
}

.rl-alert .bx {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rl-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rl-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.rl-alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.rl-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
  text-align: center;
}

.rl-loader {
  text-align: center;
  margin: 0.85rem 0 0;
}

.rl-loader img {
  width: 42px;
}

.rl-copy {
  position: fixed;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.rl-login [class*="bx"] {
  font-family: "boxicons" !important;
}

@media (max-width: 900px) {
  .rl-login {
    background-attachment: scroll;
    align-items: stretch;
  }
  .rl-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    box-shadow: none;
    max-width: none;
  }
  .rl-aside {
    padding: calc(1.15rem + env(safe-area-inset-top, 0px)) 1.25rem 1rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .rl-aside h1,
  .rl-tagline,
  .rl-chips,
  .rl-features,
  .rl-aside-note {
    display: none;
  }
  .rl-brand-wrap {
    margin-bottom: 0;
    justify-content: center;
  }
  .rl-brand-logo {
    width: 56px;
    height: 56px;
  }
  .rl-main {
    padding: 1.15rem 1rem calc(3.25rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .rl-card {
    width: 100%;
    max-width: 420px;
  }
  .rl-input,
  .rl-input--center {
    font-size: 16px;
    min-height: 48px;
  }
  .rl-btn {
    min-height: 48px;
  }
}

@media (display-mode: standalone) {
  .rl-login {
    min-height: 100dvh;
  }
  .rl-copy {
    display: none;
  }
}

@media (max-width: 400px) {
  .rl-card__body {
    padding: 1.25rem 1.15rem 1.4rem;
  }
}
