/* === register.css === */

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

main {
  background-color: #1e293b;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  color: #f9fafb;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-weight: 500;
  color: #e2e8f0;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 1rem;
}

input:focus {
  border-color: #3b82f6;
  outline: none;
}

.vote-button {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vote-button:hover {
  background-color: #059669;
}

.error-box {
  background-color: #7f1d1d;
  border: 1px solid #b91c1c;
  color: #fef2f2;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.checkbox-label a {
  color: #3b82f6;
  text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
}
