/* Additional styles for the New User form */
/* These complement the existing wager-form styles */

/* Form error at the top level */
.form-error {
  padding: 12px 16px;
  margin-bottom: 20px;
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid #e74c3c;
  color: #e74c3c;
  border-radius: 4px;
}

/* Password requirements help text */
.help-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  font-size: 13px;
  color: var(--light-text);
}

.help-text ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.help-text ul li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--primary-color);
}

/* Customize password fields */
.wager-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-color);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wager-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--focus-shadow);
}

/* Terms agreement checkbox styling */
.terms-agree {
  margin-top: 15px;
}

.terms-agree a {
  color: var(--primary-color);
  text-decoration: none;
}

.terms-agree a:hover {
  text-decoration: underline;
}

/* Validation states - add these classes via JavaScript */
.wager-form input.is-valid {
  border-color: var(--success-color);
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.wager-form input.is-invalid {
  border-color: var(--error-color);
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Responsive adjustments for this specific form */
@media (max-width: 768px) {
  .btn.btn-secondary {
    margin-top: 10px;
    text-align: center;
  }
}