/* myflask/static/css/auth_signup.css
   === SEARCH: auth_signup_css START 2026-11-15 ===
   Styles added to the three /auth sign-up pages (signup.html, signupRB.html,
   signup_user.html) by the 2026-11-15 audit
   (docs/SIGNUP_ENTRYPOINTS_AUDIT_20261115.md). New rules live here, not in
   the pages' inline <style> blocks (docs/UI_MODERNIZATION_RULES.md, rule 3),
   and take their values from tokens.css.

   Loaded AFTER each page's inline block, so a rule here with the same
   specificity wins. The "completed" (green) circle rules stay in the inline
   blocks: they are more specific than anything below and are not touched.

   Remaining debt: the inline blocks themselves (three copies of the card and
   step styles) still have to move here. */

/* --- Progress row: a step not done yet is neutral, not red ----------------
   Before: label #888 on white (about 3.5:1, under WCAG AA's 4.5:1) and a red
   circle (#b40000 on #ff3333) on a form nobody had typed in yet — the colour
   of an error. --oui-muted is 4.8:1 on white. (Audit findings 11 and 17.) */
.signup-step {
  color: var(--oui-muted, #6b7280);
  text-align: center;   /* a label on two lines ("Phone (optional)") stays centred */
}
.signup-step .circle {
  background: var(--oui-surface, #ffffff);
  color: var(--oui-muted, #6b7280);
  border: 2px solid var(--oui-muted, #6b7280);
}

/* --- Product-skinned pages: the title is a real <h1> on sign-up -----------
   .fam-auth-title / .os-auth-title set their own size, weight, margin and
   colour; only the line height would change with the element. (Finding 16.) */
h1.fam-auth-title,
h1.os-auth-title {
  line-height: 1.5;
}

/* --- Password: the Show button is centred on the field ---------------------
   The field and the button share .signup-password-wrap, which is exactly as
   tall as the field. The button's padding is trimmed so it fits inside. */
.signup-password-wrap .toggle-password-btn,
.signup-password-wrap .toggle-password {
  padding-top: 4px;
  padding-bottom: 4px;
  box-shadow: none;
}

/* On /auth/signupRB the script writes the same rule in red while the field is
   too short: the grey copy steps aside then. */
.signup-password-wrap .is-invalid ~ .signup-password-hint .form-text {
  display: none;
}

/* --- A label starts with a capital, in every language ----------------------
   The French catalog writes "Email" as "e-mail", which is right inside a
   sentence and wrong as the first word of a label. Presentation only: the
   shared catalog entry is used all over the app and is left alone. */
.signupRB-bg .form-label::first-letter,
.signup-step-label::first-letter {
  text-transform: uppercase;
}
.signup-step-label {
  display: block;   /* ::first-letter needs a block; the step is a column anyway */
}

/* --- Phone: as wide as the other fields -------------------------------------
   intl-tel-input wraps the field in an inline-block .iti, so the phone field
   stopped at about three quarters of the card while every other field filled
   it. .signupRB-bg is the container the three sign-up pages share. */
.signupRB-bg .iti {
  display: block;
  width: 100%;
}

/* --- Web address: first part + fixed domain -------------------------------- */
.signup-address-group .input-group-text {
  color: var(--oui-text-2, #1f2937);
  background: var(--oui-surface, #ffffff);
  border-color: var(--oui-border, rgba(0, 0, 0, .14));
}

/* --- Bot check could not load ---------------------------------------------- */
.signup-botcheck-help {
  border-radius: var(--oui-radius-lg, 12px);
}

/* --- Terms link: discreet, but there (owner's wording, 2026-11-15) ---------- */
.signup-terms {
  margin: var(--oui-space-3, 12px) 0 0;
  font-size: .875rem;
  color: var(--oui-muted, #6b7280);
}
.signup-terms a {
  color: inherit;
  text-decoration: underline;
}

/* --- "More products" strip, now BELOW the form (finding 10) ---------------- */
.signup-more-products {
  margin-top: var(--oui-space-5, 24px);
  padding: 10px 14px;
  border: 1px solid var(--oui-border-soft, rgba(0, 0, 0, .06));
  border-radius: var(--oui-radius-lg, 12px);
}

/* === SEARCH: signup_field_status_css START 2026-11-16 ===
   Phones: each field says on its own label whether it is done, and the row
   of circles above the form is not shown (owner, 2026-11-16; markup in
   auth/_signup_field_status.html). From 768px up nothing changes: the row of
   circles stays and the marks are not shown. 768px is where the page's own
   two columns start.
   The label becomes a block (not a flex row): ::first-letter, which gives
   "e-mail" its capital, only works on a block. The mark floats to its right.
   Done = a dark tick on --oui-success (6:1); a white tick would be 2.5:1. */
.signup-field-status {
  display: none;
}
@media (max-width: 767.98px) {
  .signup-steps {
    display: none;
  }
  .signup-label {
    display: block;
  }
  .signup-field-status {
    display: inline-flex;
    float: right;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--oui-muted, #6b7280);
    border-radius: 50%;
    background: var(--oui-surface, #ffffff);
    color: var(--oui-text, #111827);
    font-size: .9rem;
    line-height: 1;
  }
  /* Not done yet: the field's number, as in the circle this mark stands in
     for, so it reads as a step and not as a box to tick. Drawn here, from
     data-step: the mark's own text stays empty (see the template). */
  .signup-field-status::before {
    content: attr(data-step);
    color: var(--oui-muted, #6b7280);
    font-size: .8rem;
    font-weight: 600;
  }
  .signup-field-status.is-done {
    border-color: var(--oui-success, #10b981);
    background: var(--oui-success, #10b981);
  }
  .signup-field-status.is-done::before {
    content: none;
  }
}
/* === SEARCH: signup_field_status_css END 2026-11-16 === */

/* === SEARCH: signup_newer_oui_logo_css START 2026-11-16 ===
   The current Oui.Systems mark in the header of the sign-up pages
   (auth/_signup_brand_logo.html). It is a stacked logo (mark, name, line of
   text), so it needs more height than the 40px script wordmark it replaces
   here; the negative margin keeps the bar itself from growing with it. */
.signup-brand-logo {
  display: block;
  width: auto;
  height: 60px;
  margin: -8px 0;
}
/* === SEARCH: signup_newer_oui_logo_css END 2026-11-16 === */
/* === SEARCH: auth_signup_css END 2026-11-15 === */
