
#login-view {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background-color: #ffffff; /* Fond blanc */
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1000;
  transition: opacity 0.8s ease;
}

#login-view.hidden {
  display: none !important;
  pointer-events: none;
}

/* Container de la Trame Line */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.particles {
  --size: 17;
  --diameter: 1em;
  --margin: 0.15em; 
  --accent: #1d995b; /* Bleu */
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: calc(var(--size) * 1em);
  height: calc(var(--size) * 1em);
}

.particles div {
  position: relative;
  width: calc(var(--diameter) - var(--margin) * 2);
  height: calc(var(--diameter) - var(--margin) * 2);
  margin: var(--margin);
  background: var(--accent);
  mix-blend-mode: screen;
  box-shadow: 0 0 12px 0 rgba(29, 153, 91, 0.4);
  border-radius: 2px;
  opacity: 0.6;
}

/* Texte SVG */
.text-container {
  width: 80%;
  max-width: 800px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-container svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.letter-path, .line-path {
  fill: none;
  stroke: #1d995b;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(29, 153, 91, 0.3));
  transition: stroke 1s ease, filter 1s ease;
}

.line-path {
  stroke-width: 4;
}

/* Login Form */
.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  margin-left: -160px; /* Moitié de la largeur (320/2) pour centrer sans transform */
  z-index: 20;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.login-container h2 {
  color: #1d995b;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 300;
  font-size: 1.2em;
  transition: color 1s ease;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(29, 153, 91, 0.03);
  border: 1px solid rgba(29, 153, 91, 0.2);
  border-radius: 8px;
  color: #1d995b;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s, background 0.3s, color 1s ease;
}

.input-group input:focus {
  border-color: rgba(29, 153, 91, 0.6);
  background: rgba(29, 153, 91, 0.06);
}

.login-container button {
  padding: 14px;
  background: #1d995b;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 1s ease;
}

.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 153, 91, 0.3);
}

.forgot-link {
  color: #1d995b;
  text-decoration: none;
  font-size: 0.75em;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s, color 1s ease;
}

.forgot-link:hover { opacity: 1; }

/* Final Transition Elements */
.final-transition-svg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  overflow: visible;
  z-index: 2000;
  pointer-events: none;
}

.spark-group { filter: drop-shadow(0 0 8px #1d995b); opacity: 0; }
.circle-path-trail { 
  fill: none; 
  stroke: #1d995b; 
  stroke-width: 2; 
  stroke-linecap: round; 
  filter: drop-shadow(0 0 4px #1d995b); 
  opacity: 0; 
}

/* Hint */
.interaction-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
}

