@charset "UTF-8";
/* ====== STYLES GÉNÉRAUX ====== */
body { 
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #eaf6ff;
  font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  text-align: center;
}
.login-container {
  background: #fff;
  padding: 48px 38px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(39,71,97,0.18);
  width: 100%;
  max-width: 480px;
  min-width: 320px;
  min-height: 480px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1) 0.1s forwards;
  margin-bottom: 0;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.login-container h2 {
  margin-bottom: 28px;
  color: #274761;
  font-size: 2.3rem;
  font-weight: 700;
}
.login-container input {
  width: 96%;
  padding: 16px;
  margin-bottom: 22px;
  border: 1.5px solid #b0c4d6;
  border-radius: 10px;
  font-size: 1.08rem;
  outline: none;
  transition: border 0.2s;
}
.login-container input:focus, .login-container input:active {
  border: 2px solid #1abc9c;
  box-shadow: 0 0 0 3px #1abc9c33;
  background: #f8fcfa;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.login-container button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #2980b9 60%, #274761 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.login-container button:hover {
  background: linear-gradient(90deg, #274761 60%, #2980b9 100%);
}
.login-container .register-link {
  display: block;
  margin-top: 14px;
  font-size: 0.98rem;
}
.login-container .register-link a {
  color: #2980b9;
  text-decoration: underline;
}
/* ====== CHAMP MOT DE PASSE ====== */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 90%;
  margin: 0 auto 16px auto;
}
.password-field input {
  width: 100%;
  margin-bottom: 0;
  padding-right: 32px;
}
.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}
.toggle-password svg {
  width: 18px;
  height: 18px;
  stroke: #555;
}
/* ====== LOGO ====== */
.logo-login {
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}
.logo-login img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(39,71,97,0.10);
  background: #f4f7fa;
  object-fit: contain;
}
.login-container h2 {
  margin-bottom: 18px;
  color: #274761;
  font-size: 2rem;
  font-weight: 700;
}
.login-container form.shake {
  animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
  100% { transform: none; }
}
.login-error {
  opacity: 0;
  transition: opacity 0.4s;
}
/* ====== FOOTER ====== */
.footer-pro {
  background: rgba(255,255,255,0.92);
  color: #2c3e50;
  padding: 8px 0 2px 0;
  text-align: center;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 8px rgba(44,62,80,0.07);
  margin-top: 10px;
  font-size: 0.93rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
}
.footer-col {
  flex: 1 1 120px;
  min-width: 90px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-logo {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(44,62,80,0.10));
}
.footer-title {
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.footer-label {
  font-weight: 500;
  color: #1abc9c;
  font-size: 0.97rem;
  margin-bottom: 2px;
}
.footer-link {
  color: #2c3e50;
  text-decoration: underline;
  font-size: 1.01rem;
  transition: color 0.18s;
}
.footer-link:hover {
  color: #1abc9c;
}
.footer-socials {
  display: flex;
  gap: 7px;
  margin-top: 0;
  justify-content: center;
  align-items: center;
}
.footer-social {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}
.footer-social svg {
  width: 18px;
  height: 18px;
}
.footer-copyright {
  font-size: 0.89rem;
  color: #aaa;
  margin-top: 2px;
}
/* === LOGO RESPONSIVE === */
.logo-login-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 18px auto;
}

@media (max-width: 700px) {
  .login-container {
    width: 98vw;
    min-width: unset;
    padding: 18px 2vw 24px 2vw;
    border-radius: 16px;
  }
  .logo-login-img {
    width: 90px;
    height: 90px;
  }
  h2 {
    font-size: 1.3rem;
  }
  form input,
  form button {
    font-size: 1rem;
    padding: 10px;
  }
  .register-link {
    font-size: 0.98rem;
  }
}

@media (max-width: 450px) {
  .login-container {
    padding: 10px 1vw 16px 1vw;
  }
  .logo-login-img {
    width: 60px;
    height: 60px;
  }
  h2 {
    font-size: 1.1rem;
  }
}
@media (max-width: 350px) {
  .login-container {
    padding: 4px 0 8px 0;
    min-width: 0;
  }
  .logo-login-img {
    width: 40px;
    height: 40px;
  }
}