/* Réinitialisation basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Le body prend tout l'écran, fond noir */
  body {
    width: 100%;
    min-height: 100vh;
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Pour éviter les scrollbars pendant l'animation */
  }
  
  /* ----- STYLES DU TERMINAL (logs + ASCII) ----- */
  #terminal {
    position: absolute;
    top: 0;
    left: 0;
    margin: 1rem;             
    max-width: 700px;         /* Sur écrans plus larges, ne dépasse pas 700px */
    width: 100%;              /* Sur écrans plus petits, prend toute la largeur */
    font-size: 11.2px;
    white-space: pre-wrap;
    line-height: 1.3;
    overflow-x: auto;
    overflow-y: auto;
  }
  
  #terminal div {
    margin-bottom: 0.2rem;
  }
  
  /* ---- COULEURS SPÉCIFIQUES ---- */
  
  /* Chevrons < > dans <system> */
  .bracket {
    color: white;
  }
  
  /* Le mot "system" */
  .system {
    color: rgb(138, 13, 138);
  }
  
  /* "ok" en vert */
  .ok {
    color: green;
  }
  
  /* Lignes ASCII (hors underscore) en violet */
  .ascii-line {
    color: violet;
    white-space: pre; /* Évite les retours à la ligne automatiques */
  }
  
  /* Underscore dans l'ASCII */
  .underscore {
    color: white;
  }

  /* Exemple d'animation shake + bordure rouge */
.shake {
  border: 2px solid red; 
  animation: shakeAnimation 0.5s;
}

@keyframes shakeAnimation {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-5px, 0); }
  40%  { transform: translate(5px, 0); }
  60%  { transform: translate(-5px, 0); }
  80%  { transform: translate(5px, 0); }
  100% { transform: translate(0, 0); }
}


  
  /* ----- OVERLAY LOGIN ----- */
  #loginOverlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    display: none; /* Caché initialement, on l'affiche après l'animation */
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
  }
  
  #loginContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222; 
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
  }
  
  #loginContainer h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  #loginContainer form {
    display: flex;
    flex-direction: column;
  }
  
  #loginContainer label {
    margin: 0.5rem 0 0.3rem;
    font-weight: bold;
  }
  
  #loginContainer input {
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    border: none;
    border-radius: 4px;
  }
  
  #loginContainer button {
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    background-color: violet;
    color: #000;
    margin-top: 0.5rem;
  }
  
  /* ----- OVERLAY SIGNUP ----- */
  #signupOverlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    display: none; /* Caché initialement */
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000; 
  }
  
  #signupContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
  }
  
  #signupContainer h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  #signupContainer form {
    display: flex;
    flex-direction: column;
  }
  
  #signupContainer label {
    margin: 0.5rem 0 0.3rem;
    font-weight: bold;
  }
  
  #signupContainer input {
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    border: none;
    border-radius: 4px;
  }
  
  #signupContainer button {
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    background-color: violet;
    color: #000;
    margin-top: 0.5rem;
  }
  
  /* ----- MEDIA QUERIES ----- */
  @media screen and (max-width: 600px) {
    #terminal {
      font-size: 10px;
    }
    #loginContainer,
    #signupContainer {
      padding: 1rem;
    }
  }
  