/* ==========================================================================
   Auth component layer
   --------------------------------------------------------------------------
   Auth's own controls, on top of what the Style Center provides. The vendored
   bundle already carries .hc-field* and .con-button; this file holds the
   arrangements those do not cover — the loading state the scripts toggle.

   Semantic roles only — no primitives, no raw hex or px. If a value needs a role
   that does not exist, add it upstream in the Style Center rather than inventing
   a literal here.
   ========================================================================== */

/* The loading state signin_validator.js toggles on the Continue button.
   It injects its own CSS for #btn-magic-continue.hc-ld — opacity and cursor,
   both !important — so those two properties here are already overridden on the
   only element that uses the class. This block is kept for any future consumer
   and deliberately does NOT set pointer-events: the script can leave hc-ld
   applied indefinitely (its removal waits on a card-display change that never
   comes if submission was rejected), and a non-clickable Continue button is a
   dead sign-in page. */
.hc-ld {
  opacity: var(--hc-opacity-disabled);
  cursor: not-allowed;
}

/* Restore the focus ring Webflow suppresses on form controls.
   --------------------------------------------------------------------------
   components.css ships:

       .w-input:focus, .w-select:focus { border-color: #3898EC; outline: 0 }

   `outline: 0` is the problem. base.css gives everything a `:focus-visible`
   ring, but `.w-input:focus` (0,2,0) out-specifies `:focus-visible` (0,1,0),
   so every control still carrying `w-input` or `w-select` had NO visible focus
   indicator at all. Measured, not assumed: focusing all 16 controls in turn
   found 8 with `outline-style: none` — the sign-in email field, both Step1
   fields, all four Step2 name/DOB fields, and the country select. That is a
   WCAG 2.4.7 failure on the page every HollaCo sign-in goes through, and it is
   keyboard users who pay for it.

   Restated here at equal specificity in a later stylesheet, so ours wins.
   Outline does not participate in layout, so this moves no box and the
   geometry gate is unaffected.

   TEMPORARY, and self-removing in spirit: Plan 4 strips `w-input`/`w-select`
   along with the Webflow stylesheets, at which point the rule that caused this
   is gone and base.css's `:focus-visible` covers these controls unaided.
   Delete this block then — it is the only place auth deliberately styles a
   Webflow framework class.

   The focus-ring colour is the Style Center's own `--hc-color-focus-ring-default`
   (blue-900, #3b63fb). That is deliberate upstream, not the legacy-blue mix-up
   that Plan 2 hit on the CTA: a focus ring is meant to read as distinct from
   the brand, and this token is themed for both grounds. */
.w-input:focus,
.w-select:focus {
  outline: var(--hc-border-width-md) solid var(--hc-color-focus-ring-default);
  outline-offset: var(--hc-border-width-md);
}

/* #Country needs !important, and this is the documented exception: beating an
   inline style injected by a script we may not edit.

   step2dropdowns.js runs
       c.style.cssText = 'border:none;outline:none;appearance:none;…'
   on the country select to make it borderless with a custom chevron. That
   inline `outline:none` beats the rule above, so the select was the last of
   the 16 controls still focusing invisibly. Nothing short of !important
   reaches it.

   Deliberately narrow: outline only. The script's border/appearance/background
   are its own design and are left alone.

   PLAN 4 / TASK 8 HAZARD: this is keyed to `w-select`, which the strip
   removes. The inline `outline:none` does NOT go away with it — the script
   keeps running — so when Step2 is stripped this rule must be re-keyed onto
   the select's new class or the ring silently disappears again. */
.w-select:focus {
  outline: var(--hc-border-width-md) solid var(--hc-color-focus-ring-default) !important;
}
