/* OAIT Design System 2.1.0 · reference/css/gid-kit.css
   "Sign in with Global ID" (unit c-inputs).

   The design system's rendering of Global ID's portable sign-in kit, at the values of the next kit
   release (C-6). It keeps fixed portable colors and system-ui on purpose, so the button looks the
   same in every product and on every page: it is the one exception to "tokens only", and this is
   the only file allowed raw colors, all inside .oa-gid-kit (canonical §1.8, D-CAI-19, D-BCP-15).
   Never re-point these values to tokens or to a product accent: the button stays orange-marked and
   white or dark under Tamakkan's violet too. Products load the kit files that Global ID releases
   (classes gid-sign-in…); this file draws the same values for reference pages, the kitchen sink,
   templates and prototypes.

   Values (kit v1, with the C-6 changes):
   - Pill, at least 56px tall, 12px × 24px padding, 12px gap, 1px border, 28px logo.
   - Label "Global ID" in system-ui 16px 600, line height 1.5; direction: ltr.
   - Light: #ffffff fill, #221a15 text, #85736a border; hover #fcf1eb.
   - Dark (--dark, on dark grounds): #221a15 fill, #fff8f5 text, #d8c2b8 border; hover #382e29;
     the logo's gray ink becomes #ffffff (C-6).
   - Focus: the family geometry, 3px solid, 2px outside, in fixed #8f4200, or #ffb68a on the dark
     pill (C-6). No motion.
   - --circle: 56 × 56, logo only, never smaller; the button keeps its localized aria-label.

   Implements canonical §1.8, §11 template 2, §13 and D-CAI-19, D-BCP-15, C-6.
   Tokens read: none (fixed portable values by design).
   Classes: .oa-gid-kit (+ --dark, --circle; __logo, __label, __defs).
   The logo is the Global ID mark drawn from one <symbol id="oa-gid-kit-logo"> that the page
   includes once (reference/snippets/inputs.html), built from assets/app-marks/global-id.svg with
   the kit's own 196 192 688 688 crop, so the fingerprint fills the 28px box (the kit is the
   documented exception to the masters' shared frame): its gray strokes follow the logo's color
   (gray, or white on the dark pill) and its arcs stay #f47920. */


.oa-gid-kit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  inline-size: 100%;
  max-inline-size: 100%;
  min-block-size: 56px;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid #85736a;
  border-radius: 9999px;
  background: #ffffff;
  color: #221a15;
  font-family: system-ui, sans-serif;
  font-size: 16px; /* lint-ok: the kit's fixed portable label size (canonical §1.8, D-CAI-19) */
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  direction: ltr;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-gid-kit__logo {
  display: block;
  flex-shrink: 0;
  inline-size: 28px;
  block-size: 28px;
  color: #4c4c4d;
}

.oa-gid-kit__label {
  overflow-wrap: anywhere;
}

.oa-gid-kit--dark {
  border-color: #d8c2b8;
  background: #221a15;
  color: #fff8f5;
}

.oa-gid-kit--dark .oa-gid-kit__logo {
  color: #ffffff;
}

.oa-gid-kit--circle {
  display: inline-flex;
  inline-size: 56px;
  block-size: 56px;
  flex-shrink: 0;
  padding: 12px;
}

/* In a site header the circle takes the size of the header's other controls: 48px, with a 24px
   logo (D-CSN-54), and it has no stroke: the white disc on the bar's darker tone is its shape
   (D-CSN-55). The 1px border stays, transparent, so forced colors still draws the edge. Everywhere
   else the circle stays 56px with its stroke. */
.oa-site-header .oa-gid-kit--circle {
  inline-size: 48px;
  block-size: 48px;
  min-block-size: 48px;
  padding: 11px;
  border-color: transparent;
}

.oa-site-header .oa-gid-kit--circle .oa-gid-kit__logo {
  inline-size: 24px;
  block-size: 24px;
}

/* The kit's hover is a fixed tone, not a state layer (D-CAI-19). Pointer devices only, as every
   hover of the system: on a touch screen a tap would leave the tone behind. */
@media (hover: hover) {
  .oa-gid-kit:not(:disabled):hover {
    background: #fcf1eb;
  }

  .oa-gid-kit--dark:not(:disabled):hover {
    background: #382e29;
  }
}

/* Focus: the family ring geometry in the kit's fixed inks (C-6). [data-demo-focus] shows it on
   documentation pages. */
.oa-gid-kit:is(:focus-visible, [data-demo-focus]) {
  outline: 3px solid #8f4200;
  outline-offset: 2px;
}

.oa-gid-kit--dark:is(:focus-visible, [data-demo-focus]) {
  outline-color: #ffb68a;
}

/* While sign-in starts the button is disabled: its colors stay, only the pointer changes. */
.oa-gid-kit:disabled {
  cursor: default;
}

/* The symbol that every logo uses, included once per page; it takes no space. */
.oa-gid-kit__defs {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

@media (forced-colors: active) {
  .oa-gid-kit:is(:focus-visible, [data-demo-focus]) {
    outline-color: Highlight;
  }
}
