/* MEMZO register page — layered on the Orisa theme stylesheets.
   Tokens are the theme's measured values: DM Sans, #1d1d1d ink, #f2f2f2 panels,
   14px panel radius, 42px hero-card radius, pill buttons. */

:root,
[data-bs-theme=light] {
  --reg-bg:      #fefefe;
  --reg-ink:     #1d1d1d;
  --reg-muted:   #585959;
  --reg-panel:   #f2f2f2;
  --reg-line:    #e0e0e0;
  --reg-field:   #f2f2f2;
  --reg-focus:   #1d1d1d;
  --reg-danger:  #c8342f;
  --reg-ok:      #1f7a4a;
}
[data-bs-theme=dark] {
  --reg-bg:      #0c0c0c;
  --reg-ink:     #efefef;
  --reg-muted:   #b3b3b3;
  --reg-panel:   #141414;
  --reg-line:    #262626;
  --reg-field:   #1b1b1b;
  --reg-focus:   #efefef;
  --reg-danger:  #f87171;
  --reg-ok:      #4ade80;
}

body.reg-page {
  font-family: "DM Sans", sans-serif;
  background: var(--reg-bg);
  color: var(--reg-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- header ---------- */
.reg-header { padding: 26px 0; }
.reg-header__link {
  font-size: 16px; font-weight: 500; color: var(--reg-ink);
  text-decoration: none; letter-spacing: -0.3px;
}
.reg-header__link:hover { opacity: .65; color: var(--reg-ink); }

/* ---------- layout ---------- */
.reg-main { padding: 6px 0 70px; }

/* ---------- left: black gradient brand card ---------- */
/* Always dark in both themes: the skull artwork sits on pure black, so the card
   starts at #000 at the top and the gradient only builds toward the bottom. */
.reg-card {
  position: relative;
  height: 100%;
  min-height: 640px;
  border-radius: 42px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #000 0%, #000 42%, #07100a 72%, #0d1a12 100%);
  color: #fefefe;
}

/* soft colour glows picked from the artwork (acid green, cyan, a little red) */
.reg-card__glow {
  position: absolute; inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 35% at 18% 88%, rgba(124, 252, 0, .30), transparent 70%),
    radial-gradient(40% 32% at 88% 78%, rgba(0, 190, 255, .22), transparent 70%),
    radial-gradient(30% 24% at 60% 100%, rgba(255, 45, 85, .14), transparent 70%);
  filter: blur(10px);
  animation: reg-glow 14s ease-in-out infinite alternate;
}
@keyframes reg-glow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 1%, 0) scale(1.02); }
}

/* skull artwork across the top, edge to edge, fading into the gradient */
.reg-card__art {
  display: block;
  flex: 0 1 auto;
  width: 100%;
  height: auto;
  max-height: 52%;
  min-height: 0;
  aspect-ratio: 1280 / 941;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;        /* keep the pixel art crisp when scaled */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.reg-card__inner {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 42px 42px;
  margin-top: -40px;               /* let the copy start over the faded edge */
  position: relative;
}

.reg-card__mark { width: 40px; height: 40px; margin-bottom: 18px; }

.reg-card__lede {
  font-size: 16px; font-weight: 500; line-height: 1.2;
  max-width: 300px; margin: 0 0 18px;
}

.reg-card__points {
  list-style: none; padding: 0; margin: 0 0 30px;
  display: grid; gap: 8px;
}
.reg-card__points li {
  position: relative; padding-left: 18px;
  font-size: 15px; font-weight: 500; line-height: 1.3;
}
.reg-card__points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

.reg-card__title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  margin: 0 0 12px; color: inherit;
}
.reg-card__contact { font-size: 18px; font-weight: 500; margin: 0; }
/* the theme colours every <p>, so the dark card has to set its own text colours */
.reg-card .reg-card__lede    { color: rgba(254, 254, 254, .82); }
.reg-card .reg-card__contact { color: rgba(254, 254, 254, .6); }
.reg-card .reg-card__points li,
.reg-card .reg-card__title   { color: #fefefe; }

/* ---------- right: form panel ---------- */
.reg-panel {
  height: 100%;
  border-radius: 16px;
  background: var(--reg-bg);
  border: 1px solid var(--reg-line);
  padding: clamp(28px, 4vw, 56px);
}

.reg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.3px;
  margin: 0 0 18px; color: var(--reg-ink);
}
.reg-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 600; letter-spacing: -0.05em; line-height: 1.05;
  margin: 0 0 14px; color: var(--reg-ink);
}
.reg-lede {
  font-size: 18px; font-weight: 400; line-height: 1.4;
  color: var(--reg-muted); max-width: 520px; margin: 0 0 34px;
}

/* ---------- fields ---------- */
.reg-field label {
  display: block; margin-bottom: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--reg-ink);
}
.reg-field label span { font-weight: 400; color: var(--reg-muted); }

.reg-field input[type=text],
.reg-field input[type=email],
.reg-field input[type=password],
.reg-field select {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--reg-field);
  color: var(--reg-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px; font-weight: 500;
  transition: border-color .25s ease, background-color .25s ease;
  -webkit-appearance: none; appearance: none;
}
.reg-field input::placeholder { color: var(--reg-muted); opacity: .75; font-weight: 400; }
.reg-field input:focus,
.reg-field select:focus {
  outline: none;
  border-color: var(--reg-focus);
  background: var(--reg-bg);
}
.reg-field input[aria-invalid=true] { border-color: var(--reg-danger); }

