/* Customer panel: signed-out brand system - design tokens, page layout, brand panel and responsive behaviour.
   Every signed-out view (sign in, create account, forgot password, two-factor, check e-mail, verify, wrong portal)
   and the password reset page share this layout; the form controls live in customer-panel-auth-form.css. */
/* IT4Y_CUSTOMER_AUTH_V2_2026_08_14_START
   Customer-owned, strict-CSP login surface. Logical properties keep the same geometry in left-to-right and
   right-to-left locales. Desktop: brand panel beside the form. Narrow screens: a compact brand band above a card. */

/* Tokens, scoped to the signed-out surface. The --panel/--border/--text/--muted/--accent/--accent-soft
   aliases feed the shared language picker so it matches this surface in both themes. */
.it4lg-scope {
  --au-page: #eef2f8;
  --au-surface: #ffffff;
  --au-surface-2: #f3f6fb;
  --au-border: #d6deea;
  --au-border-strong: #b9c6d8;
  --au-field-border: #7f8da3;
  --au-field-border-hover: #5f6f86;
  --au-text: #0b1527;
  --au-muted: #556579;
  --au-accent: #1763d6;
  --au-accent-soft: #e9f1fe;
  --au-ring: rgba(23, 99, 214, .24);
  --au-navy: #021e59;
  --au-navy-2: #04286e;
  --au-sky: #4ab8f5;
  --au-danger: #b42318;
  --au-danger-soft: #fef3f2;
  --au-danger-line: #fecdca;
  --au-ok: #067647;
  --au-ok-soft: #ecfdf3;
  --au-ok-line: #abefc6;
  --au-info: #175cd3;
  --au-info-soft: #eff8ff;
  --au-info-line: #b2ddff;
  --au-shadow: 0 1px 2px rgba(11, 21, 39, .06), 0 18px 48px -12px rgba(11, 21, 39, .18);
  --au-control-h: 48px;
  --au-field-gap: 18px;
  --au-oauth-gap: 12px;
  --panel: var(--au-surface);
  --border: var(--au-border);
  --text: var(--au-text);
  --muted: var(--au-muted);
  --accent: var(--au-accent);
  --accent-soft: var(--au-accent-soft);
  box-sizing: border-box;
  color: var(--au-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.it4lg-scope *,
.it4lg-scope *::before,
.it4lg-scope *::after {
  box-sizing: border-box;
}
html[data-theme="dark"] .it4lg-scope {
  --au-page: #060d1a;
  --au-surface: #0c1628;
  --au-surface-2: #121f37;
  --au-border: #22324e;
  --au-border-strong: #33476b;
  --au-field-border: #5b6f94;
  --au-field-border-hover: #8ea2c8;
  --au-text: #e9eef7;
  --au-muted: #9fb0c8;
  --au-accent: #6cbcff;
  --au-accent-soft: rgba(108, 188, 255, .12);
  --au-ring: rgba(108, 188, 255, .30);
  --au-danger: #fecaca;
  --au-danger-soft: rgba(127, 29, 29, .28);
  --au-danger-line: rgba(248, 113, 113, .42);
  --au-ok: #a7f3d0;
  --au-ok-soft: rgba(6, 78, 59, .32);
  --au-ok-line: rgba(52, 211, 153, .38);
  --au-info: #bfdbfe;
  --au-info-soft: rgba(30, 64, 175, .24);
  --au-info-line: rgba(96, 165, 250, .38);
  --au-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 56px -16px rgba(0, 0, 0, .6);
}
/* The reset page carries no data-theme attribute and follows the system preference. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .it4lg-scope {
    --au-page: #060d1a;
    --au-surface: #0c1628;
    --au-surface-2: #121f37;
    --au-border: #22324e;
    --au-border-strong: #33476b;
    --au-field-border: #5b6f94;
    --au-field-border-hover: #8ea2c8;
    --au-text: #e9eef7;
    --au-muted: #9fb0c8;
    --au-accent: #6cbcff;
    --au-accent-soft: rgba(108, 188, 255, .12);
    --au-ring: rgba(108, 188, 255, .30);
    --au-danger: #fecaca;
    --au-danger-soft: rgba(127, 29, 29, .28);
    --au-danger-line: rgba(248, 113, 113, .42);
    --au-ok: #a7f3d0;
    --au-ok-soft: rgba(6, 78, 59, .32);
    --au-ok-line: rgba(52, 211, 153, .38);
    --au-info: #bfdbfe;
    --au-info-soft: rgba(30, 64, 175, .24);
    --au-info-line: rgba(96, 165, 250, .38);
    --au-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 56px -16px rgba(0, 0, 0, .6);
  }
}

/* The signed-out page owns its scroll: no forced scrollbar track, and on phones the document grows with the card
   (the panel's global html/body rules keep both at the viewport height for the signed-in shell). */
html:has(.it4lg-scope) {
  height: auto;
  overflow-y: auto;
  scrollbar-gutter: auto;
}
body.it4y-unauth {
  height: auto;
  min-height: 100dvh;
}

/* Page: one column on narrow screens, brand panel + form column from 1024px. */
.it4lg-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--au-page);
}
.it4lg-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding-inline: 16px;
  padding-block-end: 32px;
}

