/* ============================
   FORM WRAPPER (glow box)
   ============================ */

#loginContainer {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* The card, the fields and their icons are index.css's - this page loads that
   sheet so the signup card IS the login card. Only what signup adds lives
   below: the card heading, the age select, the disclaimer and the captcha. */

/* mirrors #loginForm h2 */
.register-form h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--text-inverse);
  font-weight: 600;
}

/* the age picker is the one field the login form has no equivalent for, so it
   borrows .input-box input's shape rather than rendering as a system select */
.register-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--text-inverse);
  font-size: 1rem;
  box-sizing: border-box;
}

.register-form select option {
  background: var(--neutral-900, #141414);
  color: var(--text-inverse);
}

.readonly-input {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ============================
   RADIO GROUP
   ============================ */

.radio-group {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #e6e6e6;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.radio-group input[type="radio"] {
  accent-color: var(--text-inverse);
}

/* Disclaimer container */
.disclaimer-container {
  margin-top: 1.5rem;
  text-align: left;
}

/* Toggle button */
.disclaimer-toggle {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.disclaimer-toggle:hover {
  opacity: 1;
}

/* Hidden content */
.disclaimer-content {
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255,255,255,0.12);
  color: #d0d4da;
  font-size: 0.85rem;
  line-height: 1.45;
  display: none;
}

.disclaimer-container {
  margin-top: 1.5rem;
  margin-bottom: 1rem; /* add this */
  text-align: left;
}

.captcha-box {
  display: inline-block;
  padding: 0.35rem 0.45rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.8rem;

  /* This is the key: shrink-wrap the box */
  width: auto;
  max-width: fit-content;
}

.captcha-box img {
  display: block;
  border-radius: 6px;
  filter: brightness(0.85) contrast(1.1);
}

/* Make the CAPTCHA answer box compact */
#captcha {
  width: 6rem;              /* ← small, intentional */
  text-align: center;       /* ← fits the math vibe */
  margin: 0 auto 1.2rem;    /* ← centers it */
  display: block;           /* ← required for centering */
}

.btn:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* space between image and input */
}

.captcha-row img {
  display: block;
}