/* Customer panel: signed-out form controls - card heading, fields, password toggle, buttons, provider sign-in,
   messages and the card footer. Tokens and layout come from customer-panel-auth.css. Selectors carry the
   .it4lg-scope prefix so the panel's global form rules never restyle these controls. */

/* Heading: eyebrow or icon tile, title, supporting line. */
.it4lg-scope .it4lg-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--au-accent-soft);
  color: var(--au-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.3;
}
.it4lg-scope .it4lg-icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: 20px;
  border: 1px solid color-mix(in srgb, var(--au-accent) 22%, transparent);
  border-radius: 16px;
  background: var(--au-accent-soft);
  color: var(--au-accent);
}
.it4lg-scope .it4lg-icon-tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.it4lg-scope .it4lg-h1 {
  margin: 0 0 8px;
  color: var(--au-text);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-align: start;
}
.it4lg-scope .it4lg-sub {
  margin: 0 0 24px;
  color: var(--au-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

/* Messages: errors, confirmations, information and the pending-purchase note. */
.it4lg-scope .it4lg-msg:empty {
  display: none;
}
.it4lg-scope .it4lg-msg {
  margin-block: 0 18px;
}
.it4lg-scope .it4lg-msg .msg,
.it4lg-scope .it4lg-err,
.it4lg-scope .it4lg-buy {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--au-info-line);
  border-radius: 12px;
  background: var(--au-info-soft);
  color: var(--au-info);
  font-size: 14px;
  line-height: 1.5;
  text-align: start;
}
.it4lg-scope .it4lg-err,
.it4lg-scope .it4lg-msg .error {
  border-color: var(--au-danger-line);
  background: var(--au-danger-soft);
  color: var(--au-danger);
}
.it4lg-scope .it4lg-msg .ok {
  border-color: var(--au-ok-line);
  background: var(--au-ok-soft);
  color: var(--au-ok);
}
/* The Plan -> Account -> Payment steps (customer-panel-buy-summary.js) above the sign-up and sign-in forms and on the order
   page, where the signed-out tokens are absent and the panel tokens apply; then the order summary of a pending purchase. */
.it4lg-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--au-muted, var(--muted));
  font-size: 13px;
}
.it4lg-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.it4lg-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 20px;
  block-size: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.it4lg-step.is-done,
.it4lg-step.is-current {
  color: var(--au-info, var(--accent));
  font-weight: 650;
}
.it4lg-step.is-current .it4lg-step-n {
  background: var(--au-info, var(--accent));
  color: #fff;
}
.it4lg-scope .it4lg-buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.it4lg-scope .it4lg-buy-change {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
}
.it4lg-scope .it4lg-buy-line {
  margin: 0;
  color: var(--au-text);
  font-weight: 650;
}
.it4lg-scope .it4lg-buy-note {
  margin: 6px 0 0;
  font-size: 13px;
}
.it4lg-scope .it4lg-buy {
  margin-block-end: 18px;
}
.it4lg-scope .it4lg-msg a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
}

/* Fields. */
.it4lg-scope .it4lg-field {
  display: grid;
  gap: 8px;
  margin-block-end: var(--au-field-gap);
  text-align: start;
}
.it4lg-scope .it4lg-field > label,
.it4lg-scope .it4lg-label-row > label {
  color: var(--au-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.it4lg-scope .it4lg-field input {
  width: 100%;
  min-height: var(--au-control-h);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--au-field-border);
  border-radius: 12px;
  outline: 0;
  background: var(--au-surface);
  box-shadow: 0 1px 2px rgba(11, 21, 39, .04);
  color: var(--au-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.it4lg-scope .it4lg-field input::placeholder {
  color: var(--au-muted);
  opacity: 1;
}
.it4lg-scope .it4lg-field input:hover {
  border-color: var(--au-field-border-hover);
}
.it4lg-scope .it4lg-field input:focus,
.it4lg-scope .it4lg-field input:focus-visible {
  border-color: var(--au-accent);
  outline: 0;
  box-shadow: 0 0 0 4px var(--au-ring);
}
.it4lg-scope .it4lg-field input:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.it4lg-scope .it4lg-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--au-text);
  -webkit-box-shadow: 0 0 0 1000px var(--au-surface) inset;
  caret-color: var(--au-text);
}
#li-email,
#fg-email,
#su-email {
  direction: ltr;
  text-align: left;
}
.it4lg-scope .it4lg-code {
  min-height: 60px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .35em;
  text-align: center;
  direction: ltr;
}
.it4lg-scope .it4lg-hint {
  margin: -8px 0 18px;
  color: var(--au-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: start;
}

/* Password field with its show/hide toggle (an eye icon pair switched by aria-pressed). */
.it4lg-scope .it4lg-pw {
  position: relative;
}
.it4lg-scope .it4lg-pw input {
  padding-inline-end: 52px;
}
.it4lg-scope .it4lg-eye {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  background: transparent;
  color: var(--au-muted);
  cursor: pointer;
}
.it4lg-scope .it4lg-eye:hover {
  background: var(--au-surface-2);
  color: var(--au-text);
}
.it4lg-scope .it4lg-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.it4lg-scope .it4lg-eye .it4lg-eye-hide,
.it4lg-scope .it4lg-eye[aria-pressed="true"] .it4lg-eye-show {
  display: none;
}
.it4lg-scope .it4lg-eye[aria-pressed="true"] .it4lg-eye-hide {
  display: block;
}
.it4lg-scope .it4lg-caps {
  display: none;
  margin-block-start: 2px;
  color: #b54708;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
html[data-theme="dark"] .it4lg-scope .it4lg-caps {
  color: #fdb022;
}

/* A label with its companion link on the same row (Password ... Forgot password?). */
.it4lg-scope .it4lg-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 44px;
  margin-block: -12px -8px;
}
.it4lg-scope .it4lg-label-row .it4lg-forgot {
  min-width: 44px;
  margin-inline-end: -4px;
  justify-content: flex-end;
  font-size: 13.5px;
}

/* Remember me and forgotten password. */
.it4lg-scope .it4lg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin: -6px 0 16px;
}
.it4lg-scope .it4lg-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--au-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.it4lg-scope .it4lg-remember input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--au-accent);
}
.it4lg-scope .it4lg-forgot {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--au-accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.it4lg-scope .it4lg-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons: primary action and provider sign-in. */
.it4lg-scope .it4lg-btn,
.it4lg-scope .it4lg-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--au-control-h);
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.it4lg-scope .it4lg-btn {
  min-height: calc(var(--au-control-h) + 2px);
  border: 1px solid #1257c4;
  background: linear-gradient(180deg, #1f6be0 0%, #1257c4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px -8px rgba(23, 99, 214, .6);
  color: #ffffff;
}
.it4lg-scope .it4lg-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #195fd0 0%, #0f4cb0 100%);
  text-decoration: none;
}
.it4lg-scope .it4lg-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.it4lg-scope .it4lg-btn:disabled {
  opacity: .72;
  cursor: wait;
}
.it4lg-scope .it4lg-oauth {
  margin-block-end: var(--au-oauth-gap);
  border: 1px solid var(--au-field-border);
  background: var(--au-surface);
  box-shadow: 0 1px 2px rgba(11, 21, 39, .05);
  color: var(--au-text);
}
.it4lg-scope .it4lg-oauth:hover {
  border-color: var(--au-field-border-hover);
  background: var(--au-surface-2);
}
.it4lg-scope .it4lg-provider-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.it4lg-scope .it4lg-btn:focus-visible,
.it4lg-scope .it4lg-oauth:focus-visible,
.it4lg-scope .it4lg-eye:focus-visible,
.it4lg-scope .it4lg-forgot:focus-visible,
.it4lg-scope .it4lg-foot a:focus-visible,
.it4lg-scope .it4lg-remember input:focus-visible {
  outline: 3px solid var(--au-accent);
  outline-offset: 2px;
}

