/* auth_modern.css — the member-facing auth pages: join.php / join_profile.php
   (registration), loginform.php, forgotpassword.php. A self-contained,
   modern redesign: a single floating split card (gradient info panel + form
   panel) on a soft gradient canvas, replacing the old flat
   dark-block-then-white-section layout (auth_editorial.css), which this
   file fully replaces on all four pages.
   Reuses the --eg-* tokens from editorial_shell.css for brand consistency. */

.jn-page .mh-shell { max-width: none; margin: 0; padding: 0; }
.jn-page { overflow-x: clip; background: var(--eg-cream); }
.jn-page main { max-width: 100%; overflow-x: clip; }

.jn-canvas {
  position: relative;
  padding: clamp(28px, 5vw, 64px) var(--eg-gutter) clamp(48px, 7vw, 96px);
  background:
    radial-gradient(circle at 14% 8%, rgba(217,164,65,.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(101,27,37,.10), transparent 46%),
    var(--eg-cream);
}

.jn-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--eg-paper);
  box-shadow: 0 40px 90px -32px rgba(45, 11, 18, .32), 0 2px 8px rgba(45, 11, 18, .06);
}

/* ---- Info panel (gradient, brand copy + step progress) ------------ */
.jn-info {
  position: relative;
  padding: clamp(34px, 4vw, 52px) clamp(28px, 3.4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 88% -6%, rgba(217, 164, 65, .30), transparent 40%),
    radial-gradient(circle at -8% 108%, rgba(255, 255, 255, .07), transparent 38%),
    linear-gradient(165deg, var(--eg-wine) 0%, var(--eg-wine-dark) 100%);
  display: flex;
  flex-direction: column;
}

.jn-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--eg-gold);
  font: 700 11px var(--eg-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jn-info h1 {
  position: relative;
  max-width: 16ch;
  margin: 20px 0 14px;
  color: #fff;
  font: 600 clamp(30px, 3vw, 42px)/1.12 var(--eg-serif);
  letter-spacing: -.03em;
}

.jn-info__lead {
  position: relative;
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.7;
}

/* Step progress: connected dots with a filling line, not boxy chips */
.jn-progress {
  position: relative;
  display: flex;
  align-items: center;
  margin: 32px 0 4px;
}
.jn-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.jn-info__note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  line-height: 1.5;
}
.jn-progress__dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .32);
  color: rgba(255, 255, 255, .85);
  font: 700 12.5px var(--eg-sans);
  transition: background .25s, border-color .25s, color .25s;
}
.jn-progress__step.is-active .jn-progress__dot,
.jn-progress__step.is-done .jn-progress__dot {
  background: var(--eg-gold);
  border-color: var(--eg-gold);
  color: #2b1708;
}
.jn-progress__label {
  color: rgba(255, 255, 255, .62);
  font: 700 10.5px var(--eg-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jn-progress__step.is-active .jn-progress__label { color: #fff; }
.jn-progress__line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 6px 22px;
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
  overflow: hidden;
}
.jn-progress__line span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--eg-gold);
  border-radius: 2px;
  transition: width .4s ease;
}
.jn-progress__line.is-filled span { width: 100%; }

/* Reassurance bullets with a check-circle icon */
.jn-points {
  position: relative;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.jn-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.6;
}
.jn-points svg { flex: 0 0 auto; margin-top: 1px; color: var(--eg-gold); }
.jn-points strong { color: #fff; font-weight: 600; }

.jn-recap {
  position: relative;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.jn-recap dt {
  color: rgba(255, 255, 255, .56);
  font: 700 10px var(--eg-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.jn-recap dd {
  margin: 2px 0 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.jn-recap dd:last-child { margin-bottom: 0; }

/* ---- Form panel ----------------------------------------------- */
.jn-form-panel {
  padding: clamp(34px, 4vw, 52px) clamp(28px, 3.6vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.jn-form-panel__eyebrow {
  color: var(--eg-wine);
  font: 700 11px var(--eg-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.jn-form-panel h2 {
  margin: 8px 0 26px;
  font: 600 clamp(22px, 2.4vw, 28px)/1.15 var(--eg-serif);
  letter-spacing: -.02em;
  color: var(--eg-ink);
}

.jn-form { display: grid; gap: 18px 18px; }
.jn-form.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.jn-group {
  grid-column: 1 / -1;
  margin: 10px 0 -6px;
  color: var(--eg-muted);
  font: 700 10.5px var(--eg-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.jn-group:first-child { margin-top: 0; }

.jn-field { display: grid; gap: 7px; min-width: 0; }
.jn-field.is-wide { grid-column: 1 / -1; }
.jn-field label {
  font: 600 12.5px var(--eg-sans);
  color: var(--eg-ink);
}
.jn-hint { color: var(--eg-muted); font-size: 11.5px; line-height: 1.5; }

.jn-field input,
.jn-field select,
.jn-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1.5px solid var(--eg-line);
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--eg-ink);
  font: 400 15px var(--eg-sans);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.jn-field select { padding-right: 34px; }
.jn-field input:hover,
.jn-field select:hover { border-color: rgba(101, 27, 37, .32); }
.jn-field input:focus,
.jn-field select:focus,
.jn-field textarea:focus {
  outline: none;
  border-color: var(--eg-gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 164, 65, .22);
}

/* Optional collapsible block (registration step 2 gothram) */
.jn-more { grid-column: 1 / -1; margin-top: 2px; border: 1.5px solid var(--eg-line); border-radius: 14px; overflow: hidden; }
.jn-more > summary {
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--eg-wine);
  font: 700 11px var(--eg-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #fbfaf7;
}
.jn-more > summary::-webkit-details-marker { display: none; }
.jn-more > summary::after { content: "+"; font-size: 15px; line-height: 1; color: var(--eg-muted); }
.jn-more[open] > summary::after { content: "\2013"; }
.jn-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 16px 17px 20px;
}
@media (max-width: 560px) { .jn-more__grid { grid-template-columns: 1fr; } }

.jn-alert {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.jn-alert--error { background: #fbeae8; color: #8c2f26; border: 1px solid #eec3bd; }
.jn-alert--success { background: #eef5e9; color: #38622a; border: 1px solid #c3dcb5; }
.jn-alert--review { background: #fdf5e4; color: #7a5512; border: 1px solid #eed3a0; }

.jn-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.jn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--eg-wine) 0%, #7d232f 100%);
  color: #fff;
  font: 700 14px var(--eg-sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(101, 27, 37, .55);
  transition: transform .18s, box-shadow .18s;
}
.jn-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(101, 27, 37, .6); }
.jn-btn.is-ghost {
  background: none;
  color: var(--eg-wine);
  box-shadow: none;
  border: 1.5px solid var(--eg-line);
}
.jn-btn.is-ghost:hover { border-color: var(--eg-wine); transform: none; box-shadow: none; }

.jn-alt {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--eg-muted);
  font-size: 13px;
}
.jn-alt a { color: var(--eg-wine); font-weight: 700; text-decoration: none; }
.jn-alt a:hover { text-decoration: underline; }

.jn-reveal { animation: jnReveal .5s ease; }
@keyframes jnReveal {
  from { opacity: 0; transform: translateY(14px); }
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 880px) {
  .jn-card { grid-template-columns: 1fr; border-radius: 22px; }
  .jn-info { order: 1; }
  .jn-form-panel { order: 2; }
  .jn-recap { margin-top: 22px; }
}
@media (max-width: 560px) {
  .jn-form.is-grid { grid-template-columns: 1fr; }
  .jn-canvas { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .jn-reveal { animation: none; }
  .jn-btn:hover { transform: none; }
}
