/* ==========================================================================
   AUTH-SCREENS.CSS — sign-in / sign-up form, in the landing design system.
   Requires brand-tokens.css. Used by login.html, the auth modal on
   landing.html, and auth-confirm.html.

   What the landing page dictates (screen 9a of the design file):
   Fraunces for the heading at weight 500; 2px corners everywhere; the
   primary button is white (the text colour on ink), turning green on
   hover; hairline dividers; NO gradients, no glow; labels are eyebrows —
   10.5px, uppercase, letter-spaced. The two brand marks stay in colour:
   Google's brand terms do not allow recolouring the G, and a LinkedIn
   mark in the wrong blue reads as a knock-off.

   Room to read: 54px targets, 16px inputs, 26px between groups (2a).
   ========================================================================== */

.vauth { display: flex; flex-direction: column; }
.vauth-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* --- Sign in / Sign up toggle: full width, 44px, the page's frame -------- */
.vauth-toggle {
  display: flex;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  margin-bottom: 26px;
  overflow: hidden;
}
.vauth-toggle button {
  flex: 1 1 50%;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.vauth-toggle button + button { border-left: 1px solid var(--line-strong); }
.vauth-toggle button:hover { color: var(--text); }
.vauth-toggle button[aria-pressed="true"] {
  background: var(--ink-panel);
  color: var(--text);
}

/* --- Collision banner: moved for them, email kept, reason given ---------- */
.vauth-banner {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--signal-green);
  border-radius: 2px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink-raised);
}

/* --- OAuth: LinkedIn and Google identical, nothing ranked ---------------- */
.vauth-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-bottom: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vauth-oauth:hover { border-color: var(--text); }
.vauth-oauth:disabled { opacity: 0.55; cursor: default; }
.vauth-oauth:disabled:hover { border-color: var(--line-strong); }
.vauth-oauth-logo { flex: none; }

/* --- Divider: hairline, no gradient -------------------------------------- */
.vauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 22px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vauth-divider::before,
.vauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- Fields: eyebrow labels, 2px corners, 16px input type ---------------- */
.vauth-form { display: flex; flex-direction: column; }
.vauth-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.vauth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}
.vauth-label-row .vauth-label { margin-bottom: 7px; }
.vauth-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 0.15s ease;
}
.vauth-input::placeholder { color: var(--text-muted); }
.vauth-input:focus { outline: none; border-color: var(--text-dim); }

/* Errors sit under the field that caused them… */
.vauth-field-err {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--signal-red-text);
}
/* …and whole-form problems sit above the buttons. */
.vauth-form-err {
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--signal-red-text);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink-raised);
}
.vauth-form-err .vauth-linkbtn { margin-left: 6px; }

/* --- Lockout: the password field is gone, not disabled ------------------- */
.vauth-lockout {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--ink-raised);
}
.vauth-lockout-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.vauth-lockout-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* --- Actions: primary and magic link the same size, side by side --------- */
.vauth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.vauth-actions--single { grid-template-columns: 1fr; }
.vauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
/* A working button changes its label and dims — no spinner. */
.vauth-btn:disabled { opacity: 0.6; cursor: default; }
.vauth-btn--primary {
  background: var(--text);
  color: var(--ink);
  border: 1px solid var(--text);
}
.vauth-btn--primary:hover:not(:disabled) {
  background: var(--signal-green);
  color: #fff;
  border-color: var(--signal-green);
}
.vauth-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.vauth-btn--ghost:hover:not(:disabled) { border-color: var(--text); }

.vauth-reassure {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}
.vauth-lede {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.vauth-sent-note {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.vauth-sent strong { color: var(--text); }

.vauth-linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vauth-linkbtn:hover { color: var(--text); }
.vauth-forgot { font-size: 11.5px; }
.vauth-back {
  align-self: flex-start;
  margin-bottom: 16px;
  text-decoration: none;
}
.vauth-back:hover { text-decoration: underline; }
.vauth-sent .vauth-linkbtn { margin-top: 14px; align-self: flex-start; }
.vauth-sent { display: flex; flex-direction: column; }
