:root {
  --primary-color: #007bff;
  --primary-active-color: #0056b3;
  --bg-color: #f8f9fa;
  --error-color: #e74c3c;
  --max-width: 400px;
}

body {
  max-width: var(--max-width);
  margin: 2em auto;
  font-size: 1.1em;
  font-family: sans-serif;
  padding: 0 1em;
  background: var(--bg-color);
}

h2 {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  text-align: center;
}

label, input, button {
  display: block;
  width: 100%;
  margin-bottom: 0.8em;
}

input[type="text"] {
  padding: 0.5em;
  font-size: 1.1em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

button {
  padding: 0.7em 0;
  font-size: 1.1em;
  border: none;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  margin-bottom: 1em;
  cursor: pointer;
}

button:active {
  background: var(--primary-active-color);
}

#error {
  color: var(--error-color);
  font-weight: bold;
  margin-bottom: 1em;
  text-align: center;
  min-height: 1.5em;
}

#password {
  background: #e9ecef;
}

@media (max-width: 480px) {
  body {
    max-width: 98vw;
    font-size: 1em;
  }
}