/* Provider area: the provider buttons and the divider. Its height is reserved while the provider list is still on its
   way (is-pending), so nothing below moves. The reservation is two buttons with their gaps plus the 13px divider, the
   same box the final area has; the space below the area is its own margin, so both states end at the same line. */
.it4lg-scope .it4lg-oauth-area {
  display: flow-root;
}
.it4lg-scope .it4lg-oauth-area:not(:empty),
.it4lg-scope .it4lg-oauth-area.is-pending {
  margin-block-end: calc(var(--au-field-gap) + 4px);
}
.it4lg-scope .it4lg-oauth-area.is-pending {
  min-height: calc(2 * (var(--au-control-h) + var(--au-oauth-gap)) + 13px);
}
.it4lg-scope .it4lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--au-muted);
  font-size: 13px;
  line-height: 1;
}
.it4lg-scope .it4lg-divider span {
  flex: 1;
  height: 1px;
  background: var(--au-border);
}
.it4lg-scope .it4lg-divider b {
  font-weight: 500;
}

/* Footer of the card and the encryption note under it. */
.it4lg-scope .it4lg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  margin-block-start: 24px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--au-border);
  color: var(--au-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.it4lg-scope .it4lg-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  color: var(--au-accent);
  font-weight: 650;
  text-decoration: none;
}
.it4lg-scope .it4lg-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.it4lg-scope .it4lg-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 460px);
  margin: 22px 0 0;
  color: var(--au-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.it4lg-scope .it4lg-secure svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hidden anti-bot field and the session refresh button of the expiry toast. */
.it4lg-hp {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.it4lg-session-refresh {
  margin-inline-start: 8px;
}

/* Right-to-left: provider marks keep their drawn orientation; labels isolate their own direction. */
html[dir="rtl"] .it4lg-provider-icon {
  direction: ltr;
}
html[dir="rtl"] .it4lg-oauth span {
  unicode-bidi: isolate;
}

/* Short windows: the card footer and the encryption note tighten with the rest of the view (see customer-panel-auth.css). */
@media (max-height: 940px) {
  .it4lg-scope .it4lg-foot {
    margin-block-start: 16px;
    padding-block-start: 6px;
  }
  .it4lg-scope .it4lg-secure {
    margin-block-start: 14px;
  }
  .it4lg-scope .it4lg-sub {
    margin-block-end: 18px;
  }
  .it4lg-scope .it4lg-eyebrow {
    margin-block-end: 12px;
  }
}

/* Sign-in view only: staff accounts belong to the admin portal of the same environment. */
.it4lg-scope .it4lg-staff-hint {
  margin: 8px 0 0;
  color: var(--au-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.it4lg-scope .it4lg-staff-hint a {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 4px;
  color: var(--au-accent);
  font-weight: 600;
  text-decoration: none;
  unicode-bidi: isolate;
  direction: ltr;
}
.it4lg-scope .it4lg-staff-hint a:hover {
  text-decoration: underline;
}
.it4lg-scope .it4lg-staff-hint a:focus-visible {
  outline: 3px solid var(--au-accent);
  outline-offset: 2px;
}
.ord-steps .it4lg-steps {
  margin: 0 0 14px;
}
