/* === Estilos generales === */
body {
  margin: 0;
  padding: 0;
  font-family: "Dosis", sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

/* === Logo === */
.app-header {
  position: absolute;
  top: 15px;
  left: 15px;
}

.app-logo img {
  width: 100px;
  height: auto;
}

/* === Contenedor principal === */
.login-container {
  width: 90%;
  max-width: 400px;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

/* === Animación suave al cargar === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Título === */
h1 {
  font-size: 2rem;
  color: #117b24;
  margin-bottom: 20px;
}

/* === Formulario === */
.form-group {
  text-align: left;
  margin-bottom: 18px;
}

label {
  font-size: 1rem;
  color: #117b24;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #117b24;
}

/* === Botón === */
button {
  width: 100%;
  padding: 12px;
  background-color: #117b24;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0f6f1d;
  transform: scale(1.02);
}

/* === Texto secundario === */
p {
  font-size: 0.9rem;
  color: #333;
  margin-top: 15px;
}

a {
  color: #117b24;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Responsividad === */
@media (max-width: 768px) {
  .app-logo img {
    width: 80px;
  }

  .login-container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  input,
  button {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: 80px;
  }

  .app-logo img {
    width: 70px;
  }

  .login-container {
    width: 92%;
    padding: 16px;
    box-shadow: none;
  }

  h1 {
    font-size: 1.6rem;
  }

  button {
    padding: 10px;
  }

  p {
    font-size: 0.85rem;
  }
}
