:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --danger: #dc3545;
  --danger-dark: #a71d2a;
  --success: #28a745;
  --background: #f7f7f7;
  --text: #222;
  --radius: 1rem;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --font: "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--background);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 420px;
  background: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

h1, h2, h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

p {
  color: #444;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

input, select, textarea, button {
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

button, a.button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover, a.button:hover {
  background: var(--primary-dark);
}

a.logout, button.logout {
  background: var(--danger);
}

a.logout:hover, button.logout:hover {
  background: var(--danger-dark);
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #f9f9f9;
  margin: 0.3rem 0;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.message-success {
  color: var(--success);
  font-weight: bold;
}

.message-error {
  color: var(--danger);
  font-weight: bold;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

@media (max-width: 400px) {
  .container {
    padding: 1.5rem;
  }
}
