/* ============================================================
   Light-Corp — minimal dark theme
   Hand-written, framework-free. Design tokens live in :root so
   the whole look can be retuned from one place.
   ============================================================ */

:root {

    color-scheme: dark;
  /* Surfaces */
  --bg:        #0e0f12;
  --surface:   #16181d;
  --surface-2: #1d2026;
  --border:    #2a2e36;

  /* Text */
  --text:      #e7e9ee;
  --text-dim:  #9aa0ab;

  /* Accent */
  --accent:        #6ea8fe;
  --accent-hover:  #87b6ff;

  /* Feedback */
  --success: #3fb27f;
  --danger:  #e06c75;
  --info:    #6ea8fe;
  --warning: #d8a657;

  /* Shape & rhythm */
  --radius:  10px;
  --gap:     1rem;
  --maxw:    440px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  background: vr(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--text-dim); }
.nav a:hover { color: var(--text); }
.nav-user { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Hero (home) ---------- */
.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
.hero .accent { color: var(--accent); }
.lead { color: var(--text-dim); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* ---------- Panels & cards ---------- */
.panel h1 { margin-top: 0; }
.muted { color: var(--text-dim); }

.card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h2 { margin-top: 0; }

/* ---------- Auth cards ---------- */
.auth-card {
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.auth-card h1 { margin-top: 0; text-align: center; }
.auth-alt { text-align: center; color: var(--text-dim); margin-top: 1.25rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-dim); }

.field-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field-inline label { margin: 0; }

.input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}

.checkbox { width: 1rem; height: 1rem; accent-color: var(--accent); }

.field-errors {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  color: var(--danger);
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-block { width: 100%; margin-top: 0.5rem; }

.btn-primary { background: var(--accent); color: #0b1220; }
.btn-primary:hover { background: var(--accent-hover); color: #0b1220; }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Flash messages ---------- */
.flashes { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.flash {
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
}
.flash-success { border-color: var(--success); color: var(--success); }
.flash-danger  { border-color: var(--danger);  color: var(--danger); }
.flash-info    { border-color: var(--info);    color: var(--info); }
.flash-warning { border-color: var(--warning); color: var(--warning); }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .site-header { padding: 0.85rem 1rem; }
}
