*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  min-height: 100vh;
}

nav {
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.nav-left { display: flex; align-items: center; gap: 1.5rem; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-btn {
  font-size: 0.88rem;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.nav-btn:hover { color: #e0e0e0; }
.nav-btn.active { color: #e0e0e0; }
.nav-btn.brand { font-weight: 600; }
.nav-user { cursor: default; color: #333; }
.logout-form { margin: 0; }

.nav-logout {
  background: none;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  color: #555;
}
.nav-logout:hover { color: #e0e0e0; border-color: #444; }

main {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #e0e0e0;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: #444; }
input::placeholder { color: #333; }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: #e0e0e0; color: #0d0d0d; }
.btn-primary:hover { background: #fff; }

.btn-ghost {
  background: none;
  border: 1px solid #2a2a2a;
  color: #888;
}
.btn-ghost:hover { border-color: #444; color: #e0e0e0; }

.btn-danger {
  background: none;
  border: 1px solid #3a1a1a;
  color: #e05555;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
}
.btn-danger:hover { border-color: #7f2020; }

.status {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.status.ok  { color: #4ade80; }
.status.err { color: #e05555; }
