/* Matches the AI Navigator sign-in page: white header with the logo and a blue bar, grey page,
   white card with a teal tab line, blue sign-in button. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --bar: #2563eb;
  --teal: #047d95;
  --page: #f9fafb;
  --ink: #111827;
  --label: #304050;
  --muted: #6b7280;
  --line: #89949f;
  --danger: #b91c1c;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --inter: Inter, InterVariable, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); font-family: var(--sys); color: var(--ink); }

.top { display: flex; align-items: center; gap: 16px; padding: 4px 24px; height: 48px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.logo { height: 40px; width: auto; display: block; }
.bar { flex: 1; display: flex; justify-content: flex-end; align-items: center; height: 32px; padding: 0 16px; background: var(--bar); border-radius: 6px; }
.console { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .01em; }

.page { flex: 1; width: 100%; max-width: 448px; margin: 0 auto; padding: 32px 16px 48px; }
h1 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }

.card { background: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); border: 1px solid #f3f4f6; overflow: hidden; font-family: var(--inter); }
.tab { padding: 14px 0 13px; text-align: center; font-weight: 700; color: var(--teal); border-top: 2px solid var(--teal); border-bottom: 1px solid #e5e7eb; }
.card-body { padding: 28px 24px 28px; }

.field { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-size: 16px; color: var(--label); }
input { width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 16px; color: #0d1a26; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
input::placeholder { color: #89949f; }
input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input[aria-invalid="true"] { border-color: var(--danger); }
#org { text-transform: uppercase; }
#org::placeholder { text-transform: none; }
.pw { display: flex; }
.pw input { border-radius: 6px 0 0 6px; }
.pw-toggle { width: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 0 6px 6px 0; background: #fff; color: #0d1a26; cursor: pointer; }
.pw-toggle:hover { background: #f3f4f6; }
.pw-toggle:focus-visible { outline: 2px solid var(--blue); }

.submit { width: 100%; height: 42px; margin-top: 4px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.submit:hover { background: var(--blue-dark); }
.submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.submit[disabled] { cursor: progress; opacity: .8; }
.submit[disabled] span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { display: block; margin: 14px auto 0; padding: 6px 8px; border: 0; background: none; color: var(--teal); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.link:hover { text-decoration: underline; }
.hint { margin: 6px 0 0; font-size: 13px; color: #55607a; }

.alert { margin-bottom: 16px; padding: 10px 12px; border-radius: 6px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: 14px; }
.alert[hidden] { display: none; }
.alert.info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.foot { padding: 14px 24px; background: #fff; border-top: 1px solid #f3f4f6; font-size: 13px; color: #374151; }

@media (max-width: 480px) { .top { padding: 4px 12px; } .card-body { padding: 22px 16px; } }
@media (prefers-reduced-motion: reduce) { .submit[disabled] span::after { animation: none; } }
