/* ===============================
   RESET BÁSICO
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===============================
   BACKGROUND GERAL
================================ */
.login-page {
  min-height: 100vh;
  background-image: url("/img/fundopage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 1.2s ease;
}

/* estrelas sutis */
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff55 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  animation: starsMove 60s linear infinite;
}

/* ===============================
   CARD
================================ */
.login-card {
  width: 100%;
  max-width: 380px;
  background: #f6f6f6;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 35px 30px;
  position: relative;
  animation: slideUp 1s ease;
}

/* ===============================
   FORM
================================ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-title {
  text-align: center;
  color: #05521b;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===============================
   INPUTS
================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  color: #555;
}

.input-field {
  height: 44px;
  border-radius: 22px;
  border: none;
  padding: 0 18px;
  background: #426c44;
  color: #fafaf8;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-field::placeholder {
  color: #5f3b6b;
}

.input-field:focus {
  outline: none;
  background: hsl(130, 96%, 19%);
  box-shadow: 0 0 0 2px #02ba14;
}

/* ===============================
   BOTÃO
================================ */
.login-button {
  margin-top: 10px;
  height: 46px;
  border-radius: 25px;
  border: none;
  background: #167235;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-button:hover {
  background: #0b7d2a;
  transform: translateY(-2px);
}

.login-button:active {
  transform: scale(0.97);
}

/* efeito brilho */
.login-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
}

.login-button:hover::after {
  animation: shine 0.8s ease;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px;
  }

  .login-title {
    font-size: 22px;
  }
}

/* ===============================
   ANIMAÇÕES
================================ */
@keyframes fadeIn {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  to {
    transform: translateX(100%);
  }
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1000px 1000px;
  }
}