/* Brand band (narrow screens): navy strip with the compact logo and the language picker; the card overlaps it.
   The band never clips (no overflow): the language list opens below the band and over the card, and a clipping band
   would also be scrolled by the browser to reveal the chosen language. The logo arc is drawn inside the band's own
   box as a ring gradient (radius 80vw, centre below the band), so nothing needs clipping. */
.it4lg-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% + 32px);
  margin-inline: -16px;
  padding: 14px 20px 72px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(74, 184, 245, .28), transparent 55%),
    linear-gradient(160deg, var(--au-navy) 0%, var(--au-navy-2) 100%);
}
.it4lg-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80vw at 50% calc(62% + 80vw), transparent calc(80vw - 1.5px),
    rgba(74, 184, 245, .32) calc(80vw - 1px), rgba(74, 184, 245, .32) calc(80vw - .5px), transparent 80vw);
  pointer-events: none;
}
.it4lg-mark {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
}
.it4lg-mark img {
  display: block;
  width: auto;
  height: 50px;
}
.it4lg-topbar .locale-picker {
  position: relative;
  z-index: 2;
}
.it4lg-topbar .locale-trigger {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}
.it4lg-topbar .locale-trigger:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .14);
}
.it4lg-topbar .locale-globe,
.it4lg-topbar .locale-chevron {
  color: rgba(255, 255, 255, .78);
}
.it4lg-topbar .locale-trigger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* The card holds the view. Narrow screens: raised card over the band. */
.it4lg-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin-block-start: -48px;
  padding: 28px 24px;
  border: 1px solid var(--au-border);
  border-radius: 20px;
  background: var(--au-surface);
  box-shadow: var(--au-shadow);
}

/* Brand panel (wide screens). The logo world: navy, the arc of the logo echoed, a faint dot grid. */
.it4lg-aside {
  display: none;
  position: relative;
  overflow: hidden;
  color: #dbe7fa;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(42, 157, 244, .30), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(74, 184, 245, .18), transparent 62%),
    linear-gradient(165deg, #021e59 0%, #03215f 52%, #011441 100%);
}
.it4lg-aside::before {
  content: "";
  position: absolute;
  inset-inline: -48%;
  inset-block-start: calc(100% - 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(74, 184, 245, .26);
  box-shadow: 0 0 120px rgba(42, 157, 244, .14);
  pointer-events: none;
}
.it4lg-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.it4lg-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 480px);
  min-height: 100%;
  margin-inline: auto;
  padding: 64px 48px;
}
.it4lg-logo {
  display: block;
  margin-block-end: 40px;
}
.it4lg-logo img {
  display: block;
  width: 232px;
  max-width: 100%;
  height: auto;
}
.it4lg-aside-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.14;
  text-align: start;
  text-wrap: balance;
}
.it4lg-aside-lead {
  max-width: 40ch;
  margin: 0 0 36px;
  color: rgba(219, 231, 250, .80);
  font-size: 16px;
  line-height: 1.6;
  text-align: start;
  text-wrap: balance;
}
.it4lg-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.it4lg-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e6eefc;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: start;
}
.it4lg-point-icon {
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(74, 184, 245, .30);
  border-radius: 11px;
  background: rgba(74, 184, 245, .12);
  color: #7fd0ff;
}
.it4lg-point-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tablet: centred card on the band, wider gutters. */
@media (min-width: 640px) {
  .it4lg-main {
    padding-inline: 32px;
  }
  .it4lg-topbar {
    width: calc(100% + 64px);
    margin-inline: -32px;
    padding: 20px 32px 96px;
  }
  .it4lg-mark img {
    height: 54px;
  }
  .it4lg-card {
    margin-block-start: -64px;
    padding: 40px 40px 36px;
    border-radius: 24px;
  }
}

