body,
html {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.register-container {
  min-height: 100vh;
  display: flex;
}

/* Partie gauche - Formulaire (2/3) */
.register-form-section {
  flex: 2;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1.5rem;
  height: 100vh;
  overflow-y: auto;
}

/* Partie droite - Bannière (1/3) */
.register-banner-section {
  flex: 1;
  background-color: #1e2a38;
  background-image: url("../images/common/legalis_ban1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-width: 300px;
}


.register-banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 42, 56, 0.8),
    rgba(30, 42, 56, 0.6)
  );
}

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-container img {
  max-width: 140px;
  height: auto;
}

.register-form {
  width: 100%;
  max-width: 480px;
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Si tu veux garder la possibilité de scroller le formulaire mais cacher la scrollbar */
.register-form-section {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* INPUTS */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  
}

.form-control:focus {
  border-color: #d4af37; /* accent doré */
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* .btn-register {
  background-color: #28a745;
  border-color: #28a745;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-register:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
} */

/* BUTTONS */
.btn-register {
  background: linear-gradient(90deg, #c69214, #d6a84a);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 146, 20, 0.4);
}

/* REGISTER BUTTON */
.btn-login {
  color: #1e2a38;
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #d4af37;
  color: #fff;
}

/* .btn-login {
  color: #1e2a38;
  border-color: #1e2a38;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #1e2a38;
  border-color: #1e2a38;
  color: white;
} */

.form-label {
  font-weight: 600;
  color: #1e2a38;
  margin-bottom: 0.5rem;
}

.register-title {
  color: #1e2a38;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-section {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.alert-danger {
  border-radius: 8px;
  border: none;
  background-color: #f8d7da;
  color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
  .register-container {
    flex-direction: column;
  }

  .register-banner-section {
    height: 200px;
    order: -1;
  }

  .register-form-section {
    padding: 1rem;
  }

  .register-form {
    padding: 1.5rem;
  }

  .logo-container img {
    max-width: 100px;
  }
}

/* BRAND */
.brand-logo {
  width: 50px;
}

.brand-text {
  font-size: 1.5rem;
  color: #1e2a38;
}

/* GREETING */
.login-greeting {
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e2a38;
}

.login-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 0.95rem;
}

.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--bs-heading-color);
}
