/* Scoped design layer. Does not create accounts, hide native fields, or change authorization. */
.ap-register {
  --ap-reg-bg: #090a0b;
  --ap-reg-panel: #151618;
  --ap-reg-input: #0d0e10;
  --ap-reg-line: #393b41;
  --ap-reg-text: #f7f7f8;
  --ap-reg-muted: #c7c8cd;
  --ap-reg-yellow: #f6d341;
  --ap-reg-pink: #cb0044;
  color: var(--ap-reg-text);
  font-family: inherit;
  line-height: 1.6;
  text-align: left;
}
.ap-register *, .ap-register *::before, .ap-register *::after { box-sizing: border-box; }
.ap-register .ap-reg-shell {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: 32px auto;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid #292b30;
  border-radius: 24px;
  background: radial-gradient(ellipse at 0 0, rgba(203,0,68,.10), transparent 52%), var(--ap-reg-bg);
}
.ap-register .ap-reg-intro, .ap-register .ap-reg-card, .ap-register .ap-reg-form { min-width: 0; }
.ap-register .ap-reg-eyebrow {
  margin: 0 0 16px;
  color: var(--ap-reg-yellow);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
}
.ap-register .ap-reg-title {
  max-width: 11ch;
  margin: 0 0 22px;
  color: var(--ap-reg-text);
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: normal;
}
.ap-register .ap-reg-lead {
  margin: 0 0 24px;
  color: var(--ap-reg-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.ap-register .ap-reg-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.ap-register .ap-reg-highlights li {
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--ap-reg-line);
  border-radius: 999px;
  color: #ededf0;
  font-size: .8rem;
  line-height: 1.5;
}
.ap-register .ap-reg-steps { margin: 0; padding: 0; list-style: none; counter-reset: ap-reg-step; }
.ap-register .ap-reg-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  counter-increment: ap-reg-step;
}
.ap-register .ap-reg-steps li::before {
  content: counter(ap-reg-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #615326;
  border-radius: 50%;
  background: #211e13;
  color: var(--ap-reg-yellow);
  font-size: .85rem;
  font-weight: 800;
}
.ap-register .ap-reg-steps strong { display: block; margin-bottom: 3px; color: var(--ap-reg-text); font-size: .95rem; }
.ap-register .ap-reg-steps p { margin: 0; color: var(--ap-reg-muted); font-size: .9rem; line-height: 1.65; }
.ap-register .ap-reg-age-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--ap-reg-yellow);
  border-radius: 0 8px 8px 0;
  background: #1c1a12;
  color: #e3dfd0;
  font-size: .88rem;
  line-height: 1.65;
}
.ap-register .ap-reg-card {
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--ap-reg-line);
  border-radius: 18px;
  background: var(--ap-reg-panel);
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
}
.ap-register .ap-reg-card h2 { margin: 0 0 8px; color: var(--ap-reg-text); font-size: 1.5rem; line-height: 1.25; }
.ap-register .ap-reg-card-intro { margin: 0 0 24px; color: var(--ap-reg-muted); font-size: .92rem; line-height: 1.65; }
.ap-register .ap-reg-form #signup_form { display: block; margin: 0; padding: 0; }
.ap-register .ap-reg-form .register-section {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 0 24px !important;
}
.ap-register .ap-reg-form label, .ap-register .ap-reg-form legend { color: var(--ap-reg-text); }
.ap-register .ap-reg-form label { display: block; margin: 14px 0 7px; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.ap-register .ap-reg-form label:has(input[type="checkbox"]),
.ap-register .ap-reg-form label:has(input[type="radio"]) { font-weight: 400; }
.ap-register .ap-reg-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.ap-register .ap-reg-form textarea,
.ap-register .ap-reg-form select {
  width: 100%;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #686a72;
  border-radius: 9px;
  background: var(--ap-reg-input);
  color: var(--ap-reg-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
}
.ap-register .ap-reg-form input[type="checkbox"], .ap-register .ap-reg-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  accent-color: var(--ap-reg-yellow);
  vertical-align: middle;
}
.ap-register .ap-reg-form input::placeholder, .ap-register .ap-reg-form textarea::placeholder { color: #a2a5ad; opacity: 1; }
.ap-register .ap-reg-form input:focus-visible,
.ap-register .ap-reg-form select:focus-visible,
.ap-register .ap-reg-form textarea:focus-visible,
.ap-register a:focus-visible,
.ap-register button:focus-visible {
  outline: 2px solid var(--ap-reg-yellow);
  outline-offset: 3px;
}
.ap-register .ap-reg-form .description,
.ap-register .ap-reg-form .field-visibility-settings-notoggle,
.ap-register .ap-reg-form .field-visibility-settings-toggle,
.ap-register .ap-reg-form .bp-messages {
  color: var(--ap-reg-muted);
  font-size: .85rem;
  line-height: 1.6;
}
.ap-register .ap-reg-form fieldset { min-width: 0; margin: 18px 0; border-color: var(--ap-reg-line); }
.ap-register .ap-reg-form h3, .ap-register .ap-reg-form h4 { color: var(--ap-reg-text); }
.ap-register .ap-reg-form .submit { float: none; clear: both; margin: 24px 0 0; padding: 0; }
.ap-register .ap-reg-form #signup_submit,
.ap-register .ap-reg-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--ap-reg-pink);
  border-radius: 10px;
  background: var(--ap-reg-pink);
  color: #fff;
  font: inherit;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.ap-register .ap-reg-form #signup_submit:hover, .ap-register .ap-reg-primary:hover { border-color: #e60050; background: #e60050; color: #fff; }
.ap-register .ap-reg-form #signup_submit:disabled { opacity: .6; cursor: not-allowed; }
.ap-register .ap-reg-login { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--ap-reg-line); color: var(--ap-reg-muted); font-size: .92rem; text-align: center; }
.ap-register a { color: var(--ap-reg-yellow); text-decoration: underline; text-underline-offset: 3px; }
.ap-register a:hover { color: #fff; }
.ap-register .ap-reg-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: .8rem; }
.ap-register .ap-reg-form .error, .ap-register .ap-reg-form .bp-feedback.error {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #a83b5e;
  border-radius: 8px;
  background: #37121e;
  color: #ffd0df;
  font-size: .9rem;
  line-height: 1.6;
}
.ap-register .ap-reg-form [aria-invalid="true"] { border-color: #ff91b6 !important; }
.ap-register .ap-reg-state { max-width: 620px; margin: 32px auto; padding: 28px; border: 1px solid var(--ap-reg-line); border-radius: 18px; background: var(--ap-reg-panel); }
.ap-register .ap-reg-state h1 { margin: 0 0 14px; color: var(--ap-reg-text); font-size: 1.9rem; line-height: 1.2; }
.ap-register .ap-reg-state p { color: var(--ap-reg-muted); }
/* Keep the native form readable under themes with #buddypress .standard-form rules.
   The form IDs add specificity only inside this registration design. */
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ap-reg-text);
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .layout-wrap {
  display: block;
  width: 100%;
  margin: 0;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .register-section {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 0 24px !important;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(h2, h3, h4, label, legend) {
  color: var(--ap-reg-text);
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) label {
  display: block;
  margin: 14px 0 7px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) textarea,
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) select {
  width: 100%;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #686a72;
  border-radius: 9px;
  background: var(--ap-reg-input);
  color: var(--ap-reg-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 7px 0 0;
  padding: 0;
  accent-color: var(--ap-reg-yellow);
  vertical-align: middle;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(.description, .field-visibility-settings-notoggle, .field-visibility-settings-toggle, .bp-messages, .ap-reg-submit-note) {
  color: var(--ap-reg-muted);
  font-size: .85rem;
  line-height: 1.6;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(input[type="submit"], button[type="submit"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--ap-reg-pink);
  border-radius: 10px;
  background: var(--ap-reg-pink);
  color: #fff;
  font: inherit;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(input[type="submit"], button[type="submit"]):hover {
  border-color: #e60050;
  background: #e60050;
  color: #fff;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(input[type="submit"], button[type="submit"]):disabled {
  opacity: .6;
  cursor: not-allowed;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) :is(input, select, textarea, a, button):focus-visible {
  outline: 2px solid var(--ap-reg-yellow);
  outline-offset: 3px;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .select2-container {
  width: 100% !important;
  max-width: 100%;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .select2-selection {
  min-height: 46px;
  border: 1px solid #686a72;
  border-radius: 9px;
  background: var(--ap-reg-input);
  color: var(--ap-reg-text);
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .select2-selection--single .select2-selection__rendered {
  color: var(--ap-reg-text);
  line-height: 44px;
}
body.ap-registration-screen .ap-register :is(#signup_form, #signup-form) .select2-selection--multiple .select2-selection__rendered {
  color: var(--ap-reg-text);
  line-height: 1.6;
}
@media (max-width: 859px) {
  .ap-register .ap-reg-shell { grid-template-columns: 1fr; gap: 28px; max-width: 680px; padding: 24px; }
  .ap-register .ap-reg-title { max-width: 15ch; }
}
@media (max-width: 479px) {
  .ap-register .ap-reg-shell { margin: 16px auto; padding: 18px 14px; border-radius: 16px; }
  .ap-register .ap-reg-title { font-size: 2.1rem; }
  .ap-register .ap-reg-card { padding: 18px 14px; border-radius: 12px; }
  .ap-register .ap-reg-card h2 { font-size: 1.35rem; }
  .ap-register .ap-reg-highlights { margin-bottom: 24px; }
  .ap-register .ap-reg-state { padding: 22px 18px; }
}
