/* Styles pour le formulaire d'inscription client */

.register-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.register-container {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
}

.register-header {
  text-align: center;
  margin-bottom: 30px;
}

.register-header h1 {
  margin-bottom: 10px;
  color: #333;
  font-size: 2.2rem;
}

.register-header p {
  color: #666;
  font-size: 1.1rem;
}

.error-message, .success-message {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  text-align: left;
  font-weight: 500;
}

.error-message {
  background-color: #ffebee;
  color: #e53935;
  border: 1px solid #ffcdd2;
}

.success-message {
  background-color: #e8f5e9;
  color: #43a047;
  border: 1px solid #c8e6c9;
}

.success-message a {
  color: #2e7d32;
  text-decoration: underline;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  height: 18px;
  width: 5px;
  background-color: #4b6dff;
  border-radius: 3px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
  width: 100%;
  padding: 13px 15px;
  padding-left: 45px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.input-with-icon textarea {
  min-height: 120px;
  resize: vertical;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
  border-color: #4b6dff;
  box-shadow: 0 0 0 3px rgba(75, 109, 255, 0.1);
  outline: none;
}

.input-with-icon input::placeholder,
.input-with-icon select::placeholder,
.input-with-icon textarea::placeholder {
  color: #999;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.input-with-icon input:focus + i,
.input-with-icon select:focus + i,
.input-with-icon textarea:focus + i {
  color: #4b6dff;
}

.input-with-icon input[type="password"] {
  padding-right: 45px; /* Espace supplémentaire à droite pour l'icône toggle */
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #4b6dff;
}

.date-inputs {
  display: flex;
  gap: 10px;
}

.date-inputs .input-with-icon {
  flex: 1;
}

.checkbox-group {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  margin-right: 10px;
}

.checkbox-group label {
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group a {
  color: #4b6dff;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.btn-primary {
  background-color: #4b6dff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #3450d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75, 109, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.register-footer {
  margin-top: 20px;
  text-align: center;
  color: #666;
}

.register-footer p {
  margin: 10px 0;
  font-size: 0.95rem;
}

.register-footer a {
  color: #4b6dff;
  text-decoration: none;
  font-weight: 600;
}

.register-footer a:hover {
  text-decoration: underline;
}

.register-switch {
  font-size: 0.9rem;
}

/* Styles pour la section des avantages */

.register-benefits {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.register-benefits h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.benefits-list i {
  font-size: 1.5rem;
  color: #4b6dff;
  margin-right: 15px;
  background-color: rgba(75, 109, 255, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.benefits-list h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.2rem;
}

.benefits-list p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Styles spécifiques aux clients */
.client-benefits i {
  color: #4b6dff;
  background-color: rgba(75, 109, 255, 0.1);
}

@media (min-width: 992px) {
  .register-section .container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: start;
  }
  
  .register-container, .register-benefits {
    margin-bottom: 0;
  }
}

@media (max-width: 991px) {
  .register-container, .register-benefits {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .register-benefits {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .register-header h1 {
    font-size: 1.8rem;
  }
  
  .register-header p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .register-container, .register-benefits {
    padding: 20px 15px;
  }
  
  .form-section {
    padding: 15px;
  }
  
  .input-with-icon input, 
  .input-with-icon select {
    font-size: 0.95rem;
  }
  
  .btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

.phone-verification-info {
  margin-top: 5px;
  color: #666;
  font-style: italic;
  font-size: 0.85rem;
}

.phone-verification-info i {
  color: #4b6dff;
  margin-right: 5px;
}

/* Style pour le recaptcha */
#recaptcha-container {
  margin: 20px auto;
  max-width: 320px;
}

/* Styles pour la modal de vérification OTP */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: slideDown 0.4s;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #555;
}

#verificationCode {
  font-size: 1.2rem;
  letter-spacing: 8px;
  text-align: center;
  padding: 12px;
  width: 100%;
  margin: 15px 0;
}

/* Styles pour le bouton SMS et la vérification */
.sms-verify-button-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sms-button {
  background-color: #4b6dff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.sms-button:hover {
  background-color: #3a5ae8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sms-button:active {
  transform: translateY(0);
}

.sms-button i {
  margin-right: 8px;
  font-size: 16px;
}

.g-recaptcha-wrapper {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

#sms-verification-status {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  min-height: 24px;
}

.status-success {
  color: #2ecc71;
  font-weight: 600;
}

.status-error {
  color: #e74c3c;
  font-weight: 600;
}

.status-info {
  color: #3498db;
  font-weight: 600;
}

.phone-mask {
  letter-spacing: 1px;
  font-size: 15px;
}

/* Animation pour le modal de vérification OTP */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Styles d'icône spécifiques */
.far.fa-mobile-android {
  font-size: 18px;
} 