/* ==========================================================================
   Activity Tracker — Sign in
   Figma: 7qX4I0Mwfz3u88CZONl46r, node 10:4 ("01a Sign in")

   Deliberately standalone rather than extending ../css/styles.css. That sheet
   is the cyan/glassmorphism dashboard theme; this screen is the warm-monochrome
   neobrutalist set, and the two share no tokens beyond the font stack. Importing
   it would mean overriding almost every value it sets.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@500;700;800;900&display=swap');

:root {
  --background: #121311;
  --secondary-background: #181a19;
  --main: #e5e2d9;
  --foreground: #e6e6e6;
  --border: #000000;
  --bg-input: #1f1f1f;
  --bg-chip: rgba(229, 226, 217, 0.06);
  --text-muted: #a8a69d;
  --text-dim: #75736b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', sans-serif;

  /* The hard offset shadow is the whole look — no blur, no spread, pure black. */
  --shadow-sm: 2px 2px 0 0 var(--border);
  --shadow-md: 3px 3px 0 0 var(--border);
  --shadow-lg: 6px 6px 0 0 var(--border);
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 32px 20px;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* --- Brand ---------------------------------------------------------------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* No tile, border or hard shadow here: the render has its own lighting and
   silhouette, and boxing it would fight both. It is cut out to transparency so
   it sits straight on the page background. */
.brand-mark {
  width: 280px;
  max-width: 100%;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 1px;
}

/* --- Card ----------------------------------------------------------------- */

.auth-main {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 26px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--secondary-background);
  box-shadow: var(--shadow-lg);
}

.tabs {
  display: flex;
  gap: 10px;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  flex: 1 0 0;
  min-width: 0;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-chip);
  box-shadow: var(--shadow-md);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.btn--primary {
  background: var(--main);
  color: var(--background);
}

.btn--block {
  width: 100%;
  flex: none;
}

/* Press travels along the shadow offset so the button meets the surface. */
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* --- Fields --------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  line-height: 12px;
  color: var(--text-dim);
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
}

/* The design shows the username field mid-entry with a cream border. That is
   the focus state, not a property of that one field. */
.field input:focus {
  outline: none;
  border-color: var(--main);
}

.field input:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}

/* --- Errors --------------------------------------------------------------- */

/* Dashed, like every other unknown-or-refused state in the app, and it carries
   the server's own message rather than a friendlier guess at what went wrong. */
.error {
  padding: 12px 14px;
  border: 2px dashed #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 17px;
}

.btn[disabled] { opacity: 0.5; cursor: progress; }

/* --- Remember row --------------------------------------------------------- */

.meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.meta-row label {
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
}

.meta-row input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* The box is now wired, so it has to show its real state — the design's filled
   box is the checked one, not the only one. */
.meta-row input[type="checkbox"]:checked { background: var(--main); }

.meta-row input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 3px;
  height: 7px;
  margin: 0 auto;
  border: solid var(--background);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.meta-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}
