/* FleetFixer Auth — design tokens + page styles for the
   central auth.fleetfixer.io subdomain. Standalone (no
   marketing-tokens dep) so the auth pages stay self-contained. */

:root {
  --accent:       #1f5fa8;
  --accent-dark:  #17477e;
  --text:         #0b2545;
  --muted:        #64748b;
  --stroke:       #e2e8f0;
  --bg:           #f8fafc;
  --panel-bg:     #ffffff;
  --error:        #b91c1c;
  --error-bg:     #fef2f2;
  --success:      #166534;
  --success-bg:   #f0fdf4;
  --info:         #1f5fa8;
  --info-bg:      #eff6ff;
  --radius:       12px;
  --shadow:       0 8px 28px rgba(11,37,69,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 320px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
}
.auth-brand i { font-size: 22px; }

.auth-card {
  background: var(--panel-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 520px; }

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-card .lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.12);
}
.field-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.row a { font-size: 13px; font-weight: 600; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.btn:hover:not(:disabled) { background: #f1f5f9; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-google {
  border-color: var(--stroke);
}
.btn-google img,
.btn-google svg { width: 16px; height: 16px; }
.btn + .btn { margin-top: 10px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message.error   { background: var(--error-bg);   color: var(--error); }
.message.info    { background: var(--info-bg);    color: var(--info); }
.message.success { background: var(--success-bg); color: var(--success); }
.message.hidden  { display: none; }

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a { font-weight: 600; text-decoration: none; }

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.workspace-list { list-style: none; padding: 0; margin: 0; }
.workspace-list li + li { margin-top: 10px; }
.workspace-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}
.workspace-list a:hover { background: #f1f5f9; }
.workspace-list .w-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--info-bg);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.workspace-list .w-meta { flex: 1; }
.workspace-list .w-meta strong { display: block; font-size: 14px; }
.workspace-list .w-meta span { font-size: 12px; color: var(--muted); }

.legacy-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
  font-size: 13px;
}
.legacy-banner a { color: #7c2d12; font-weight: 600; }

.muted-page {
  text-align: center;
  margin-top: 14px;
}
.muted-page p { color: var(--muted); font-size: 13px; }
