/* ---------- Landing ---------- */
body.landing {
  margin: 0;
  background: linear-gradient(180deg, #0f1419 0%, #1a2530 100%);
  color: #ecf0f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
}
.landing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid #1f2933;
}
.landing-head .brand a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.landing-nav { display: flex; gap: 12px; }

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background: #4ea3ff;
  color: #0f1419;
}
.btn-primary:hover { background: #6db3ff; }
.btn-ghost {
  background: transparent;
  color: #ecf0f1;
  border-color: #2d3947;
}
.btn-ghost:hover { background: #1f2933; border-color: #4ea3ff; }
.btn-primary.lg, .btn-ghost.lg { padding: 12px 24px; font-size: 16px; }

.landing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}
.hero {
  text-align: center;
  margin-bottom: 80px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #b8c2cc;
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feat {
  background: #1b2129;
  border: 1px solid #2d3947;
  border-radius: 8px;
  padding: 24px;
}
.feat h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #4ea3ff;
}
.feat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b8c2cc;
}

.landing-foot {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px;
  border-top: 1px solid #1f2933;
  font-size: 13px;
  color: #6c7783;
}
.landing-foot .dim { color: #4a5560; }

/* ---------- Login / Signup ---------- */
body.auth-page {
  margin: 0;
  background: #0f1419;
  color: #ecf0f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: #1b2129;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-brand a {
  color: #4ea3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.auth-card h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #b8c2cc;
}
.auth-card label span { font-weight: 500; }
.auth-card input[type=text],
.auth-card input[type=password] {
  background: #0f1419;
  border: 1px solid #2d3947;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ecf0f1;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.auth-card input[type=text]:focus,
.auth-card input[type=password]:focus {
  border-color: #4ea3ff;
}
.auth-card button[type=submit] {
  margin-top: 8px;
  border: none;
}
.auth-err {
  background: #3a1f23;
  border: 1px solid #5c2f35;
  color: #ff9aa6;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}
.auth-foot a {
  color: #4ea3ff;
  text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }
.auth-foot .dim { color: #6c7783; }
.auth-closed { text-align: center; }
.auth-closed code {
  background: #0f1419;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid #2d3947;
}

/* ---------- topbar user chip + logout ---------- */
.topbar .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 4px 10px;
  background: #1f2933;
  border-radius: 12px;
  font-size: 12px;
}
.topbar .user-chip .uname {
  color: #ecf0f1;
  font-weight: 500;
}
.topbar .user-chip .urole {
  color: #6c7783;
  font-size: 11px;
}
.topbar .logout-btn {
  margin-left: 8px;
  background: transparent;
  border: 1px solid #2d3947;
  color: #b8c2cc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.topbar .logout-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}
