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

/* ===== COLORES ===== */
:root {
  --verde-oscuro: #124d19;
  --verde-medio: #2e7d32;
  --verde-claro: #d3eeaf;
  --verde-pastel: #e9f7d5;
  --amarillo: #f5dd5d;
  --blanco: #ffffff;
}

/* ===== ESTILO GENERAL ===== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--verde-claro);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== ENCABEZADO ===== */
header {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header a {
  text-decoration: none;
  color: var(--blanco);
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

header a:hover {
  color: var(--amarillo);
}

/* ===== CONTENEDOR DEL LOGIN ===== */
.login-container {
  background: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  margin: 80px auto;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
  color: var(--verde-medio);
  margin-bottom: 20px;
  font-weight: 700;
}

/* ===== FORMULARIO ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="password"] {
  padding: 12px;
  border: 2px solid var(--verde-pastel);
  border-radius: 10px;
  font-size: 1em;
  outline: none;
  background-color: #f9fff3;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--verde-medio);
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.3);
}

/* ===== BOTÓN ===== */
button {
  background: var(--verde-medio);
  color: var(--blanco);
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  background: var(--verde-oscuro);
  transform: scale(1.05);
}

/* ===== MENSAJE ===== */
#mensaje {
  margin-top: 10px;
  font-weight: 500;
  text-align: center;
}

/* ===== NOTA ===== */
.note {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
  background-color: var(--verde-pastel);
  padding: 10px;
  border-radius: 8px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  header {
    justify-content: center;
  }

  header a {
    font-size: 1em;
  }
}
