/* ورود و عضویت — زمینه روشن، بدون عکس */
.rb-gate {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 86px);
  color: var(--rb-ink, #1A1C1E);
  background:
    radial-gradient(ellipse 48% 32% at 100% 0%, rgba(196, 162, 101, 0.16), transparent 58%),
    radial-gradient(ellipse 42% 28% at 0% 100%, rgba(225, 29, 46, 0.07), transparent 55%),
    var(--rb-mist, #f4efe8);
}

.rb-gate__orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}

.rb-gate__orb--a {
  width: 220px;
  height: 220px;
  top: 92px;
  left: -70px;
  background: rgba(196, 162, 101, 0.18);
}

.rb-gate__orb--b {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: 40px;
  background: rgba(225, 29, 46, 0.08);
}

.rb-gate__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 118px 16px 56px;
}

.rb-gate__card {
  width: min(100%, 460px);
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(28, 42, 58, 0.06);
  box-shadow: 0 18px 48px rgba(28, 42, 58, 0.08);
}

.rb-gate__card.is-wide {
  width: min(100%, 560px);
}

.rb-gate__head {
  text-align: center;
  margin-bottom: 20px;
}

.rb-gate__head img {
  display: block;
  height: 44px;
  width: auto;
  margin: 0 auto 14px;
}

.rb-gate__head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: var(--rb-ink, #1A1C1E);
}

.rb-gate__head p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.8;
}

.rb-gate__head--account {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rb-gate__avatar {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E11D2E, #B91422);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.rb-gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f4f1ea;
}

.rb-gate__tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 11px;
  color: #6b7280 !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 14.5px;
}

.rb-gate__tabs a.is-on {
  background: #fff;
  color: var(--rb-ink, #1A1C1E) !important;
  box-shadow: 0 6px 16px rgba(28, 42, 58, 0.08);
}

.rb-gate__alert {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #B91422;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.7;
}

.rb-gate__alert--ok {
  background: #eef6f2;
  color: #165A52;
}

.rb-gate__form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rb-gate__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rb-auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rb-gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.rb-gate-field > span:first-child {
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 800;
  padding-right: 2px;
}

.rb-gate-field__box {
  position: relative;
  display: block;
}

.rb-gate-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #e6e2d8;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 0 14px;
  color: #1A1C1E;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rb-gate-field__box:has(.rb-gate-field__eye) input {
  padding-left: 42px;
}

.rb-gate-field input:focus {
  border-color: #C4A265;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.14);
}

.rb-gate-field.is-invalid input {
  border-color: #e7a3a8;
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.08);
}

.rb-gate-field__eye {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa3ad;
  cursor: pointer;
}

.rb-gate-field__eye::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2.8 12s3.6-6.2 9.2-6.2S21.2 12 21.2 12s-3.6 6.2-9.2 6.2S2.8 12 2.8 12Z' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='2.4' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2.8 12s3.6-6.2 9.2-6.2S21.2 12 21.2 12s-3.6 6.2-9.2 6.2S2.8 12 2.8 12Z' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='2.4' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rb-gate-field__eye.is-open::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 5.2 19.6 18.8M9.4 9.7A3.2 3.2 0 0 0 14 14.4M7.2 7.6C4.7 9 3 12 3 12s3.6 6.2 9 6.2c1.4 0 2.7-.3 3.8-.8M16.7 15.7C19 14.3 21 12 21 12s-3.6-6.2-9-6.2c-.7 0-1.4.1-2 .2' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 5.2 19.6 18.8M9.4 9.7A3.2 3.2 0 0 0 14 14.4M7.2 7.6C4.7 9 3 12 3 12s3.6 6.2 9 6.2c1.4 0 2.7-.3 3.8-.8M16.7 15.7C19 14.3 21 12 21 12s-3.6-6.2-9-6.2c-.7 0-1.4.1-2 .2' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rb-gate__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 2px 0;
  color: #5d6670;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
}

.rb-gate__remember input {
  width: 16px;
  height: 16px;
  accent-color: #E11D2E;
}

.rb-gate__go {
  appearance: none;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #E11D2E 0%, #B91422 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(225, 29, 46, 0.22);
  cursor: pointer;
  transition: transform .22s var(--rb-ease, cubic-bezier(.22, 1, .36, 1)), box-shadow .22s ease, filter .22s ease;
}

.rb-gate__go:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(225, 29, 46, 0.28);
}

.rb-gate__hint {
  margin: 16px 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 700;
}

.rb-gate__hint a {
  color: #E11D2E !important;
  text-decoration: none !important;
  font-weight: 800;
}

.rb-gate__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  background: #eef0f2;
  color: #4b5563 !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
}

.rb-gate__back:hover {
  background: #e5e8eb;
  color: #1A1C1E !important;
}

.rb-gate__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rb-gate__facts li {
  padding: 13px 14px;
  border-radius: 14px;
  background: #f7f5f0;
  border: 1px solid #eeeae2;
}

.rb-gate__facts span {
  display: block;
  color: #8a939d;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rb-gate__facts strong {
  color: #1A1C1E;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.rb-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rb-gate__actions .rb-gate__back,
.rb-gate__actions form,
.rb-gate__admin {
  flex: 1 1 140px;
  margin-top: 0;
}

.rb-gate__actions form {
  display: flex;
}

.rb-gate__out,
.rb-gate__admin {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rb-gate__out {
  background: #fff1f1;
  color: #B91422;
}

.rb-gate__admin {
  background: #1C2A3A;
  color: #fff !important;
}

@media (max-width: 719px) {
  .rb-gate__stage {
    padding: 104px 12px 36px;
  }

  .rb-gate__card,
  .rb-gate__card.is-wide {
    width: 100%;
    padding: 22px 16px 18px;
  }

  .rb-gate__pair,
  .rb-gate__facts {
    grid-template-columns: 1fr;
  }
}
