/* ---------- Base Layout ---------- */
body {
  background: linear-gradient(to right, #e8e4d9, #444);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ---------- Container ---------- */
.register-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* ---------- Django Messages ---------- */
.messages {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.messages li {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.messages li.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.messages li.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ---------- Form Fields ---------- */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4ECDC4;
  box-shadow: 0 0 3px rgba(78, 205, 196, 0.5);
}

.password-toggle {
  position: relative;
}

.password-toggle span {
  position: absolute;
  right: 10px;
  top: 38px;
  cursor: pointer;
  color: #888;
}

/* ---------- reCAPTCHA Widget ---------- */
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
  margin-top: 5px;
}

#captchaError {
  color: #b71c1c;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

/* ---------- Error Messages ---------- */
.error-message {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 5px;
}

/* Highlight invalid fields */
input.invalid,
select.invalid {
  border-color: #d32f2f;
  background-color: #ffeaea;
}

/* ---------- Buttons ---------- */
.register-btn {
  width: 100%;
  padding: 12px;
  background-color: #4ECDC4;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.register-btn:hover {
  background-color: #43bdb5;
}

/* ---------- Login Link ---------- */
.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

.login-link a {
  color: #4ECDC4;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}
