body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Animation de fond */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(88, 204, 2, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(109, 151, 115, 0.1) 0%,
      transparent 50%
    );
  animation: rotate 20s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#login-container {
  background: var(--bg-elevated);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px var(--shadow);
  border: 2px solid var(--border-light);
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

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

#logo-login {
  text-align: center;
  margin-bottom: 32px;
}

#logo-login img {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

#logo-login h1 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--edmoi-sage) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

#logo-login p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
}

.form-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: 16px;
}

.tab-button {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-button.active {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 4px 12px rgba(88, 204, 2, 0.3);
}

.tab-button:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(88, 204, 2, 0.1);
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-green);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(88, 204, 2, 0.1);
}

.password-requirements {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    180deg,
    var(--primary-green) 0%,
    var(--primary-green-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 var(--primary-green-dark);
  margin-top: 8px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-green-dark);
}

.submit-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-green-dark);
}

.divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-button:hover {
  border-color: var(--primary-green);
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.social-button img {
  width: 20px;
  height: 20px;
}

.forgot-password {
  text-align: right;
  margin-top: 12px;
}

.forgot-password a {
  color: var(--primary-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.forgot-password a:hover {
  color: var(--primary-green-dark);
  text-decoration: underline;
}

.terms {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.terms a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

.terms a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  #login-container {
    padding: 32px 24px;
  }

  #logo-login h1 {
    font-size: 28px;
  }

  #logo-login img {
    height: 60px;
  }
}
