:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #e0e7ff;
  --gradient-start: #3b82f6;
  --gradient-end: #1d4ed8;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background-color: black;
  opacity: 0.8;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 1rem 0;
}

.text-center {
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.644); /* Stronger shadow for contrast */
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  color: #f3f4f6;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  line-height: 1.6;
}

/* Feature cards */
.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature-card {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.2rem;
  width: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, background-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.2);
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2;
}

.feature-text {
  text-align: left;
}

.feature-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.feature-subtitle {
  font-size: 0.875rem;
  color: #e5e7eb;
  font-weight: 400;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s;
  animation: bounce 2s infinite;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.025em;
}

.cta-button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.chevron-down {
  margin-left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  position: relative;
}

.chevron-down::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
}

/* Content section */
.content-section {
  background-color: white;
  padding: 6rem 1rem;
}

.content-section h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-0.5rem);
  }
  60% {
    transform: translateY(-0.25rem);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 4rem;
  }

  .feature-cards {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    width: 100%;
    max-width: 20rem;
  }
}
/* Container *****************************************************************/
.containerr {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

/* Form Container */
.form-container {
  width: 100%;
  background: url("img/Body/4.png");
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .form-container {
    width: 50%;
    padding: 3rem;
  }
}

.form-content {
  width: 100%;
  max-width: 32rem;
}

/* Title */
.title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
}

.input-group {
  margin-bottom: 1.2rem !important;
  position: relative;
  display: flex;
  align-items: center;
}

/* Espacement spécial pour la barre de force du mot de passe */
.password-strength-meter {
  margin-bottom: 0.5rem;
}

.strength-text {
  margin-bottom: 0.5rem;
}

.password-requirements {
  margin-bottom: 2rem; /* Espacement après les exigences */
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--light-text);
  width: 1.25rem;
  height: 1.25rem;
}
.input-group .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  width: 1.25rem;
  height: 1.25rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--section-bg);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s ease;
  background-color: var(--background);
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 500;
}

.input-group input::placeholder,
.input-group select::placeholder {
  color: var(--light-text);
  font-weight: 400;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Remember me and forgot password */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  color: var(--text-color);
}

.remember input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.forgot {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 1.125rem;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.submit-btn .arrow-icon {
  transition: transform 0.2s ease;
}

.submit-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Image container */
.image-container {
  display: none;
  position: relative;
  width: 50%;
  background-image: url("img/Body/student.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .image-container {
    display: block;
  }
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 131, 246, 0.423),
    rgba(29, 79, 216, 0.842)
  );
}

.image-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 3rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.205); /* Stronger shadow for contrast */
}

.image-content h3 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem; /* Slightly increased */
  letter-spacing: -0.015em; /* Adjusted for readability */
  line-height: 1.3; /* Improved line spacing */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.644); /* Stronger shadow for contrast */
}

.image-content p {
  font-size: 1.35rem; /* Slightly larger */
  opacity: 1; /* Make text fully visible */
  max-width: 36rem; /* More breathing space */
  font-weight: 500;
  line-height: 1.75; /* More comfortable reading */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.image-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
  z-index: -1;
}
/* Image container 1 */
.image-container1 {
  display: none;
  position: relative;
  width: 50%;
  background-image: url("img/Body/student1.png");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .image-container1 {
    display: block;
  }
}

.image-overlay1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 131, 246, 0.423),
    rgba(29, 79, 216, 0.842)
  );
}

.image-content1 {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 3rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.644); /* Stronger shadow for contrast */
}

.image-content1 h3 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem; /* Slightly increased */
  letter-spacing: -0.015em; /* Adjusted for readability */
  line-height: 1.3; /* Improved line spacing */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.705); /* Stronger shadow for contrast */
}

.image-content1 p {
  font-size: 1.35rem; /* Slightly larger */
  opacity: 1; /* Make text fully visible */
  max-width: 36rem; /* More breathing space */
  font-weight: 500;
  line-height: 1.75; /* More comfortable reading */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.image-content1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
  z-index: -1;
}
/* Image container 2 */
.image-container2 {
  display: none;
  position: relative;
  width: 50%;
  background-image: url("img/Body/forgot\ -\ Copie.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .image-container2 {
    display: block;
  }
}

.image-overlay2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 131, 246, 0.423),
    rgba(29, 79, 216, 0.842)
  );
}

.image-content2 {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 3rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.644); /* Stronger shadow for contrast */
}

.image-content2 h3 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem; /* Slightly increased */
  letter-spacing: -0.015em; /* Adjusted for readability */
  line-height: 1.3; /* Improved line spacing */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.705); /* Stronger shadow for contrast */
}

.image-content2 p {
  font-size: 1.35rem; /* Slightly larger */
  opacity: 1; /* Make text fully visible */
  max-width: 36rem; /* More breathing space */
  font-weight: 500;
  line-height: 1.75; /* More comfortable reading */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.image-content2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
  z-index: -1;
}
/* Styles communs pour tous les messages d'erreur */
.error-base {
  color: #b00b0b; /* Red color for errors */
  font-weight: 500;
  font-size: 0.8rem; /* Smaller font size */
  position: absolute; /* Position absolutely */
  left: 9%; /* Align with the input field */
  width: auto; /* Let the width adjust to the content */
  z-index: 1; /* Ensure error messages appear above other content */
  padding: 0.2rem 0.6rem; /* Smaller padding */
  background-color: #fff0f0; /* Light red background */
  border: 1px solid #ff4d4d; /* Red border */
  border-radius: 0.5rem; /* Rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  animation: fadeIn 0.3s ease-in-out; /* Fade-in animation */
  display: inline-block; /* Make the background wrap around the text */
  line-height: 1.4; /* Adjust line height for better spacing */
}

/* Classes spécifiques pour ajuster uniquement le bottom */
.error {
  bottom: -1.5rem;
}
.error1 {
  bottom: 21.5rem;
}
.error2 {
  bottom: 18.5rem;
}
.error3 {
  bottom: 20.8rem;
}

/* Styles communs pour tous les messages de succès */
.success-base {
  color: #146906; /* Green color for success */
  font-weight: 600;
  font-size: 0.87rem; /* Smaller font size */
  position: absolute; /* Position absolutely */
  left: 9%; /* Align with the input field */
  width: auto; /* Let the width adjust to the content */
  z-index: 1; /* Ensure success messages appear above other content */
  padding: 0.2rem 0.7rem; /* Smaller padding */
  background-color: #f4fff0; /* Light green background */
  border: 1px solid #6eff4d; /* Green border */
  border-radius: 0.5rem; /* Rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  animation: fadeIn 0.3s ease-in-out; /* Fade-in animation */
  display: inline-block; /* Make the background wrap around the text */
  line-height: 1.4; /* Adjust line height for better spacing */
}

/* Classes spécifiques pour ajuster uniquement le bottom */
.success {
  bottom: 20.8rem;
}
.success1 {
  bottom: 18.5rem;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
