/* =====================
   BODY / THEME
===================== */

body {
  margin: 0;
  min-height: 100vh;
  background-color: #000000;
  transition: background-color 3s ease;
}

body.light {
  background-color: #ffffff;
}

/* =====================
   FONT
===================== */

@font-face {
  font-family: "Glisten";
  src: url("/css/CachaPersonalUseRegular-GOx6g.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}



/* =====================
   LOGIN CONTAINER
===================== */

.login-container {
  width: 100%;
  min-height: 72vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================
   LOGIN BOX
===================== */

.login {
  position: relative;
  width: 420px;
  max-width: 80vw;
  padding: 2rem;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  background: linear-gradient(135deg, #9b5cff, #6200ff);
  box-shadow: 15px 15px 30px #a36bfc,
              -15px -15px 30px #6c11ff;

  overflow: hidden;
  transition: 1.5s;

}

/* Gradient transition layer */
.login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2f00ff, #00defc);
  opacity: 0;
  transition: opacity 3s ease;
  z-index: 0;
}

.login.light::before {
  opacity: 1;
}

/* Keep content above gradient */
.login > * {
  position: relative;
  z-index: 1;
}

/* =====================
   TITLES
===================== */

.login h1 {
  margin: 0 0 0.5rem;
  text-align: center;
}

/* =====================
   INPUTS
===================== */

.login label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}





.login.light {
  box-shadow: 15px 15px 30px rgb(211, 210, 210),
              -15px -15px 30px rgb(46, 46, 46);
              transition: 3s;
}

.login::before {
  background: linear-gradient(135deg, #2f00ff, #00defc);
}

.login.light::before {
  opacity: 1;
}

/* =====================
   BUTTON
===================== */

.connecter {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.781);
  --btn-color: rgb(100, 61, 136);

  padding: 1em 3em;
  font-size: 15px;
  font-weight: bold;
  color: var(--glow-color);
  background-color: var(--btn-color);
  border-radius: 100px;
  border: none;
  cursor: pointer;

  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);

  transition: background-color 3s, box-shadow 3s, color 3s;

}

.connecter.light {
  --glow-color: rgb(176, 252, 255);
  --glow-spread-color: rgba(123, 251, 255, 0.781);
  --btn-color: rgb(61, 127, 136);
}

.connecter:hover {
  background-color: var(--glow-color);
  color: var(--btn-color);
  transition: background-color 0s, box-shadow 0s, color 0s;
}

/* =====================
   ERROR MESSAGE
===================== */

.error {
  color: #f85149;
  font-size: 0.85rem;
  text-align: center;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {
  .login {
    width: 90vw;
    padding: 1.5rem;
  }
}


/* =====================
   LOGO
===================== */
.site-header {
  top: 0;
  left: 0;
  padding: 12px 16px;
  z-index: 1000;
}

#site-logo {
  height: 125px;
  width: auto;
}





.text {
  font-size: 64px;
  font-weight: bold;
  font-family: "Glisten", sans-serif;
}

.text span {
  animation: text 1.6s infinite;
  
}

.text.light span {
  animation: text_light 1.6s infinite;
}


/* Décalage lettre par lettre */
.text span:nth-child(1) { animation-delay: 0s; }
.text span:nth-child(2) { animation-delay: 0.2s; }
.text span:nth-child(3) { animation-delay: 0.4s; }
.text span:nth-child(4) { animation-delay: 0.6s; }
.text span:nth-child(5) { animation-delay: 0.8s; }
.text span:nth-child(6) { animation-delay: 1s; }
.text span:nth-child(7) { animation-delay: 1.2s; }
.text span:nth-child(8) { animation-delay: 1.4s; }
.text span:nth-child(9) { animation-delay: 1.6s; }

@keyframes text {
  0% {
    color: rgb(47, 0, 51);
    text-shadow: none;
    opacity: 0.4;
  }
  20% {
    color: rgb(229, 102, 255);
    opacity: 1;
    text-shadow:
      0 0 4px  rgb(229, 102, 255),
      0 0 8px  rgb(229, 102, 255),
      0 0 16px  rgb(229, 110, 253);
  }
  40% {
    color:  rgb(229, 102, 255);
    opacity: 1;
  }
  60% {
    color: rgb(68, 0, 62);
    text-shadow: none;
    opacity: 0.4;
  }
  100% {
    color: rgb(68, 0, 62);
    text-shadow: none;
  }
}


@keyframes text_light {
  0% {
    color: #033;
    text-shadow: none;
    opacity: 0.4;
  }
  20% {
    color: #6ff;
    opacity: 1;
    text-shadow:
      0 0 4px #6ff,
      0 0 8px #6ff,
      0 0 16px #0ff;
  }
  40% {
    color: #6ff;
    opacity: 1;
  }
  60% {
    color: #044;
    text-shadow: none;
    opacity: 0.4;
  }
  100% {
    color: #044;
    text-shadow: none;
  }
}





.input {
  /* 🔒 TES COULEURS, RIEN DE SUPPRIMÉ */
  background: linear-gradient(
    158deg,
    
    #9b5cff,
    #6200ff,
    #2f00ff,
    #00defc
  );

  background-size: 400% 400%;
  background-position: 0% 50%;

  border: none;
  outline: none;
  padding: 12px 27px;
  font-size: 16px;
  border-radius: 9999px;
  text-align: center;

  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);

  transition:
    background-position 3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
      font-size: 25px;
  font-weight: bold;
  font-family: "Glisten", sans-serif;
  transform-origin: center;
}
/*colors text login */
.input::placeholder {
  color: #ff4bf0;
  transition: color 3s ease;
}
.input.light::placeholder {
  color: #00f7ff;
}

/* 🎯 SWITCH THEME */
.login.light .input {
  background-position: 100% 50%;
  color: #000000;
}

/* Hover / focus conservé */
.input:hover,
.input:focus {
  transform: scale(1.06);
}



