/* Styles for Registration, Login, and Password Reset Forms */

.wtr-registration-form,
.wtr-password-reset-form,
form.wtr-registration-form:has([name="wtr_login"]) {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 400px;
  margin: 2rem auto;
  font-family: Arial, sans-serif;
}

.wtr-registration-form input:not([type="submit"]),
.wtr-registration-form select,
.wtr-password-reset-form input:not([type="submit"]),
form.wtr-registration-form:has([name="wtr_login"]) input:not([type="submit"]) {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.wtr-registration-form input:focus,
.wtr-registration-form select:focus,
.wtr-password-reset-form input:focus,
form.wtr-registration-form:has([name="wtr_login"]) input:focus {
  border-color: #4a80f0;
  outline: none;
  box-shadow: 0 0 5px rgba(74, 128, 240, 0.5);
}

.wtr-registration-form input[type="submit"],
.wtr-password-reset-form input[type="submit"],
form.wtr-registration-form:has([name="wtr_login"]) input[type="submit"] {
  width: 100%;
  background-color: #4a80f0;
  color: white;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wtr-registration-form input[type="submit"]:hover,
.wtr-password-reset-form input[type="submit"]:hover,
form.wtr-registration-form:has([name="wtr_login"]) input[type="submit"]:hover {
  background-color: #3a66c5;
}

.wtr-registration-message {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.wtr-registration-error {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

.wtr-registration-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border-left: 4px solid #2ecc71;
}

.wtr-switch-form-link {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}

.wtr-switch-form-link a {
  color: #4a80f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.wtr-switch-form-link a:hover {
  color: #3a66c5;
  text-decoration: underline;
}
