/* ---------------------------------------------------------------------------
   Board meetings sign-in.

   Two panes on a desktop: the brand side in the primary colour, the form on
   white. Below 820px the brand pane is dropped rather than stacked — it is
   decorative, and stacking it pushes the form under the fold on a phone.
   --------------------------------------------------------------------------- */

body.signin { background: var(--bg); margin: 0; }

.signin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

/* ---------- brand pane ---------- */
.signin-brand {
  background: var(--masthead-bg);
  color: var(--masthead-ink);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
/* The one deliberate flash of red, as a hairline down the join. */
.signin-brand::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 3px; background: var(--masthead-accent);
}
.signin-brand .brand-mark { align-self: flex-start; }
.brand-copy { max-width: 30ch; }
.brand-copy h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: .9rem;
}
.brand-copy p { font-size: .95rem; line-height: 1.65; color: var(--masthead-ink-muted); margin: 0; }
.brand-foot {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--masthead-ink-muted);
}

/* ---------- form pane ---------- */
.signin-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.signin-card { width: 100%; max-width: 380px; }

/* Shown only when the brand pane is hidden, so the page still identifies
   itself on a phone. */
.signin-mark { display: none; margin-bottom: 1.6rem; }
.signin-mark .word { font-size: 1.35rem; font-weight: 700; color: var(--accent); display: block; }
.signin-mark .tag {
  font-size: .55rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--garnet);
}

.signin-card h1 { font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: .3rem; }
.signin-sub { font-size: .87rem; color: var(--ink-muted); margin: 0 0 1.5rem; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 4.2rem; }
.password-toggle {
  position: absolute; top: 50%; right: .55rem; transform: translateY(-50%);
  background: none; border: none; padding: .25rem .4rem;
  font-size: .76rem; font-weight: 600; color: var(--accent);
  border-radius: var(--radius-sm);
}
.password-toggle:hover { background: var(--accent-soft); }

.signin-wide {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .4rem;
}
/* On the filled button the ring has to read against the primary colour. */
.signin-wide .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }

.signin-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
}
.signin-links a { color: var(--accent); font-weight: 500; }
.signin-links a:hover { text-decoration: underline; }

.signin-foot { margin-top: 2rem; font-size: .75rem; color: var(--ink-faint); }

@media (max-width: 820px) {
  .signin-shell { grid-template-columns: 1fr; }
  .signin-brand { display: none; }
  .signin-mark { display: block; }
  .signin-main { justify-content: flex-start; padding-top: 3rem; }
}
