body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(270deg, hsl(0, 0%, 100%), hsl(283, 100%, 83%), hsl(278, 100%, 75%));
    background-size: 400% 400%;
    animation: gradientMove 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
  }

  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
/* Responsive : écrans de moins de 1000px */
@media (max-width: 1000px) {

    body{
        height: auto;
    }
}

  .container {
    text-align: center;
    /* justify-content: center; */
    justify-items: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 #1100aa;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    margin: 0 auto;
  }

  .container h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bolder;
  }

  input[type="text"],
  input[type="password"] {
    width: 80%;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border: none;
    background-color: #ffffff;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  button {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
    background: #1100aa;
    color: rgb(255, 253, 253);
    border-radius: 5px;
    border: none;
    margin-top: 2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px darkslategray;
  }

  button:hover {
    box-shadow: 0 0 2px darkslategray;
   transform: translateY(2px);
   font-weight: bold;
  }
  
  .container .avion {
    animation: float 2s ease-in-out infinite;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-40px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  #textForm p {
    width: 80%;
    font-size: 1em;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    display: block;
  }
  
  .password-wrapper {
    position: relative;
    width: 80%;
    margin: 0 auto 20px auto;
  }

  .password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  margin-bottom: 0;
  padding-right: 38px; /* space for the icon */
  box-sizing: border-box;
  display: block;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #000000;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.loader {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #1100aa;
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
  vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
  }
  
  /* Add to styles.css */
  h1 span {
    background: linear-gradient(90deg, #00ffe7 0%, #5f5cff 50%, #ff00ea 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    letter-spacing: 2px;
    filter: brightness(1.2);
    animation: gradientTextMove 3s linear infinite;
  }
  
  @keyframes gradientTextMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* .app-title{
    margin-top: 5em;
  } */

  /* style du temps dessaie */

  /* Style de la modale */
  #clickCounter {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
    display: none;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
  }
  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.4s ease;
  }
  .close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: red;
  }
  @keyframes flash {
    0% { background-color: white; }
    50% { background-color: lightgreen; }
    100% { background-color: white; }
  }
  .flash {
    animation: flash 1s ease-in-out 3;
  }
  @keyframes fadeIn {
    from { opacity: 0; top: 20px; }
    to { opacity: 1; top: 0; }
  }

  .modalText{
    font-size: 1.2em;
  }

  #countdown{
    font-size: 1.5em;
    font-weight: bold;
  }