.workly-login {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(120deg, #162139 0%, #5d5ca5 50%, #bddcb6 100%);
  background-size: 400% 400%;
  animation: gradient-move 15s ease-in-out infinite;
  height: 100vh;
  width: 100vw;
  padding: 2rem;
  font-family: "proxima-nova", sans-serif;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  max-width: 25vw;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s cubic-bezier(0.77, 0, 0.18, 1);
}

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

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card h2 {
  font-family: "tt-commons-pro", sans-serif;
  color: #162139;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

form input,
form select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  border: 1px solid #dbeafe !important;
  font-size: 16px;
  background: #f8fafc;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus {
  border-color: #68c6df;
  outline: none;
}

form select {
  background-color: #fff;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-weight: 500;
  color: #162139;
  cursor: pointer;
  user-select: none;
  margin: 0;
  line-height: 1.2;
}

.remember-label input[type="checkbox"] {
  accent-color: #68c6df;
  width: 18px;
  height: 18px;
  margin: 0 0.4em 0 0;
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: 0;
}

.remember-label span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.forgot-password {
  color: #162139 !important;
  background: none;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.forgot-password:hover {
  color: #fff !important;
  background: #68c6df;
}

/* Bouton animé avec flèche */
.connexion-btn {
  width: 100%;
  padding: 1rem 0;
  background: #162139;
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #68c6df22;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s,
    padding-right 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

/* Flèche FA, cachée par défaut */
.connexion-btn::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2rem;
  color: #68c6df;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #68c6df22;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2;
}

.connexion-btn:hover {
  background: #68c6df;
  box-shadow: 0 4px 16px #68c6df33;
  transform: scale(1.03);
  padding-right: 3.5rem;
}
.connexion-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Responsive */
@media (max-width: 600px) {
  .login-card {
    padding: 1.2rem 0.7rem;
    max-width: 98vw;
  }
  .connexion-btn {
    font-size: 1rem;
    padding: 1rem 0.5rem;
    border-radius: 2rem;
  }
  .connexion-btn::after {
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
  }
}
