/**
 * Register page — rebuilt from Figma node 157:736
 * https://www.figma.com/design/UsaUP7gECePh1jNgeuTngh/Untitled?node-id=157-736
 * Layout: flexbox; tokens match exported component specs (no absolute positioning).
 */

:root {
  --reg2-black: #000;
  --reg2-white: #fff;
  /* Page chrome behind card (mobile / marketing frame) */
  --reg2-page-bg: #f3f0e3;
  --reg2-panel: #f8f8f8;
  --reg2-tint: rgba(243, 240, 227, 0.3);
  --reg2-cta-fill: #171717;
  --reg2-border: 0.4px solid var(--reg2-black);
  --reg2-col-w: 288px;
  --reg2-card-w: 576px;
  --reg2-gap: 18px;
  /* From Figma reg-form-inner / reg-benefits-inner — see assets/register/register-figma-tokens.json */
  --reg2-form-section-gap: 18px;
  --reg2-gap-title-lead: 11px;
  --reg2-gap-lead-account: 18px;
  --reg2-field-label-gap: 4px;
  --reg2-fields-gap: 18px;
  --reg2-line-height-copy: 1.4;
  --reg2-pad-x: 28px;
  --reg2-pad-benefits-y: 20px;
  --reg2-pad-form-y: 17px;
  --reg2-radius-t: 10px;
  --reg2-input-radius: 5px;
  --reg2-display: 20px;
  --reg2-body: 13px;
  --reg2-label: 13px;
  --reg2-cta: 16px;
  /* Body / label sizes tuned for readability (register + wp-login reg2 forms). */
  --reg2-font-body: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, ui-sans-serif, sans-serif;
  --reg2-track-display: -0.4px;
  --reg2-track-body: -0.005em;
  --reg2-track-label: -0.005em;
  --reg2-track-input: -0.005em;
  --reg2-track-cta: -0.08px;
}

body {
  margin: 0;
}

.reg2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--reg2-white);
  color: var(--reg2-black);
  /* System UI fonts + generic fallbacks (no webfont) */
  font-family: var(--reg2-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Background paints first; header + main stack above (z-index). */
.reg2__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Keep multiply tint from blending into the form below. */
  isolation: isolate;
}

.reg2__bg-img {
  position: relative;
  top: 300px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  pointer-events: none;
}

.reg2__bg-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--reg2-tint);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.reg2__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  padding: 70px 1rem 0;
  margin-bottom: 90px;
  width: 100%;
  box-sizing: border-box;
}

.reg2__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.reg2__logo-link:focus-visible {
  outline: 2px solid var(--reg2-cta-fill, #1a1a1a);
  outline-offset: 4px;
  border-radius: 4px;
}

.reg2__header .reg2__logo--full {
  display: block;
  width: auto;
  max-width: min(100%, 290px);
  height: auto;
  max-height: 62px;
  flex-shrink: 0;
}

.reg2__header .reg2__logo--small {
  display: none;
}

.reg2__main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 2.5rem;
  margin-top: 0;
  box-sizing: border-box;
}

.reg2__card {
  width: 100%;
  max-width: var(--reg2-card-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: var(--reg2-border);
  border-radius: var(--reg2-radius-t);
  overflow: hidden;
  background: var(--reg2-white);
  box-sizing: border-box;
}

.reg2__row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 600px) {
  .reg2__row {
    flex-direction: row;
    align-items: stretch;
  }
}

.reg2__col {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--reg2-gap);
}

.reg2__col--form {
  background: var(--reg2-panel);
  padding: var(--reg2-pad-form-y) var(--reg2-pad-x) var(--reg2-pad-benefits-y);
  border-right: none;
}

.reg2__col--benefits {
  background: var(--reg2-white);
  padding: var(--reg2-pad-benefits-y) var(--reg2-pad-x);
}

@media (min-width: 600px) {
  .reg2__col--form {
    flex: 0 0 var(--reg2-col-w);
    max-width: var(--reg2-col-w);
    border-right: var(--reg2-border);
  }

  .reg2__col--benefits {
    flex: 0 0 var(--reg2-col-w);
    max-width: var(--reg2-col-w);
  }
}

.reg2__display {
  margin: 0;
  font-size: var(--reg2-display);
  font-weight: 600;
  letter-spacing: var(--reg2-track-display);
  line-height: 1.1;
}

.reg2__body {
  margin: 0;
  font-family: var(--reg2-font-body);
  font-size: var(--reg2-body);
  font-weight: 400;
  letter-spacing: var(--reg2-track-body);
  line-height: var(--reg2-line-height-copy);
}

.reg2__body--benefits-intro {
  margin-bottom: 15px;
}

.reg2__list {
  margin: 0;
  padding: 0;
  padding-inline-start: 0px;
  list-style: disc;
}

