/* ===== css/join.css : the /join sign-up page ===== */
/* Big, simple boxes. Font sizes are 16px or more so phones don't zoom in on focus. */

.join-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 16px 48px;
}

.join-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(160deg, #1e1040, #160d35);
  border: 1px solid #3d2880;
  border-radius: 18px;
  padding: 30px 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* ── Step dots ── */
.join-steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  color: #8b7fb0;
}

.join-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a1a55;
  border: 1px solid #3d2880;
  color: #b9aee0;
  font-weight: 700;
  font-size: .8rem;
}

.join-steps li.on {
  color: #f3e6c0;
}

.join-steps li.on span {
  background: #d6a24a;
  border-color: #d6a24a;
  color: #1a0f33;
}

.join-steps li.done span {
  background: #3a6b4a;
  border-color: #3a6b4a;
  color: #fff;
}

/* ── Headings ── */
.join-title {
  font-family: 'Cinzel', serif;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #d6a24a;
  margin: 0 0 8px;
  text-align: center;
  font-variant: normal;
  text-transform: none;
}

.join-sub {
  font-family: 'Lato', sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #cfc6ee;
  margin: 0 0 22px;
  text-align: center;
}

.join-sub strong {
  color: #f3e6c0;
}

/* ── Messages ── */
.join-msg {
  font-family: 'Lato', sans-serif;
  font-size: .98rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 18px;
}

.join-msg.error {
  background: rgba(200, 60, 60, .16);
  border: 1px solid rgba(230, 100, 100, .55);
  color: #ffb3b3;
}

.join-msg.ok {
  background: rgba(70, 170, 110, .16);
  border: 1px solid rgba(100, 200, 140, .55);
  color: #b5efcd;
}

/* ── Form ── */
.join-form {
  margin: 0;
}

.join-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f3e6c0;
  margin: 0 0 8px;
}

.join-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 60px;
  padding: 0 16px;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  background: #12091f;
  border: 2px solid #3d2880;
  border-radius: 12px;
  outline: none;
}

.join-input::placeholder {
  color: #6f6494;
}

.join-input:focus {
  border-color: #d6a24a;
  box-shadow: 0 0 0 3px rgba(214, 162, 74, .2);
}

.join-code {
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: .5em;
  padding-left: .5em;
}

.join-help {
  font-family: 'Lato', sans-serif;
  font-size: .92rem;
  line-height: 1.45;
  color: #a99ed0;
  margin: 8px 0 22px;
}

.join-note {
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  line-height: 1.45;
  color: #e9d9a8;
  background: rgba(214, 162, 74, .1);
  border: 1px solid rgba(214, 162, 74, .4);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 18px;
}

.join-turnstile {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
  min-height: 65px;
}

/* ── Buttons (the site's a:hover turns link text gold, so colours are fixed for every state) ── */
.join-btn,
.join-btn:hover,
.join-btn:focus,
.join-btn:visited {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 60px;
  line-height: 60px;
  padding: 0 18px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1a0f33;
  background: linear-gradient(180deg, #f3cf75, #d6a24a);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 0 12px;
}

.join-btn:hover {
  filter: brightness(1.06);
}

.join-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.join-btn.join-btn-ghost,
.join-btn.join-btn-ghost:hover,
.join-btn.join-btn-ghost:focus,
.join-btn.join-btn-ghost:visited {
  color: #f3e6c0;
  background: transparent;
  border: 2px solid #5a45a0;
}

.join-btn.join-btn-ghost:hover {
  border-color: #d6a24a;
  filter: none;
}

.join-btn.join-btn-small {
  height: 48px;
  line-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  width: auto;
  flex: 1;
  margin: 0;
}

.join-row {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.join-row-center {
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 6px 0 8px;
}

/* ── Small text links ── */
.join-linkform {
  margin: 0;
  text-align: center;
}

.join-link,
.join-link:hover {
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: .98rem;
  color: #d6a24a;
  text-decoration: underline;
}

.join-small {
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  line-height: 1.5;
  color: #a99ed0;
  text-align: center;
  margin: 10px 0 0;
}

.join-small a {
  color: #d6a24a;
}

.join-trust {
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: #7c70a3;
  text-align: center;
  margin: 22px 0 0;
}

@media (max-width: 480px) {
  .join-card {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .join-title {
    font-size: 1.35rem;
  }

  .join-steps {
    font-size: .78rem;
  }

  .join-steps li {
    gap: 5px;
  }
}

/* ───────────────────────────────────────────────────────────
   LOGIN PAGE extras (login/index.html uses the same card)
   ─────────────────────────────────────────────────────────── */
.join-pwrow {
  position: relative;
}

.join-pwrow .join-input {
  padding-right: 86px;
}

.join-pwtoggle,
.join-pwtoggle:hover {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 44px;
  padding: 0 14px;
  background: #2a1a55;
  border: 1px solid #3d2880;
  border-radius: 9px;
  color: #f3e6c0;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}

.join-forgot,
.join-forgot:visited {
  display: block;
  text-align: right;
  margin: 10px 0 20px;
  font-family: 'Lato', sans-serif;
  font-size: .98rem;
  color: #d6a24a;
}

.join-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c70a3;
}

.join-divider::before,
.join-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3d2880;
}

.join-newbox {
  text-align: center;
  background: rgba(214, 162, 74, .08);
  border: 2px solid rgba(214, 162, 74, .55);
  border-radius: 14px;
  padding: 20px 18px 8px;
}

.join-newbox h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #d6a24a;
  margin: 0 0 6px;
  font-variant: normal;
  text-transform: none;
}

.join-newbox p {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #e4daf7;
  margin: 0 0 16px;
}

.join-msg form {
  display: inline;
}

.join-msg .join-link {
  padding: 0 0 0 6px;
  color: #ffd0d0;
  font-weight: 700;
}

.join-msg[hidden] {
  display: none;
}