/* Desktop: brand panel beside a calm, open form column. The page is exactly one viewport high: the brand panel never
   moves, and only the form column scrolls when a view is taller than the window. The card keeps a fixed distance
   from the top (a function of the window height only), so a message appearing inside it never shifts what is above. */
@media (min-width: 1024px) {
  .it4lg-wrap {
    grid-template-columns: minmax(440px, 5fr) 7fr;
    grid-template-rows: minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .it4lg-aside {
    display: block;
    min-height: 0;
  }
  .it4lg-main {
    justify-content: flex-start;
    min-height: 0;
    padding: clamp(56px, calc((100dvh - 700px) / 2), 160px) 48px 32px;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    background: var(--au-surface);
  }
  .it4lg-topbar {
    position: absolute;
    inset-block-start: 24px;
    inset-inline-end: 32px;
    width: auto;
    margin-inline: 0;
    padding: 0;
    background: none;
  }
  .it4lg-topbar::after,
  .it4lg-mark {
    display: none;
  }
  .it4lg-topbar .locale-trigger {
    border-color: var(--au-border);
    background: var(--au-surface);
    color: var(--au-text);
  }
  .it4lg-topbar .locale-trigger:hover {
    border-color: var(--au-border-strong);
    background: var(--au-surface-2);
  }
  .it4lg-topbar .locale-globe,
  .it4lg-topbar .locale-chevron {
    color: var(--au-muted);
  }
  .it4lg-topbar .locale-trigger:focus-visible {
    outline-color: var(--au-accent);
  }
  .it4lg-card {
    width: min(100%, 420px);
    margin-block-start: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}
@media (min-width: 1440px) {
  .it4lg-wrap {
    grid-template-columns: minmax(560px, 1fr) 1fr;
  }
}

/* Phones: tighter card, comfortable thumb reach. */
@media(max-width:420px) {
  .it4lg-topbar {
    padding-inline: 16px;
  }
  .it4lg-mark img {
    height: 46px;
  }
  .it4lg-topbar .locale-trigger {
    min-height: 44px;
    padding-inline: 10px;
  }
  .it4lg-card {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }
}

/* Windows shorter than 940px (laptops, tablets, landscape phones): every control keeps its 44px target while the gaps
   tighten, so the whole sign-in view fits a 768px-high screen. Taller windows keep the roomier rhythm. */
@media (max-height: 940px) {
  .it4lg-scope {
    --au-control-h: 44px;
    --au-field-gap: 14px;
    --au-oauth-gap: 8px;
  }
  .it4lg-topbar {
    padding-block-end: 64px;
  }
  .it4lg-card {
    margin-block-start: -44px;
  }
}
@media (min-width: 1024px) and (max-height: 940px) {
  .it4lg-card {
    margin-block-start: 0;
  }
  .it4lg-aside-inner {
    padding-block: 40px;
  }
  .it4lg-logo {
    margin-block-end: 28px;
  }
  .it4lg-logo img {
    width: 188px;
  }
  .it4lg-aside-title {
    font-size: clamp(28px, 2.3vw, 34px);
  }
  .it4lg-aside-lead {
    margin-block-end: 24px;
  }
  .it4lg-points {
    gap: 12px;
  }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .it4lg-points {
    display: none;
  }
}

/* Short landscape screens: the band and gaps shrink so the form stays in view. */
@media (max-height: 560px) and (max-width: 1023px) {
  .it4lg-topbar {
    padding-block: 10px 52px;
  }
  .it4lg-card {
    margin-block-start: -36px;
  }
}

/* Slow session answer: the delayed splash (customer-panel-auth.js) without inline styles. */
.it4y-splash-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.it4y-splash-label {
  color: #64748b;
  font: 14px Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Arabic script joins its letters; letter-spacing would break the joins. */
html[dir="rtl"] .it4lg-scope .it4lg-aside-title,
html[dir="rtl"] .it4lg-scope .it4lg-h1,
html[dir="rtl"] .it4lg-scope .it4lg-eyebrow {
  letter-spacing: 0;
}
@media(prefers-reduced-motion:reduce) {
  .it4lg-scope *,
  .it4lg-scope *::before,
  .it4lg-scope *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* IT4Y_CUSTOMER_AUTH_V2_2026_08_14_END */
