* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: #f9fafb;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  max-width: 480px;
  width: 100%;
}

.container.wide {
  max-width: 800px;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

input, select, textarea, button {
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

button {
  background-color: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background-color: #1d4ed8;
}

p#submit-status {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
  min-height: 1em;
}

.counter {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
}

.logout-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

#logout-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#logout-btn:hover {
  background-color: #dc2626;
}