* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Background decoration */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(221, 22, 22, 0.05);
  animation: float 18s infinite ease-in-out;
}

body::before {
  width: 450px;
  height: 450px;
  top: -200px;
  left: -150px;
}

body::after {
  width: 350px;
  height: 350px;
  bottom: -150px;
  right: -150px;
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 40px) scale(1.05);
  }
}

/* LOGIN CARD */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.login-card {
  background: rgba(6, 17, 58, 0.03); /* léger bleu foncé translucide */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 17, 58, 0.1);
  border-radius: 10px;
  padding: 45px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */
.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.logo-icon {
  font-size: 3rem;
  color: #dd1616; /* rouge */
  animation: pulse 2s infinite;
}

.logo-image {
  height: 60px;
  width: auto;
  /* animation: pulse 2s infinite; */
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.login-header h1 {
  color: #06113a; /* bleu foncé */
  font-size: 2rem;
  font-weight: 800;
  margin-top: 10px;
}

.logo-text {
  color: #dd1616;
}

/* ALERT */
.alert {
  background: rgba(221, 22, 22, 0.08);
  border: 1px solid rgba(221, 22, 22, 0.3);
  color: #dd1616;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 25px;
}

/* FORM LABELS */
.form-label {
  color: #06113a;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* INPUTS */
.form-control {
  background: white;
  border: 1px solid rgba(6, 17, 58, 0.25);
  color: #06113a;
  padding: 14px 18px;
  border-radius: 14px;
  transition: all 0.3s;
  font-size: 1rem;
}

.form-control:focus {
  background: #ffffff;
  border-color: #06113a;
  box-shadow: 0 0 0 0.2rem rgba(221, 22, 22, 0.25);
}

.form-control::placeholder {
  color: rgba(6, 17, 58, 0.4);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(6, 17, 58, 0.4);
  pointer-events: none;
}

/* BUTTON */
.btn-login {
  background: #dd1616;
  border: none;
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.1s;
  width: 100%;
  margin-top: 20px;
}

.btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(221, 22, 22, 0.35);
  background: #c01414;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .login-card {
    padding: 35px 28px;
  }

  .login-header h1 {
    font-size: 1.6rem;
  }
}
