@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f4f9ee 0%, #dceccf 100%);
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  background: #4d8d28;
  border-radius: 50%;
  top: -250px;
  right: -180px;
  opacity: 0.12;
}

body::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: #2f6313;
  border-radius: 50%;
  bottom: -220px;
  left: -150px;
  opacity: 0.08;
}

.login {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 2;
}

.login_card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 45px 40px;
  border-radius: 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(77, 141, 40, 0.15);
}

.login_logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.login_logo img {
  width: 120px;
}

.login_card h1 {
  text-align: center;
  color: #032700;
  font-size: 2.2em;
  margin-bottom: 10px;
}

.login_card p {
  text-align: center;
  color: #666;
  line-height: 1.6;
  margin-bottom: 35px;
}

form {
  width: 100%;
}

.input_box {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
}

.input_box i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: #4d8d28;
}

.input_box input {
  width: 100%;
  height: 60px;
  border: none;
  outline: none;
  background: #f6f8f3;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0 55px;
  font-size: 1em;
  transition: 0.35s;
}

.input_box input:focus {
  border-color: #4d8d28;
  background: #fff;
}

.input_box input::placeholder {
  color: #999;
}

.ver_password {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}
button {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 50px;
  background: #2f6313;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.35s;
}

button:hover {
  background: #032700;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(47, 99, 19, 0.25);
}

.mensaje {
  display: block;
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 0.95em;
}

.olvido {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 25px;
}

.olvido a {
  color: #4d8d28;
  text-decoration: none;
  font-size: 0.92em;
  font-weight: 500;
  transition: 0.3s;
}

.olvido a:hover {
  color: #032700;
}

.loader {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.loader.active {
  display: flex;
}

.loader span {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #4d8d28;
  border-radius: 50%;
  animation: loader 0.8s infinite alternate;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loader {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

/* RESPONSIVE */

@media (max-height: 720px), (max-width: 480px) {
  body {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 0;
  }

  body::before {
    width: 420px;
    height: 420px;
    top: -190px;
    right: -180px;
  }

  body::after {
    width: 340px;
    height: 340px;
    bottom: -170px;
    left: -150px;
  }

  .login {
    min-height: calc(100vh - 36px);
  }
}

@media (max-width: 380px) {
  .login {
    padding: 14px;
  }

  .login_card {
    padding: 28px 18px;
  }

  .login_card h1 {
    font-size: 1.55rem;
  }

  .login_card p,
  .mensaje {
    font-size: 0.9rem;
  }

  .input_box input {
    padding-left: 48px;
    padding-right: 48px;
  }
}