.reg-field select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23585959' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 16px;
}

.reg-control { position: relative; }
.reg-control input { padding-right: 56px !important; }
.reg-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; color: var(--reg-muted); cursor: pointer; border-radius: 50%;
}
.reg-pw-toggle:hover { color: var(--reg-ink); }
.reg-pw-toggle .icon-off { display: none; }
.reg-pw-toggle[aria-pressed=true] .icon-on { display: none; }
.reg-pw-toggle[aria-pressed=true] .icon-off { display: block; }

.reg-strength { margin-top: 10px; }
.reg-strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.reg-strength__bars i { height: 4px; border-radius: 50px; background: var(--reg-line); transition: background-color .3s; }
.reg-strength[data-level="1"] .reg-strength__bars i:nth-child(-n+1),
.reg-strength[data-level="2"] .reg-strength__bars i:nth-child(-n+2),
.reg-strength[data-level="3"] .reg-strength__bars i:nth-child(-n+3),
.reg-strength[data-level="4"] .reg-strength__bars i { background: var(--reg-ink); }
.reg-strength__label { margin: 6px 0 0; font-size: 13px; color: var(--reg-muted); }

.reg-hint  { margin: 7px 0 0; font-size: 13px; color: var(--reg-muted); }
.reg-error { margin: 7px 0 0; font-size: 13px; font-weight: 500; color: var(--reg-danger); display: none; }
.reg-error.show { display: block; }

/* ---------- checkboxes ---------- */
.reg-checks { padding-top: 6px; }
.reg-check {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; cursor: pointer;
}
.reg-check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex: none; margin: 1px 0 0;
  border: 1px solid var(--reg-line); border-radius: 6px;
  background: var(--reg-field); cursor: pointer; position: relative;
  transition: background-color .2s, border-color .2s;
}
.reg-check input:checked { background: var(--reg-ink); border-color: var(--reg-ink); }
.reg-check input:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 6px; height: 11px; border: solid var(--reg-bg); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reg-check input:focus-visible { outline: 2px solid var(--reg-focus); outline-offset: 2px; }
.reg-check input[aria-invalid=true] { border-color: var(--reg-danger); }
.reg-check span { font-size: 15px; line-height: 1.45; color: var(--reg-muted); }

/* ---------- actions ---------- */
.reg-actions { padding-top: 10px; }
.reg-submit { border: 0; cursor: pointer; }
.reg-submit:disabled { opacity: .55; cursor: not-allowed; }
.reg-alt { margin: 0; font-size: 15px; color: var(--reg-muted); }
.reg-alt a { color: var(--reg-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.reg-legal {
  margin: 34px 0 0; padding-top: 22px;
  border-top: 1px solid var(--reg-line);
  font-size: 13px; line-height: 1.5; color: var(--reg-muted);
}

/* ---------- banners ---------- */
.reg-banner {
  display: none; margin: 0 0 22px; padding: 14px 18px;
  border-radius: 14px; font-size: 15px; font-weight: 500;
}
.reg-banner.show { display: block; }
.reg-banner--error { background: rgba(200, 52, 47, .1); color: var(--reg-danger); }
.reg-banner--ok    { background: rgba(31, 122, 74, .1); color: var(--reg-ok); }

/* ---------- responsive ---------- */
@media (min-width: 992px) {
  /* keep the brand card in view while the longer form scrolls past it */
  .reg-card { position: sticky; top: 24px; height: calc(100vh - 150px); min-height: 600px; }
}
@media (max-width: 991.98px) {
  .reg-card { min-height: 0; }
  .reg-card__inner { padding: 0 30px 30px; margin-top: -24px; }
  .reg-card__art { max-height: none; }
  .reg-card__points { display: none; }
  .reg-card__title { font-size: 60px; }
}
@media (max-width: 575.98px) {
  .reg-header { padding: 18px 0; }
  .reg-card { border-radius: 28px; }
  .reg-panel { border-radius: 16px; }
  .reg-submit { width: 100%; justify-content: center; }
}

/* ---------- log in page ---------- */
.reg-panel--center { display: flex; flex-direction: column; justify-content: center; }
.reg-panel--center form { max-width: 560px; }
.reg-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.reg-label-row label { margin-bottom: 0; }
.reg-link { font-size: 14px; font-weight: 500; color: var(--reg-muted); text-decoration: underline; text-underline-offset: 3px; }
.reg-link:hover { color: var(--reg-ink); }
.reg-banner a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .reg-card__glow { animation: none; } }

/* ---------- page frame shared by every sub-page (register, log in, contact, about, policies) ----------
   Same side gutter rhythm as the home page instead of Bootstrap's tight container edges. */
.reg-page .container {
  max-width: 1440px;
  padding-left: clamp(20px, 4vw, 64px);
  padding-right: clamp(20px, 4vw, 64px);
}
.reg-header { padding: clamp(18px, 2.2vw, 30px) 0; }
.reg-main { padding: clamp(8px, 1.5vw, 20px) 0 clamp(64px, 8vw, 120px); }
