/* ══════════════════════════════════════════════════════════════════
 Formulaire Register
   ══════════════════════════════════════════════════════════════════ */
.user-register-form {
  max-width: 50%;
}

.user-register-form .form-item {
  margin-bottom: 22px;
}

.user-register-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.user-register-form input[type="text"],
.user-register-form input[type="email"],
.user-register-form input[type="password"],
.user-register-form input[type="tel"],
.user-register-form input[type="number"],
.user-register-form select,
.user-register-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfd9e6;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-primary);
  font-size: 16px;
  padding: 12px 15px;
  box-sizing: border-box;
}

.user-register-form textarea {
  min-height: 120px;
}

.user-register-form input:focus,
.user-register-form select:focus,
.user-register-form textarea:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}

.user-register-form .description {
  color: #6d83a3;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 7px;
}

.form-required::after {
  content: " *";
  color: #d93025;
  font-weight: 700;
}

.form-boolean--type-checkbox:checked {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
}

.form-type-checkbox label {
  display: inline;
  font-weight: 600;
}

.rules-link {
  color: #003f6b;
  font-weight: 700;
  margin-left: 8px;
  text-decoration: underline;
}

.form-actions {
  margin-top: 32px;
}

.form-actions input[type="submit"],
.form-actions button {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;

  form-actions input[type="submit"]:hover,
  .form-actions button:hover {
    background: var(--brand-secondary);
  }
}

/* Sécurité si le champ nom d’utilisateur ressort encore */
.register-page .form-item-name {
  display: none;
}

@media (max-width: 1050px) {
  .register-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .register-side-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .register-page {
    padding: 50px 0;
  }

  .register-hero {
    width: min(100% - 32px, 1450px);
  }

  .register-form-card {
    padding: 24px;
  }
}
