/* ============================
   FORM WRAPPER (glow box)
   ============================ */

#loginContainer {
  margin-top: 1.5rem;
}

.wrapper {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 2rem;
  box-shadow:
    0 0 20px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}


/* ============================
   INPUT FIELDS
   ============================ */

.input-box {
  text-align: left;
  margin-bottom: 1.2rem;
}

.input-box label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #e6e6e6;
}

.input-box input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-2, rgba(255,255,255,0.15));
  background: var(--surface-1, #111);
  color: #fff;
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.input-box input:focus {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface-2, #1a1a1a);
  outline: none;
}

.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: #fff;
}

/* ============================
   INPUT BOX SPACING FIX
   ============================ */

/* This is the fix that solved the “right edge touching” issue */
.register-form .input-box {
  padding-left: 0rem !important;
  padding-right: 1.75rem !important;
}
/* Disclaimer container */
.disclaimer-container {
  margin-top: 1.5rem;
  text-align: left;
}

/* Toggle button */
.disclaimer-toggle {
  background: none;
  border: none;
  color: #c3ccd8;
  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 {
  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;
}