/* Sign-in landing: what the portal is on the left, the form on the right. */

.auth-page { max-width: 1080px; }

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

/* ---------------------------------------------------------------- hero */

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 6px 15px 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--pink-line);
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pink);
}

/* A shield, not the directory's green "we are live" dot: this pill is saying
   what the portal is, not reporting a status. */
.auth-eyebrow .sj-icon { width: 14px; height: 14px; }

.auth-hero h1 { margin: 0 0 12px; }
.auth-hero .lede { max-width: 34rem; margin-bottom: 0; }

/* Closes the heading and opens the list under it, which two paragraphs running
   together do not. */
.auth-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 24px;
  color: var(--pink);
}

.auth-rule span {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(254, 81, 130, 0));
}

.auth-rule .sj-icon { width: 13px; height: 13px; }

.auth-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.auth-point-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ee);
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

/* ---------------------------------------------------------------- card */

.auth-card { margin: 0; text-align: center; }

/* The padlock over the heading. Centred with it, because between them they are
   the card's title and this is the first thing read on the page. */
.auth-card-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pink-wash);
  border: 1px solid var(--pink-line);
  color: var(--pink);
}

.auth-card-mark .sj-icon { width: 24px; height: 24px; }

.auth-card h2 {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.015em;
}

/* Everything below the heading is read left to right again — only the title
   block and the two closing lines are centred. */
.auth-card .field,
.auth-card .auth-assure { text-align: left; }

/* The envelope inside the box, so the one field on the page reads as the thing
   to fill in. Padding on the input rather than a flex row: a wrapper that lays
   the two out side by side stops the box growing with the viewport. */
.auth-input { position: relative; display: block; }

.auth-input-ico {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  display: grid;
  color: var(--muted);
  pointer-events: none;
}

.auth-input-ico .sj-icon { width: 17px; height: 17px; }
.auth-input input { --field-inset-left: 42px; }
.auth-card .hint { margin-bottom: 18px; }
.auth-card .actions { margin-top: 20px; }

.auth-card .btn.ghost.block { margin-top: 10px; }

.auth-alt {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--pink-line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-alt a { font-weight: 700; }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 860px) {
  /* The form comes first on a phone: someone returning to sign in should not
     scroll past the pitch to reach the field they came for. */
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .auth-card { order: -1; }
  .auth-hero { text-align: center; }
  .auth-hero .lede { margin-inline: auto; }
  .auth-points { max-width: 26rem; margin-inline: auto; text-align: left; }
}

/* ------------------------------------------------ what is behind the door */

/* Two lines each now: a name and what it gets you. The single-line version
   read as a feature list; this reads as a door with labels on it. */
.auth-points li { align-items: flex-start; }

.auth-point-ico {
  /* Kept from the rule above: without it the icon is squashed by the text
     beside it once that text runs to two lines. */
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ee);
  color: var(--pink);
}

.auth-point-ico .sj-icon { width: 20px; height: 20px; }

.auth-point-text strong { display: block; font-size: 15px; }

.auth-point-text > span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------ trust strip */

/* Three claims in one row, divided rather than boxed separately: they are one
   statement about the portal, not three more features. */
.auth-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: clamp(14px, 2vw, 18px);
}

.auth-trust li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 0 clamp(10px, 1.6vw, 16px);
}

/* A hairline between them, not around each. */
.auth-trust li + li { border-left: 1px solid var(--pink-line); }

.auth-trust-ico {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ee);
  color: var(--pink);
}

.auth-trust-ico .sj-icon { width: 18px; height: 18px; }

.auth-trust strong { display: block; font-size: 13px; }

.auth-trust span:not(.auth-trust-ico) {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Stacked, the divider moves to the top edge — a left border on a full-width
   row draws a line down the side of the card instead of between the rows. */
@media (max-width: 700px) {
  .auth-trust { grid-template-columns: minmax(0, 1fr); }
  .auth-trust li { padding: 12px 0; }
  .auth-trust li + li { border-left: 0; border-top: 1px solid var(--pink-line); }
  .auth-trust li:first-child { padding-top: 0; }
  .auth-trust li:last-child { padding-bottom: 0; }
}

/* ------------------------------------------- assurances under the sign-in */

.auth-assure {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--pink-line);
}

.auth-assure li { display: flex; gap: 10px; align-items: center; }

.auth-assure-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ee);
  color: var(--pink);
}

.auth-assure-ico .sj-icon { width: 15px; height: 15px; }

.auth-assure strong { display: block; font-size: 13px; }

.auth-assure li > span:last-child > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ foot */

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 4vw, 32px);
  padding-top: 16px;
  border-top: 1px solid var(--pink-line);
  font-size: 12.5px;
  color: var(--muted);
}

.auth-foot-help { display: inline-flex; align-items: center; gap: 8px; }
.auth-foot-ico { display: grid; color: var(--pink); }
.auth-foot-ico .sj-icon { width: 15px; height: 15px; }

/* Centred between the two, and the first to give up its line when the row runs
   out of width. */
.auth-foot-copy { flex: 1 1 auto; text-align: center; }

.auth-foot-social { display: inline-flex; gap: 8px; }

.auth-social {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pink-line);
  background: rgba(255, 255, 255, .7);
  color: var(--pink);
  text-decoration: none;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}

.auth-social:hover { transform: translateY(-2px); background: #fff; border-color: var(--pink-soft); }

/* The platforms' own marks, from the icon font the contact rows use. */
.auth-social span[aria-hidden]::before {
  font-family: 'SJ Icons Brand';
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}

.auth-social.is-facebook span[aria-hidden]::before { content: '\f39e'; }
.auth-social.is-instagram span[aria-hidden]::before { content: '\f16d'; }
.auth-social.is-tiktok span[aria-hidden]::before { content: '\e07b'; }

@media (max-width: 620px) {
  .auth-foot { justify-content: center; text-align: center; }
  .auth-foot-copy { flex: 1 1 100%; }
}

/* The other way in.
 *
 * A rule with a word sitting in it, rather than a heading: this is not a second
 * section of the form, it is the same act reached another way, and giving it a
 * heading would make the page look like it asks for two things. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--pink-line);
}

.auth-google { margin: 0; }

/* Google's mark keeps its own four colours; the ghost button's currentColor
   would otherwise repaint it, which their brand terms do not allow. */
.auth-google .sj-icon { width: 18px; height: 18px; }

.auth-google-note {
  margin: 9px 0 0;
  text-align: center;
}