.reg2__list li {
  margin: 0 0 0 16.5px;
  padding-left: 0.1em;
  font-family: var(--reg2-font-body);
  font-size: var(--reg2-body);
  font-weight: 400;
  letter-spacing: var(--reg2-track-body);
  line-height: var(--reg2-line-height-copy);
}

.reg2__list li + li {
  margin-top: 0;
}

.reg2__account {
  margin: 0;
  font-family: var(--reg2-font-body);
  font-size: var(--reg2-body);
  letter-spacing: var(--reg2-track-body);
  line-height: var(--reg2-line-height-copy);
  font-weight: 400;
}

.reg2__account strong {
  font-weight: 700;
}

#reg2-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--reg2-form-section-gap);
  width: 100%;
  max-width: 230px;
  margin-bottom: 20px;
}

.reg2__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--reg2-gap-title-lead);
  width: 100%;
}

.reg2__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--reg2-gap-lead-account);
  width: 100%;
}

.reg2__fields {
  display: flex;
  flex-direction: column;
  gap: var(--reg2-fields-gap);
  width: 100%;
}

.reg2__field {
  display: flex;
  flex-direction: column;
  gap: var(--reg2-field-label-gap);
  width: 100%;
}

.reg2__field label {
  font-family: var(--reg2-font-body);
  font-size: var(--reg2-label);
  font-weight: 500;
  letter-spacing: var(--reg2-track-label);
  line-height: 1;
  color: var(--reg2-black);
}

.reg2__field input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 10px;
  font-family: var(--reg2-font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: var(--reg2-track-input);
  color: var(--reg2-black);
  background: var(--reg2-white);
  border: 0.5px solid var(--reg2-black);
  border-radius: var(--reg2-input-radius);
}

.reg2__field input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.15);
  outline-offset: 1px;
}

/* Single block of pricing lines — no extra gap between $999 block and renewal lines */
.reg2__pricing {
  display: block;
}

.reg2__pricing-line {
  margin: 0;
  font-family: var(--reg2-font-body);
  font-size: var(--reg2-body);
  font-weight: 400;
  letter-spacing: var(--reg2-track-body);
  line-height: var(--reg2-line-height-copy);
  white-space: normal;
}

.reg2__cta-bar {
  padding: 1rem var(--reg2-pad-x) 1.5rem;
  display: flex;
  justify-content: center;
  background: var(--reg2-white);
  border-top: var(--reg2-border);
}

.reg2__cta {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 511px;
  min-height: 49px;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: var(--reg2-cta-fill);
  color: var(--reg2-white);
  font-family: inherit;
  font-size: var(--reg2-cta);
  font-weight: 600;
  letter-spacing: var(--reg2-track-cta);
  line-height: 1.4;
  text-align: center;
}

.reg2__cta:hover {
  opacity: 0.92;
}

.reg2__cta:focus-visible {
  outline: 2px solid var(--reg2-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--reg2-cta-fill);
}

/* ——— Mobile: single-column card, cream frame, full-width form, section rules ——— */
@media (max-width: 599px) {
  .reg2 {
    background: var(--reg2-page-bg);
  }

  .reg2__header {
    padding: clamp(2rem, 8vw, 3rem) 1.25rem 0;
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }

  .reg2__header .reg2__logo--full {
    display: none;
  }

  .reg2__header .reg2__logo--small {
    display: block;
    width: 48px;
    height: 47px;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .reg2__main {
    padding: 0 1rem 2rem;
    width: 100%;
  }

  .reg2__card {
    max-width: none;
    border-radius: 12px;
  }

  .reg2__bg-img {
    top: 120px;
    opacity: 0.35;
  }

  .reg2__col--form {
    background: var(--reg2-white);
    border-bottom: var(--reg2-border);
    padding-bottom: 1.25rem;
  }

  .reg2__col--benefits {
    padding-top: 1.25rem;
  }

  /* Divider above “Pricing” — full bleed inside column (negate horizontal padding) */
  .reg2__col--benefits > h2.reg2__display:nth-of-type(2) {
    border-top: var(--reg2-border);
    margin-top: 0.5rem;
    margin-left: calc(-1 * var(--reg2-pad-x));
    margin-right: calc(-1 * var(--reg2-pad-x));
    padding-top: 1.25rem;
    padding-left: var(--reg2-pad-x);
    padding-right: var(--reg2-pad-x);
    box-sizing: border-box;
  }

  #reg2-form {
    max-width: none;
    width: 100%;
    align-items: stretch;
  }

  .reg2__intro,
  .reg2__lead {
    align-items: stretch;
    max-width: none;
  }

  .reg2__list {
    padding-inline-start: 10px;
  }
}
