/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Container principal */
.register-wrapper {
  width: 100%;
  max-width: 900px;
  position: relative;
}

/* Logo/Brand */
.brand-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.brand-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Card d'inscription */
.register-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.register-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

.register-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Champs de formulaire avec le style SOULIGNÉ MINIMALISTE */
.form-group {
  margin-bottom: 1.8rem;
}

.form-label-custom {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-control-custom {
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  padding: 0.75rem;
  font-size: 1rem;
  background: transparent;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control-custom:focus {
  border-color: #0d6efd;
  box-shadow: none;
  background: transparent;
  outline: none;
}

.form-control-custom.is-invalid {
  border-color: #ef4444;
}

.form-select-custom {
  border: 2px solid #cbd5e1;
  border-radius: 0;
  padding: 0.75rem;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-select-custom:focus {
  border-color: #0d6efd;
  box-shadow: none;
  background: transparent;
  outline: none;
}

/* Boutons modernes */
.btn-gradient {
  background: rgba(26, 54, 93, 0.95);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
  color: white;
}

.btn-outline-custom {
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn-outline-custom:hover {
  border-color: #0d6efd;
  background: #0d6efd;
  color: white;
}

/* Alertes stylisées */
.alert-custom {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-custom.alert-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.alert-custom.alert-success {
  background: #dcfce7;
  color: #166534;
}

/* Responsive */
@media (max-width: 768px) {
  .register-wrapper {
    max-width: 100%;
  }

  .register-card {
    padding: 2rem;
    border-radius: 0;
    min-height: 100vh;
  }

  .brand-section {
    margin-bottom: 1.5rem;
  }

  .row {
    gap: 1.5rem 0;
  }
}
