/* One field system for the active app. Baseline measured from the requested login direction.
 * Hidden inputs and checkbox/radio/file/range/color/button types are deliberately excluded.
 * Source Sans Pro and the logo are owned by their existing shared assets. */
:root {
  --field-background:#F4F4F4;
  --field-color:var(--navy);
  --field-border-color:#788290;
  --field-border-width:1px;
  --field-radius:.25rem;
  --field-height:3.125rem;
  --field-padding-block:.625rem;
  --field-padding-inline:.75rem;
  --field-font-size:1.1875rem;
  --field-line-height:1.3;
  --field-focus-color:var(--navy,#0C1423);
  --field-focus-width:2px;
  --field-focus-offset:2px;
  --field-error-color:#A7242A;
  --field-disabled-background:#E9EAEC;
  --field-disabled-color:var(--muted);
}

/* The body type selector ties the base input/focus rule's specificity; this file loads last. */
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),input.auth-input:not(:is([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="button"],[type="submit"],[type="reset"])),select,textarea) {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:var(--field-height);
  padding:var(--field-padding-block) var(--field-padding-inline);
  border:var(--field-border-width) solid var(--field-border-color);
  border-radius:var(--field-radius);
  background:var(--field-background);
  color:var(--field-color);
  font:400 var(--field-font-size)/var(--field-line-height) var(--font);
  caret-color:var(--field-focus-color);
  box-shadow:none;
}
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),input.auth-input:not(:is([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="button"],[type="submit"],[type="reset"])),select,textarea):focus-visible {
  outline:var(--field-focus-width) solid var(--field-focus-color);
  outline-offset:var(--field-focus-offset);
  box-shadow:none;
}
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"]),textarea)::placeholder { color:#6C7078; font-weight:300; opacity:1; }
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),input.auth-input:not(:is([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="button"],[type="submit"],[type="reset"])),select,textarea)[aria-invalid="true"] {
  border-color:var(--field-error-color);
  box-shadow:none;
}
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),input.auth-input:not(:is([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="button"],[type="submit"],[type="reset"])),select,textarea):disabled {
  background:var(--field-disabled-background);
  color:var(--field-disabled-color);
  opacity:1;
  cursor:default;
}
body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),textarea)[readonly] { cursor:default; }
body select { appearance:auto; padding-inline-end:2rem; }
body textarea { min-height:8rem; height:auto; resize:vertical; overflow-wrap:anywhere; }

.auth-field { display:grid; gap:.375rem; min-width:0; }
.auth-field label,.auth-field legend,.auth-form>label,.language-search { color:var(--navy); font:400 1rem/1.3 var(--font); }

/* One integrated password field, including its outer border in the shared minimum height. */
.auth-password {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:stretch;
  gap:0;
  min-width:0;
  max-width:100%;
  min-height:var(--field-height);
  border:var(--field-border-width) solid var(--field-border-color);
  border-radius:var(--field-radius);
  background:var(--field-background);
}
.auth-password>input:not([type="hidden"]) {
  min-height:calc(var(--field-height) - 2 * var(--field-border-width));
  border:0;
  border-radius:var(--field-radius) 0 0 var(--field-radius);
  background:transparent;
  box-shadow:none;
}
.auth-password:has(:focus-visible) { outline:var(--field-focus-width) solid var(--field-focus-color); outline-offset:var(--field-focus-offset); }
.auth-password>input:not([type="hidden"]):focus-visible,.auth-password>.auth-toggle:focus-visible { outline:none; box-shadow:none; }
.auth-password:has(input[aria-invalid="true"]) { border-color:var(--field-error-color); box-shadow:none; }
.auth-password:has(input:disabled) { background:var(--field-disabled-background); }
.auth-password>input:not([type="hidden"])[aria-invalid="true"] { border:0; box-shadow:none; }
.auth-password>.auth-toggle {
  display:block;
  width:3rem;
  min-width:3rem;
  max-width:100%;
  min-height:calc(var(--field-height) - 2 * var(--field-border-width));
  padding:0;
  border:0;
  border-left:1px solid #D4D8DD;
  border-radius:0 var(--field-radius) var(--field-radius) 0;
  color:var(--navy);
  background:transparent url("../images/auth/eye-t6Xh0sZ.svg") no-repeat center / 1.25rem 1.25rem;
  font-size:0;
  line-height:0;
  cursor:pointer;
}
.auth-password>.auth-toggle[aria-pressed="true"] { background-image:url("../images/auth/eye-off-2bx8wv0.svg"); }
.auth-password>.auth-toggle:hover,.auth-password>.auth-toggle:focus-visible { background-color:#E7E9EC; }
.auth-password>.auth-toggle:disabled { background-color:var(--field-disabled-background); cursor:default; opacity:1; }
.auth-password>.auth-toggle[hidden] { display:none; }

@media(forced-colors:active) {
  :root { --field-border-color:ButtonText; --field-focus-color:Highlight; --field-error-color:Mark; }
  .auth-password:has(input[aria-invalid="true"]) { border-style:dashed; box-shadow:none; }
  body :where(input:not([type]),input:is([type="text"],[type="email"],[type="password"],[type="search"],[type="tel"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"],[type="month"],[type="week"]),select,textarea)[aria-invalid="true"] { outline:1px solid Mark; outline-offset:-1px; box-shadow:none; }
  .auth-password>input:not([type="hidden"])[aria-invalid="true"] { outline:none; }
  .auth-password>.auth-toggle { font-size:1rem; line-height:1.3; width:auto; min-width:3rem; padding-inline:.5rem; background-image:none; border-color:ButtonText; }
  .auth-password>.auth-toggle[aria-pressed="true"] { background-image:none; }
}
