/* CSS spécifique à la page de connexion */

/* Styles pour les sections */
.section {
  padding: 80px 0;
}

.section-content {
  display: flex;
  align-items: center;
}

.section-left,
.section-right {
  flex: 1;
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid #ECECEC;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
}

.header-nav-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-tabs li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-tabs li a:hover {
  color: #6E08A7;
}

.nav-tabs li a.active {
  color: #6E08A7;
  border-bottom: 2px solid #6E08A7;
  padding-bottom: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Styles pour les boutons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 6px 6px 16px 0px rgba(0, 0, 0, 0.10);
}

.btn-primary {
  background-color: #6E08A7;
  color: white;
}

.btn-primary:hover {
  background-color: #5a077a;
}

.btn-success {
  background-color: #008F4A;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline {
  background-color: white;
  color: #201E21;
  border: 2px solid #6E08A7;
}

/* Section de connexion */
.login-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  background-color: #F1E6F6;
  padding: 60px 0;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
}

.login-form-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.login-form-title {
  font-size: 32px;
  font-weight: 700;
  color: #201E21;
  margin-bottom: 8px;
  text-align: center;
}

.login-form-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #706D72;
  margin-bottom: 32px;
  text-align: center;
}





/* Formulaire */
.login-form {
  margin-bottom: 24px;
}

/* Messages d'erreur */
.form-error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  animation: slideInDown 0.3s ease-out;
}

.error-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.error-content {
  flex: 1;
}

.error-text {
  color: #DC2626;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin: 0;
}

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

.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #DADEE0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #201E21;
  background-color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #6E08A7;
  box-shadow: 0 0 0 3px rgba(110, 8, 167, 0.1);
}

.form-label {
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 14px;
  font-weight: 400;
  color: #201E21;
  line-height: 20px;
  background-color: white;
  padding: 0 4px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.form-input:focus + .form-label {
  color: #6E08A7;
}

/* Styles pour les champs avec erreur */
.form-field.has-error .form-input {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field.has-error .form-label {
  color: #DC2626;
}

.form-field.has-error .form-input:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Indication de longueur minimale du mot de passe */
.password-hint {
  display: block;
  font-size: 12px;
  color: #706D72;
  margin-top: 4px;
  font-weight: 400;
}

/* Styles pour le select */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.form-select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236E08A7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.form-field.has-error .form-select {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field.has-error .form-select:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Styles pour les options désactivées */
.form-select option:disabled {
  color: #9CA3AF;
  font-style: italic;
  background-color: #F9FAFB;
}

.form-select option:disabled:hover {
  background-color: #F9FAFB;
}

/* Case à cocher */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #201E21;
  line-height: 20px;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #DADEE0;
  border-radius: 4px;
  background-color: white;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checkbox-input:checked + .checkmark {
  background-color: #6E08A7;
  border-color: #6E08A7;
}

.checkbox-input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  flex: 1;
  cursor: pointer;
}

/* Bouton de connexion */
.btn-login {
  background-color: #6E08A7;
  color: white;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 8, 167, 0.3);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(110, 8, 167, 0.2);
}

.btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* Spinner de chargement */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Lien mot de passe oublié */
.forgot-password {
  text-align: center;
  font-size: 14px;
  color: #706D72;
}

.forgot-password span {
  color: #706D72;
}

.forgot-password-link {
  color: #6E08A7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #5a077a;
  text-decoration: underline;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background-image: url(/assets/bg-footer-82be0078712301466f7222e5db49ebc0e53943876848e23d5ea097a821b1e111.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 52px 0;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.footer-blocks {
  display: flex;
  gap: 60px;
}

.footer-block {
  flex: 1;
}

.footer-block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

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

.footer-links li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: white;
}

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

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-contacts li span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0 10px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 0;
}

/* Styles pour le menu mobile */
.hamburger-menu {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #201E21;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  transition: left 0.3s ease;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ECECEC;
}

.mobile-logo img {
  height: 32px;
  width: auto;
}

.close-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 32px;
  height: 32px;
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #201E21;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  flex: 1;
}

.mobile-nav-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-tabs li {
  margin-bottom: 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  color: #201E21;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #F5F5F5;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #6E08A7;
}

.mobile-nav-link.active {
  color: #6E08A7;
  border-bottom: 2px solid #6E08A7;
}

.mobile-menu-actions {
  padding-top: 20px;
  border-top: 1px solid #ECECEC;
}

.mobile-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    margin: 20px;
    border-radius: 12px;
    min-height: auto;
    padding: 40px 20px;
  }
  
  .login-form-title {
    font-size: 28px;
  }
  
  .login-form-description {
    font-size: 14px;
  }
  
  .header-nav-section {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
    text-align: center;
  }
  
  .footer-blocks {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  
  .footer-block {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .login-section {
    min-height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 16px;
  }
  
  .login-form-title {
    font-size: 24px;
  }
  
  .login-form-description {
    font-size: 14px;
  }
}
