* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f7f7f7 0%, #eaeaea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h2 {
  margin: 0 0 1.8rem 0;
  color: #333;
  font-weight: 600;
  font-size: 1.35rem;
}

input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 1rem;
  margin-top: 0.35rem;
  background: #4a69bd;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover { background: #3c5aa6; }
button[disabled] { opacity: .5; cursor: not-allowed; }

.password-wrapper { position: relative; margin-bottom: 1.2rem; }
.password-toggle {
  position: absolute; right: 12px; top: 12px; cursor: pointer; font-size: 1.1rem; user-select: none;
}

.login-box {
  position: relative;
}

.login-logo-inside {
  text-align: right;
  margin-top: 4px;   /* espace parfait sous "Version" */
  margin-bottom: 10px; /* équilibre vertical dans la mire */
  padding-right: 4px;  /* aligne mieux avec le bord droit du texte */
}

.login-logo-inside img {
  height: 26px;  /* taille idéale dans ton cadre */
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.login-logo-inside img:hover {
  opacity: 1;
}



.forgot {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: #4a69bd;
  text-decoration: none;
}
.forgot:hover { text-decoration: underline; }

.error-msg {
  background: #fdecea;
  color: #d93025;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 1rem;
  animation: fadeIn .3s ease;
  transition: opacity 1s ease;
  text-align: left;
}
@keyframes fadeIn { from {opacity: 0; transform: translateY(-5px);} to {opacity: 1; transform: translateY(0);} }

.password-strength { height: 6px; background: #eee; border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.password-strength .bar { height: 100%; width: 0%; background: #E74C3C; transition: width .3s, background .3s; }

.progress-bar { background: #eee; border-radius: 5px; height: 6px; overflow: hidden; margin-top: 5px; }
#progress-fill { background: #4a69bd; height: 100%; width: 0%; transition: width .3s ease; }

/* Accessibilité */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Badge version */
.app-version {
  margin-top: 10px; text-align: center; font-size: .8rem;
  color: rgba(0,0,0,0.55); opacity: 0; transform: translateY(5px);
  animation: fadeInUp .6s ease forwards .8s;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.app-version a { color: inherit; text-decoration: none; margin-left: 6px; font-size: 10px; opacity: .8; }

/* Bandeau cookies */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); color: #fff;
  font-size: .85rem; text-align: center; padding: 8px 10px;
  z-index: 1000; backdrop-filter: blur(3px);
}

#reopen-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #2ecc71;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.6s ease;
  z-index: 2000;
  display: none; /* 👈 masqué par défaut */
}
#reopen-banner.show {
  display: block; /* 👈 devient visible uniquement quand on ajoute la classe */
  opacity: 1;
  transform: translateY(0);
}
