/* Sign-in pages of the Workify360 Focus authorization server, in the look of workify360.com (owner request Y37): white
   page, Inter, black primary buttons, white secondary buttons with a zinc border, zinc inputs with a black focus ring,
   8 px corners, one ~400 px column, a minimal zinc-50 footer; dark mode on zinc-950 with white primary buttons.
   Own resources only: this server serves the fonts below (`pages.rs` puts their content-hashed names in). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-ext-wght.34b9c504ca.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-wght.3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The website's palette (zinc), light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --field: #a1a1aa;
  --field-bg: #ffffff;
  --surface: #fafafa;
  --primary: #000000;
  --primary-fg: #ffffff;
  --primary-hover: #27272a;
  --secondary-hover: #fafafa;
  --ring: #18181b;
  --logo: #111111;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --ok: #047857;
  --warn: #92400e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --fg: #fafafa;
    --muted: #a1a1aa;
    --line: #27272a;
    --line-soft: #18181b;
    --field: #52525b;
    --field-bg: #09090b;
    --surface: #18181b;
    --primary: #ffffff;
    --primary-fg: #09090b;
    --primary-hover: #e4e4e7;
    --secondary-hover: #18181b;
    --ring: #fafafa;
    --logo: #fafafa;
    --danger: #f87171;
    --danger-bg: #2a1215;
    --danger-line: #7f1d1d;
    --ok: #34d399;
    --warn: #fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

/* Header: the website's logo mark and wordmark, a link to workify360.com. */
.site-header { border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.site-header .bar { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.brand .logo { width: 32px; height: 32px; flex: 0 0 auto; color: var(--logo); }

/* One centred column, no card. */
main.auth { flex: 1 0 auto; width: 100%; max-width: 432px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 24px; text-align: center; overflow-wrap: anywhere; }
p { margin: 0 0 16px; }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; }

a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field); }
a:hover { text-decoration-color: currentColor; }

/* Fields. */
label { display: block; font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text], input[type=tel], select {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--fg); background: var(--field-bg); border: 1px solid var(--field); border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--muted); }
input[type=email]:hover, input[type=password]:hover, input[type=text]:hover, input[type=tel]:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring); }
input[aria-invalid=true] { border-color: var(--danger); }
input[aria-invalid=true]:focus { box-shadow: 0 0 0 1px var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; margin: 20px 0 0; cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.field-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
form .muted { margin: 6px 0 0; }

/* Buttons and button links: 44 px tap targets, 8 px corners. */
button, a.button {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin: 24px 0 0;
  padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; text-align: center;
  text-decoration: none; color: var(--primary-fg); background: var(--primary); border: 1px solid var(--primary);
  border-radius: 8px; cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
button:hover, a.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button + button { margin-top: 12px; }
button.secondary, a.button.secondary { color: var(--fg); background: var(--bg); border-color: var(--line); }
button.secondary:hover, a.button.secondary:hover { background: var(--secondary-hover); border-color: var(--field); }
button[disabled], button[disabled]:hover { color: var(--muted); background: var(--surface); border-color: var(--line); cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: none; }

/* Messages. */
.error { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.notice { color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.links { margin: 24px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.links a { font-weight: 500; }

/* "Or continue with" and the sign-in alternatives (social providers, company SSO). */
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1 1 0; border-top: 1px solid var(--line); }
.alternatives a.button { margin-top: 12px; }
.alternatives .divider + a.button { margin-top: 16px; }
a.button.social .icon { width: 20px; height: 20px; flex: 0 0 auto; }
/* Sign in with Apple uses the same outlined style as the other providers (the Human Interface Guidelines allow a custom
   button of equal size and prominence): a black or white filled button looked like the primary button next to it. */

/* Organization choice, summaries, MFA, the connection test and the consent page. */
.org { border-top: 1px solid var(--line); padding-top: 4px; }
.org:first-of-type { border-top: 0; }
.org button { margin-top: 12px; justify-content: flex-start; text-align: left; }
.org .muted { margin: 6px 0 0; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; overflow-wrap: anywhere; }
dl.summary code { font-size: 13px; }
.qr { text-align: center; margin: 8px 0; }
.qr img { background: #ffffff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.secret code, ol.codes code { font-size: 15px; letter-spacing: 0.04em; }
.secret { text-align: center; overflow-wrap: anywhere; }
ol.codes { columns: 2; margin: 0 0 16px; padding-left: 22px; }
ol.codes li { margin: 4px 0; }
ul.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
ul.checks li { margin: 6px 0; }
ul.checks li.ok { color: var(--ok); }
ul.checks li.fail { color: var(--danger); }
ul.checks li.warn { color: var(--warn); }
.client { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.client p { margin: 0; overflow-wrap: anywhere; }
.client-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
fieldset.access { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px 12px; margin: 0 0 16px; }
fieldset.access legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
fieldset.access .check { margin-top: 10px; }
ul.rules { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.5; }

/* The sign-up page of ad traffic (`marketing=1`): the website's hero next to the form, its zinc-900 to blue-950
   gradient and blue-to-cyan highlight, light text in both colour schemes. One column on phones (the pitch above the
   form, without its feature list), two from 960 px. */
.pitch-layout { flex: 1 0 auto; width: 100%; }
.pitch-layout main.auth { flex: none; }
.pitch { margin: 0; padding: 32px 16px 28px; color: #e4e4e7; background: linear-gradient(135deg, #18181b 0%, #18181b 45%, #172554 100%); }
.pitch-badge { display: inline-block; margin: 0 0 16px; padding: 4px 14px; font-size: 13px; font-weight: 500; color: #60a5fa; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 999px; }
.pitch h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: #ffffff; }
.pitch-highlight { display: block; color: #60a5fa; background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pitch-lead { margin: 0; font-size: 16px; color: #d4d4d8; }
.pitch-points { display: none; list-style: none; margin: 28px 0 0; padding: 0; }
.pitch-points li { position: relative; margin: 0 0 14px; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #d4d4d8; }
.pitch-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 999px; background: rgba(96, 165, 250, 0.2); box-shadow: inset 0 0 0 5px #172554; border: 2px solid #60a5fa; box-sizing: border-box; }
.pitch-points strong { color: #ffffff; }
.pitch-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 13px; color: #d4d4d8; }
.pitch-facts li::before { content: "\2713"; margin-right: 6px; color: #60a5fa; }
@media (min-width: 960px) {
  .pitch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 432px; gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
  .pitch-layout main.auth { padding: 0; }
  .pitch { padding: 48px 40px; border-radius: 16px; }
  .pitch h2 { font-size: 40px; }
  .pitch-lead { font-size: 17px; }
  .pitch-points { display: block; }
}

/* Footer: the languages, as quiet as the website's. */
.site-footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 12px 16px; font-size: 13px; color: var(--muted); text-align: center; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer a[aria-current=true] { color: var(--fg); font-weight: 500; }

@media (min-width: 640px) {
  .site-header .bar { padding: 0 24px; }
  main.auth { padding-top: 64px; }
  h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
