/* =========================================================================
   REGISTRATION THEME
   A premium three-column registration experience (branding / form / trust +
   imagery) using the site's existing green/navy/gold/ivory tokens - not a
   new palette. Scoped to body.register-page; .steps/.step/.step__num are
   only ever used on this page, so they're restyled directly rather than
   under a scoping prefix. Shared classes used elsewhere (.field, .btn,
   input[type=...], .notice, .form-error) are only ever touched here via
   .reg-card ancestor selectors, so no other page is affected.
   ========================================================================= */

body.register-page .site-main { max-width: 100%; padding: 0; }

.reg-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  min-height: calc(100vh - 130px);
}

/* ---- Left & right panels: shared base ---------------------------------- */
.reg-aside {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) var(--space-6);
}
.reg-aside--left { display: flex; align-items: center; }
.reg-aside--right { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-6); }
.reg-aside--right .reg-points { max-width: 320px; }

/* The background photo is shown at full colour across the whole panel
   (no wash, no pattern overlay on top of it) - readability for the
   captions comes from the frosted card behind the text itself, below. */
.reg-aside__pattern { display: none; }

.reg-aside__inner {
  position: relative;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md);
}

.reg-aside__kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-gold-bright, var(--color-gold)); margin: 0 0 8px;
}
.reg-aside__title {
  font-family: var(--font-souvenir); font-weight: 800; font-size: 40px; line-height: 1.05;
  color: var(--color-navy-deep); margin: 0 0 2px;
}
.reg-aside__subtitle {
  font-family: var(--font-souvenir); font-weight: 700; font-size: 20px;
  color: var(--color-primary); margin: 0 0 18px;
}
.reg-aside__lead {
  font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); margin: 0 0 28px; max-width: 34ch;
}

.reg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.reg-points li { display: flex; align-items: center; gap: 12px; }
.reg-points__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: grid; place-items: center; color: var(--color-primary);
}
.reg-points li strong { display: block; font-size: 13.5px; color: var(--color-text); }
.reg-points li span:last-child { display: block; font-size: 12px; color: var(--color-text-muted); }

.reg-aside--right .reg-points {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

/* ---- Center: registration card ------------------------------------------ */
.reg-card-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-7) var(--space-5);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.reg-card {
  width: 100%;
  max-width: 640px;
  background: var(--color-surface);
  border: 1px solid rgba(245, 181, 27, 0.4);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}
.reg-card h1 { font-family: var(--font-souvenir); font-weight: 800; color: var(--color-navy-deep); font-size: 26px; margin: 0 0 6px; }

/* Inputs, scoped to this card only. */
.reg-card .field__label { font-weight: 700; color: var(--color-text); font-size: 13.5px; }
.reg-card input[type="text"],
.reg-card input[type="email"],
.reg-card input[type="tel"],
.reg-card input[type="password"] {
  height: 48px;
  border-color: rgba(245, 181, 27, 0.4);
  border-radius: var(--radius-md);
  font-size: 15px;
}
.reg-card input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245, 181, 27, 0.18);
}
.reg-card .btn--primary {
  height: 52px;
  font-size: 15.5px;
  border-radius: var(--radius-md);
}
.reg-card .btn--primary svg { flex: 0 0 auto; }
.reg-card a { color: var(--color-primary); font-weight: 700; }
.reg-card a:hover { color: var(--color-primary-hover); }

/* ---- Step indicator: circles connected by a line, matching the brief --- */
.reg-card .steps {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-bottom: var(--space-6);
  flex-wrap: nowrap;
}
.reg-card .step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.reg-card .step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 19px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: rgba(245, 181, 27, 0.35);
  z-index: 0;
}
.reg-card .step.is-active::before,
.reg-card .step.is-done::before {
  background: var(--color-primary);
}
.reg-card .step__num {
  position: relative; z-index: 1;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245, 181, 27, 0.16);
  color: var(--color-text-muted);
  font-family: var(--font-souvenir);
  font-weight: 700;
  font-size: 15px;
  display: grid; place-items: center;
}
.reg-card .step.is-active .step__num,
.reg-card .step.is-done .step__num {
  background: var(--color-primary);
  color: #fff;
}
.reg-card .step__label { color: var(--color-text-muted); }
.reg-card .step.is-active .step__label { color: var(--color-primary); font-weight: 700; }
.reg-card .step.is-done .step__label { color: var(--color-primary); }

/* ---- Post-registration welcome ------------------------------------------- */
.reg-welcome { text-align: center; align-items: center; justify-items: center; padding: var(--space-3) 0; }
.reg-card { scroll-margin-top: calc(var(--site-header-h, 64px) + var(--space-3)); }
.reg-welcome__badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff;
  box-shadow: 0 0 0 8px rgba(8, 127, 109, 0.12);
}
.reg-welcome__kicker {
  margin: var(--space-2) 0 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-gold-bright, var(--color-gold));
}
.reg-welcome h1:focus { outline: none; }
.reg-welcome > p.muted { max-width: 44ch; line-height: 1.6; }
.reg-welcome__install {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid rgba(245, 181, 27, 0.4);
  border-radius: var(--radius-md);
}
.reg-welcome__install img { flex: 0 0 auto; border-radius: 10px; }
.reg-welcome__install p { margin: 0; font-weight: 600; font-size: 14px; color: var(--color-text); }
.reg-welcome__actions { display: grid; gap: var(--space-3); width: 100%; }
.reg-welcome__actions .btn { height: 52px; font-size: 15.5px; gap: 8px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .reg-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .reg-aside--right { display: none; }
}
@media (max-width: 860px) {
  .reg-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .reg-aside--left { padding: var(--space-6) var(--space-5) var(--space-5); }
  .reg-aside__title { font-size: 32px; }
  .reg-card-wrap { padding: var(--space-5); border-left: none; border-right: none; }
  .reg-card { padding: var(--space-5); }
  .reg-card .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .reg-card .step__label { display: none; }
  .reg-aside__pattern { opacity: 0.3; }
}
