/* The approved sign-in layout; field feedback and menus share workbench primitives. */
@font-face {
  font-family: "Arhix Brand";
  src: url("/assets/fonts/Inter_18pt-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: block;
}
[data-ui-surface="authentication"] {
  position: fixed;
  inset: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  background: var(--arhix-surface-raised);
  color: var(--arhix-paper-ink);
  font-size: 14px;
  line-height: 1.5;
}
[data-ui-surface="authentication"] .authentication__form [hidden],
[data-ui-surface="authentication"] [hidden] { display: none; }
.authentication__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; }
.authentication__logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  width: 8.4em;
  aspect-ratio: 3;
  padding: 0 0.56em 0.32em;
  background: var(--arhix-brand-red);
  color: var(--arhix-paper);
  font: 900 25px/1 "Arhix Brand", sans-serif;
  letter-spacing: -0.045em;
}
.authentication__language { position: relative; flex-shrink: 0; }
.authentication__language > button { display: flex; align-items: center; gap: 7px; min-width: 115px; min-height: 32px; padding-inline: 10px; font-size: 12px; }
.authentication__language [data-auth-language-label] { flex: 1; text-align: left; }
.authentication__language > button > svg { width: 14px; height: 14px; color: var(--arhix-ink-muted); }
.authentication__language > .menu { position: absolute; top: calc(100% + var(--arhix-space-gap)); right: 0; width: 100%; }
.authentication__main { min-width: 0; display: grid; place-items: center; padding: 32px 24px 64px; }
.authentication__form { position: relative; width: min(100%, 428px); min-width: 0; }
.authentication__form h1 { margin: 0 0 50px; text-align: center; font-family: "Arhix Inter Bold", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
.authentication__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; }
.authentication__form label { margin: 0 0 7px; font-size: 13px; line-height: 20px; }
.authentication__form [data-ui-field] { min-height: 42px; border-radius: 7px; padding-inline: 11px; font-size: 13px; }
.authentication__form [data-ui-field] + label { margin-top: 20px; }
.authentication__form [data-ui-field] > input { min-height: 40px; font-size: 13px; }
[data-ui-surface="authentication"] .authentication__form [data-ui-field]:has(input:autofill) {
  background: var(--arhix-accent-tint);
  border-color: transparent;
  box-shadow: none;
}
[data-ui-surface="authentication"] .authentication__form input:autofill {
  box-shadow: inset 0 0 0 1000px var(--arhix-accent-tint);
  -webkit-text-fill-color: var(--arhix-paper-ink);
  caret-color: var(--arhix-paper-ink);
}
.authentication__form [data-auth-eye] { width: 40px; height: 40px; margin-right: -10px; background: transparent; color: var(--arhix-ink-muted); }
.authentication__form [data-auth-eye] svg { width: 18px; height: 18px; }
.authentication__form [data-auth-submit],
.authentication__form [data-auth-google],
.authentication__form [data-auth-retry] { min-height: 42px; width: 100%; border-radius: 7px; font-size: 13px; line-height: 20px; cursor: pointer; }
[data-ui-surface="authentication"] [data-auth-submit] { margin-top: 38px; background: var(--arhix-paper-ink); color: var(--arhix-paper); }
[data-ui-surface="authentication"] [data-auth-submit]:hover:not(:disabled) { background: var(--arhix-ink-active); }
[data-ui-surface="authentication"] [data-auth-submit]:disabled { background: var(--arhix-ink-muted); color: var(--arhix-paper); }
.authentication__form [data-auth-google] { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 28px; }
.authentication__form [data-auth-google] svg { width: 18px; height: 18px; }
.authentication__status { margin: 16px 0 0; color: var(--arhix-ink-muted); line-height: 1.4; }
.authentication__status:empty { display: none; }
.authentication__status[data-error="true"] { color: var(--arhix-status-error); }
.authentication__footer { padding: 20px 28px 24px; color: var(--arhix-ink-muted); font-size: 12px; }
@media (min-width: 601px) and (max-height: 820px) {
  .authentication__header { padding: 20px 28px; }
  .authentication__main { padding: 16px 24px 24px; }
  .authentication__form h1 { margin-bottom: 34px; }
  [data-ui-surface="authentication"] [data-auth-submit] { margin-top: 28px; }
  .authentication__footer { padding: 12px 28px 16px; }
}
@media (max-width: 600px) {
  .authentication__header { padding: 24px; }
  .authentication__main { padding: 32px 24px 40px; }
  .authentication__form h1 { margin-bottom: 34px; }
  .authentication__form [data-ui-field],
  .authentication__form [data-auth-eye],
  .authentication__form [data-auth-submit] { min-height: 46px; }
  .authentication__language .menu__item { min-height: 40px; }
  .authentication__language > button { min-height: 40px; }
  [data-ui-surface="authentication"] [data-auth-submit] { margin-top: 30px; font-size: 14px; }
  .authentication__footer { padding: 20px 24px; }
}
@media (max-width: 380px) {
  .authentication__header { padding: 20px; gap: 10px; }
  .authentication__logo { font-size: 20px; }
  .authentication__main { padding-inline: 20px; }
  .authentication__form h1 { font-size: 21px; }
  .authentication__language > button { gap: 5px; padding-inline: 8px; font-size: 11px; }
}
@media (max-width: 340px) {
  .authentication__logo { font-size: 17px; }
}
.authentication__form [data-auth-name-field] { margin-bottom: 20px; }
.authentication__form [data-auth-password-field] { margin-top: 20px; }
.authentication__form [data-auth-name-field] > label,
.authentication__form [data-auth-password-field] > label { display: block; }
.authentication__form [data-auth-provider] > hr { margin: 14px 8px; }
.authentication__form [data-auth-google] { margin-top: 0; }
.authentication__intro { color: var(--arhix-ink-muted); text-align: center; margin: -28px 0 32px; font-size: 14px; line-height: 1.6; }
.authentication__links { margin-top: 36px; text-align: center; font-size: 13px; }
.authentication__links [data-auth-signin-links] { display: grid; gap: 10px; justify-items: center; }
.authentication__links button,
.authentication__legal button { padding: 0; background: transparent; color: inherit; border: 0; border-bottom: 1px dotted var(--arhix-ink-muted); font: inherit; line-height: inherit; cursor: pointer; }
.authentication__legal { margin: 20px 0 0; font-size: 12px; line-height: 1.7; color: var(--arhix-ink-muted); text-align: center; }
.authentication__legal button:disabled { cursor: default; }
@media (min-width: 601px) and (max-height: 820px) {
  .authentication__links { margin-top: 26px; }
  .authentication__legal { margin-top: 16px; }
}
@media (max-width: 600px) {
  .authentication__links { margin-top: 28px; font-size: 14px; }
  .authentication__links [data-auth-signin-links] { gap: 14px; }
  .authentication__intro { margin-top: -14px; }
}
