/* Shared Boundary sign-in card and signed-in header (ARM-1232), used by /admin, /download and /join.
   Colors and type follow the Aurora app's design tokens (Armor1AI/aurora src/index.css: --action-primary,
   --accent-primary, --base-*, --text-default-*, --font-family), so sign-in and the console are one product (ARM-1407).
   --a1-bg stays the earlier page tint (test_admin.mjs pins it). Tokens are prefixed so they never collide with a
   page's own. The launcher's terminal sign-in page (apps/boundary/control_plane.py) inlines a copy of this file. */
:root {
  --a1-bg: #fafaf8; --a1-surface: #ffffff; --a1-fg: #1a1a1a; --a1-muted: rgba(26, 26, 26, 0.7); --a1-line: #e1e1e2;
  --a1-line-strong: #e1e1e2; --a1-soft: #f4f4f5; --a1-accent: #2563eb; --a1-link: #2563eb;
  --a1-button: #2563eb; --a1-button-hover: #1d4ed8; --a1-accent-soft: #e2f0ff; --a1-bad: #dc2828;
  --a1-good: #157f3c; --a1-shadow: 0px 1.25px 4px 0px rgba(26, 26, 26, 0.08);
  --a1-g-bg: #fff; --a1-g-line: #747775; --a1-g-fg: #1f1f1f;
  --a1-font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --a1-bg: #121110; --a1-surface: #1e1e1e; --a1-fg: #ffffff; --a1-muted: rgba(255, 255, 255, 0.6); --a1-line: #323232;
    --a1-line-strong: #484848; --a1-soft: #2a2a2a; --a1-accent: #60a5fa; --a1-link: #60a5fa;
    --a1-accent-soft: rgba(30, 111, 184, 0.22); --a1-bad: #f87171; --a1-good: #4ade80; --a1-shadow: none;
    --a1-g-bg: #131314; --a1-g-line: #8e918f; --a1-g-fg: #e3e3e3;
  }
}
/* Text on a filled --a1-button, the same in both themes (ARM-1248, used by the admin console). Declared outside the
   :root blocks above, which the launcher's terminal page inlines and keeps identical. */
html { --a1-on-button: #fff; }
.a1-auth [hidden], .a1-header [hidden] { display: none !important; }

/* Signed-out shell: full-height, centered, on a soft background. */
.a1-auth { box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 16px; background: var(--a1-bg); color: var(--a1-fg);
  font: 15px/1.5 var(--a1-font); -webkit-font-smoothing: antialiased; }
.a1-auth.a1-compact { min-height: 0; padding: 48px 16px 32px; }
.a1-auth *, .a1-header * { box-sizing: border-box; }
.a1-brand { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--a1-fg); font-size: 15px;
  font-weight: 400; }
.a1-wordmark { display: block; width: 102px; height: 32px; }
.a1-product { font-size: 20px; font-weight: 600; letter-spacing: -.01em; padding-left: 10px;
  border-left: 1px solid var(--a1-line-strong); line-height: 24px; }
.a1-subhead { margin: 10px 0 24px; color: var(--a1-muted); text-align: center; }
.a1-card { width: 100%; max-width: 400px; background: var(--a1-surface); border: 1px solid var(--a1-line);
  border-radius: 16px; padding: 28px; box-shadow: var(--a1-shadow); overflow-wrap: anywhere; }
.a1-card h2 { font-size: 18px; line-height: 1.3; margin: 0 0 16px; font-weight: 600; letter-spacing: -.01em; }
:where(.a1-card) p { margin: 0 0 16px; }
.a1-muted { color: var(--a1-muted); }
.a1-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin: 0 0 16px;
  background: var(--a1-accent-soft); color: var(--a1-link); }
.a1-icon svg { width: 24px; height: 24px; }

