/* FS Crosscheck — account pages. Dark aviation aesthetic, amber accent. */

:root {
  --bg: #0b0e13;
  --bg-card: #12161e;
  --bg-inset: #0f131a;
  --border: #1f2530;
  --border-strong: #2a3240;
  --text: #e6e8ec;
  --text-muted: #8892a2;
  --text-dim: #5a6472;
  --accent: #d4a574;
  --accent-hover: #e4b889;
  --danger: #e85c5c;
  --ok: #72c398;
  --warn: #e8b85c;
  --mono: "JetBrains Mono", "SF Mono", "Consolas", "Menlo", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-name {
  color: var(--text);
}

.topnav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topnav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 120ms ease;
}
.topnav a:hover { color: var(--text); }

.user-email {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 13px;
}

.inline-form { display: inline; margin: 0; padding: 0; }

/* ---------- shell ---------- */

.shell {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footbar {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
}

/* ---------- card ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
}

.muted { color: var(--text-muted); margin: 0 0 24px; }
.small { font-size: 13px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- form ---------- */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  transition: border-color 120ms ease;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  padding: 10px 12px;
  background: rgba(232, 92, 92, 0.08);
  border-left: 2px solid var(--danger);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1408;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-google {
  border-color: var(--border-strong);
  background: var(--bg-inset);
  color: var(--text);
}
.btn-google:hover {
  border-color: var(--accent);
}

.g-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #202124;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--text); }

.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-row .btn-primary { flex: 0 0 auto; }

/* ---------- divider ---------- */

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ---------- state grid ---------- */

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.state-cell {
  padding: 16px;
  background: var(--bg-inset);
  border-left: 2px solid var(--accent);
}

.state-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.state-value {
  font-size: 16px;
  font-weight: 500;
}

/* ---------- table ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.status-cell { font-family: var(--mono); font-size: 13px; }
.status-active, .status-trialing { color: var(--ok); }
.status-past_due { color: var(--warn); }
.status-canceled, .status-inactive { color: var(--text-dim); }

.mono { font-family: var(--mono); font-size: 13px; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
