/* =========================================================
   WARRIOR MEN INTERNATIONAL
   The gate. Sign in, sign up, reset.

   A split. On the left, the charge, a wall of condensed
   type over dark navy with the four marks of the pathway.
   On the right, the form, quiet and out of the way.
   On a phone the charge collapses into a wordmark and the
   form takes the screen.
   ========================================================= */

.gate {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}


/* ---------------------------------------------------------
   LEFT: THE CHARGE
   --------------------------------------------------------- */
.gate__charge {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-7) var(--s-7);
  background: var(--navy-900);
  overflow: hidden;
}

/* Forged texture. Faint diagonals, barely there. */
.gate__charge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 3px,
      rgba(200, 135, 63, 0.02) 3px,
      rgba(200, 135, 63, 0.02) 4px
    );
  pointer-events: none;
}

/* A single bronze glow, low and left, like a forge at rest. */
.gate__charge::after {
  content: '';
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 90%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(200, 135, 63, 0.10) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.gate__mark {
  position: relative;
  z-index: 1;
}

.gate__wordmark {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  line-height: 1.6;
}
.gate__wordmark span {
  display: block;
  color: var(--stone-600);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
}

.gate__body {
  position: relative;
  z-index: 1;
  max-width: 30ch;
}

.gate__headline {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 3.6vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--stone-100);
}

/* Every second line drops to bronze. The rhythm carries the creed. */
.gate__headline span:nth-child(even) { color: var(--bronze); }
.gate__headline span { display: block; }

.gate__creed {
  margin-top: var(--s-5);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--stone-400);
  max-width: 36ch;
}

/* The four marks. Same forged diamond as the pathway spine. */
.gate__stages {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--s-5);
}

.gate__stage {
  flex: 1;
  min-width: 0;
}

.gate__stage-node {
  width: 20px;
  height: 20px;
  margin-bottom: var(--s-3);
  border: 1.5px solid var(--bronze-deep);
  border-radius: 3px;
  transform: rotate(45deg);
}
.gate__stage:first-child .gate__stage-node {
  background: var(--bronze);
  border-color: var(--bronze);
}

.gate__stage-name {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-500);
  white-space: nowrap;
}
.gate__stage:first-child .gate__stage-name { color: var(--stone-200); }


/* ---------------------------------------------------------
   RIGHT: THE FORM
   --------------------------------------------------------- */
.gate__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-7) var(--s-5);
  background: var(--navy-850);
  overflow-y: auto;
}

.gate__form {
  width: 100%;
  max-width: 400px;
}

.gate__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--s-3);
}

.gate__title {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--stone-100);
  line-height: 1.15;
  margin-bottom: var(--s-3);
}

.gate__sub {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--stone-500);
  margin-bottom: var(--s-6);
}

.gate__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

/* The row under a password field: label left, forgot link right. */
.gate__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-2);
}
.gate__label-row .label { margin-bottom: 0; }
.gate__label-row a {
  font-size: var(--step--1);
  color: var(--stone-500);
  font-weight: 500;
}
.gate__label-row a:hover { color: var(--bronze); }

/* Show and hide the password. */
.gate__pw { position: relative; }
.gate__pw .input { padding-right: 3.25rem; }
.gate__pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.375rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
  transition: color var(--fast) var(--ease);
}
.gate__pw-toggle:hover { color: var(--bronze); }

/* Password strength. Four segments, filled from the left. */
.pw-meter {
  display: flex;
  gap: 4px;
  margin-top: var(--s-3);
}
.pw-meter__seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-500);
  transition: background var(--mid) var(--ease);
}
.pw-meter[data-score="1"] .pw-meter__seg:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] .pw-meter__seg:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] .pw-meter__seg:nth-child(-n+3) { background: var(--bronze); }
.pw-meter[data-score="4"] .pw-meter__seg { background: var(--forest-lit); }

.pw-note {
  margin-top: var(--s-2);
  font-size: var(--step--1);
  color: var(--stone-600);
  min-height: 1.4em;
}

.gate__submit { margin-top: var(--s-6); }

.gate__foot {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--stone-500);
  text-align: center;
}
.gate__foot a { font-weight: 600; }

.gate__legal {
  margin-top: var(--s-5);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--stone-600);
  text-align: center;
}
.gate__legal a { color: var(--stone-500); text-decoration: underline; }
.gate__legal a:hover { color: var(--bronze); }


/* ---------------------------------------------------------
   STANDALONE NOTICE
   Used by activate.php and verify-notice.php: one card,
   centred, no split.
   --------------------------------------------------------- */
.notice {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  background: var(--navy-850);
}

.notice__card {
  width: 100%;
  max-width: 460px;
  padding: var(--s-7);
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.notice__mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-md);
  transform: rotate(45deg);
}
.notice__mark > * { transform: rotate(-45deg); }

.notice__mark--good {
  background: var(--forest-ash);
  border: 1.5px solid var(--forest);
  color: var(--forest-lit);
}
.notice__mark--wait {
  background: var(--bronze-ash);
  border: 1.5px solid var(--bronze);
  color: var(--bronze);
}
.notice__mark--bad {
  background: var(--danger-ash);
  border: 1.5px solid var(--danger);
  color: #D97C73;
}

.notice__title {
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--stone-100);
  margin-bottom: var(--s-3);
}

.notice__body {
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--stone-400);
}
.notice__body + .notice__body { margin-top: var(--s-4); }

.notice__card .btn { margin-top: var(--s-6); }

.notice__foot {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--stone-600);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 940px) {
  .gate { grid-template-columns: 1fr; }

  /* The charge becomes a header band. */
  .gate__charge {
    padding: var(--s-6) var(--s-5) var(--s-7);
    gap: var(--s-6);
  }
  .gate__charge::after { display: none; }

  .gate__headline { font-size: clamp(2rem, 9vw, 2.75rem); }
  .gate__creed { display: none; }

  .gate__stages { gap: var(--s-4); }
  .gate__stage-name { font-size: 0.625rem; letter-spacing: 0.08em; }

  .gate__panel { padding: var(--s-6) var(--s-5) var(--s-8); }
}

@media (max-width: 480px) {
  .gate__charge { padding: var(--s-5) var(--s-4) var(--s-6); }
  .gate__panel  { padding: var(--s-6) var(--s-4) var(--s-7); }

  /* Two marks per row rather than four squeezed. */
  .gate__stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }

  .gate__pair { grid-template-columns: 1fr; gap: 0; }
  .gate__pair .field { margin-bottom: var(--s-5); }
}
