/* Sign-in page for TactStack Agent Fleet. Colors and fonts match src/app/globals.css and src/app/layout.tsx. */
:root {
  --bg: #070707;
  --card: #111111;
  --line: #2c2c2c;
  --fg: #f4f4f4;
  --muted: #b5b5b5;
  --red: #a70101;
  --accent: #2a0808;
  --icons: 0.6;
  --grid: rgba(44, 44, 44, 0.6);
  --shadow: 0 30px 80px -30px #000;
}
:root.light {
  --bg: #ffffff;
  --card: #ffffff;
  --line: #d6d6d6;
  --fg: #111111;
  --muted: #3f3f3f;
  --accent: #f8ecec;
  --icons: 0.45;
  --grid: rgba(214, 214, 214, 0.7);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 16px 40px;
  background: var(--bg);
  color: var(--fg);
  font:
    400 15px/1.55 "IBM Plex Sans",
    system-ui,
    sans-serif;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    #000 10%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    #000 10%,
    transparent 100%
  );
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    38% 32% at 50% 42%,
    rgba(167, 1, 1, 0.18),
    transparent 70%
  );
  pointer-events: none;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  z-index: 2;
}
.skills-mask {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 34% 44% at 50% 48%,
    transparent 45%,
    #000 100%
  );
  mask-image: radial-gradient(
    ellipse 34% 44% at 50% 48%,
    transparent 45%,
    #000 100%
  );
}
.skills {
  position: absolute;
  left: 0;
  right: 0;
  top: -520px;
  bottom: 0;
  background: url(/_gate/skills-bg.svg?v=2) 0 0/520px 520px repeat;
  opacity: var(--icons);
  animation: drift 130s linear infinite;
}
@keyframes drift {
  to {
    transform: translateY(520px);
  }
}
.brand,
.card,
.foot {
  position: relative;
  z-index: 1;
}
.brand img {
  display: block;
}
.logo-dark {
  height: 36px;
  width: auto;
}
.logo-light {
  display: none !important;
  height: 84px;
  width: auto;
  margin: -18px 0;
}
:root.light .logo-dark {
  display: none;
}
:root.light .logo-light {
  display: block !important;
}
.card {
  width: 100%;
  max-width: 420px;
  padding: 36px 34px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--red);
  margin-bottom: 22px;
  box-shadow: 0 0 36px -8px rgba(167, 1, 1, 0.8);
}
.badge svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    500 12px/1 "Oswald",
    system-ui,
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}
h1 {
  font:
    600 30px/1.1 "Oswald",
    system-ui,
    sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.lead {
  color: var(--muted);
  margin-top: 12px;
}
.btn {
  margin-top: 28px;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font:
    600 15px/1 "IBM Plex Sans",
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    filter 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  filter: brightness(1.18);
  box-shadow: 0 10px 30px -12px rgba(167, 1, 1, 0.9);
}
.btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.g {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.g svg {
  width: 14px;
  height: 14px;
}
.note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.note svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  stroke: var(--red);
}
.ref {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font:
    500 11px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
  text-align: center;
  word-break: break-all;
}
.foot {
  font:
    500 11px/1.6 "Oswald",
    system-ui,
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.foot b {
  color: var(--fg);
  font-weight: 600;
}
@media (max-width: 480px) {
  .card {
    padding: 30px 22px 24px;
  }
  h1 {
    font-size: 26px;
  }
  .logo-dark {
    height: 32px;
  }
  .skills-mask {
    -webkit-mask-image: linear-gradient(
      #000 0,
      #000 14%,
      transparent 30%,
      transparent 78%,
      #000 92%
    );
    mask-image: linear-gradient(
      #000 0,
      #000 14%,
      transparent 30%,
      transparent 78%,
      #000 92%
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .skills {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