/* Fields */
.a1-field { margin: 0 0 16px; }
.a1-field label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.a1-field input { display: block; width: 100%; font: inherit; color: var(--a1-fg); background: var(--a1-surface);
  border: 1px solid var(--a1-line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.a1-field input:focus { outline: 2px solid var(--a1-accent); outline-offset: 1px; border-color: var(--a1-accent); }
.a1-field input[aria-invalid="true"] { border-color: var(--a1-bad); }
.a1-field-error { color: var(--a1-bad); font-size: 13px; margin: 6px 0 0; }
.a1-field-error:empty { display: none; }
.a1-email-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: -8px 0 16px;
  color: var(--a1-muted); }
.a1-email-line strong { color: var(--a1-fg); font-weight: 500; }

/* Buttons: one filled primary per step; everything else is a text link. */
.a1-auth button, .a1-header button { font: inherit; cursor: pointer; }
.a1-primary { position: relative; display: block; width: 100%; min-height: 44px; padding: 10px 16px; border: 0;
  border-radius: 8px; background: var(--a1-button); color: #fff; font-weight: 600; }
.a1-primary:hover:not(:disabled) { background: var(--a1-button-hover); }
.a1-auth button:focus-visible, .a1-header button:focus-visible { outline: 2px solid var(--a1-accent);
  outline-offset: 2px; }
.a1-auth button:disabled, .a1-header button:disabled { cursor: default; }
.a1-primary:disabled { opacity: .7; }
.a1-primary[aria-busy="true"] { color: transparent; }
.a1-primary[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px;
  height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
  animation: a1-spin .8s linear infinite; }
.a1-link { display: inline; padding: 0; border: 0; background: none; color: var(--a1-link); font-weight: 500;
  text-align: left; }
.a1-link:hover:not(:disabled) { text-decoration: underline; }
.a1-link:disabled { opacity: .6; }
.a1-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
.a1-links.a1-split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
.a1-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--a1-line); color: var(--a1-muted);
  font-size: 14px; }

/* Google's sign-in button: white (dark: #131314), the four-color "G", per Google's branding guidelines. */
.a1-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 10px 16px; border: 1px solid var(--a1-g-line); border-radius: 8px; background: var(--a1-g-bg);
  color: var(--a1-g-fg); font-weight: 500; }
.a1-google svg { width: 18px; height: 18px; flex: none; }
.a1-google:hover:not(:disabled) { box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.a1-google:disabled { opacity: .6; }
.a1-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--a1-muted); font-size: 13px; }
.a1-or::before, .a1-or::after { content: ""; flex: 1; border-top: 1px solid var(--a1-line); }

/* Messages */
.a1-message { margin: 16px 0 0; font-size: 14px; }
.a1-message:empty { display: none; }
.a1-error { color: var(--a1-bad); white-space: pre-wrap; }
.a1-status { color: var(--a1-muted); }
.a1-status.a1-good { color: var(--a1-good); }
.a1-spinner { width: 24px; height: 24px; border: 2px solid var(--a1-line-strong); border-top-color: var(--a1-accent);
  border-radius: 50%; animation: a1-spin .8s linear infinite; }
@keyframes a1-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .a1-spinner, .a1-primary[aria-busy="true"]::after { animation-duration: 2.4s; } }

/* Signed-in header: wordmark, org, email, Sign out. */
.a1-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px;
  background: var(--a1-surface); color: var(--a1-fg); border-bottom: 1px solid var(--a1-line);
  font: 14px/1.45 var(--a1-font); }
.a1-header .a1-wordmark { width: 76px; height: 24px; }
.a1-header .a1-product { font-size: 15px; line-height: 20px; padding-left: 8px; }
.a1-header .a1-brand { gap: 8px; margin-right: auto; }
.a1-account { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0;
  overflow-wrap: anywhere; }
.a1-org { font-weight: 600; }
.a1-org:empty { display: none; }
.a1-email { color: var(--a1-muted); }
.a1-signout { padding: 6px 12px; border: 1px solid var(--a1-line-strong); border-radius: 8px;
  background: transparent; color: var(--a1-fg); }
.a1-signout:hover:not(:disabled) { background: var(--a1-soft); }
.a1-signout:disabled { opacity: .6; }

@media (max-width: 420px) {
  .a1-auth { padding: 24px 16px; justify-content: flex-start; }
  .a1-card { padding: 22px 18px; border-radius: 14px; }
  .a1-header .a1-account { width: 100%; }
  .a1-header .a1-signout { margin-left: auto; }
}
