/* =========================================
   1. Importación de Fuentes
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================
   2. Configuración Base del Cuerpo
   ========================================= */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* =========================================
   3. Fondo (Verde Forestal)
   ========================================= */
.bg-forest {
 
  background-color: #1b5e20; 
  background: radial-gradient(circle at center, #2e6b36 0%, #1b4d28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* =========================================
   4. Tarjeta de Login (Contenedor Blanco)
   ========================================= */
.login-card {
  background: #ffffff;
  border-radius: 16px;       
  padding: 40px 30px;
  width: 90%;               
  max-width: 400px;          
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); 
  text-align: center;
}

/* =========================================
   5. Logo
   ========================================= */
.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-container img {
 
  width: 280px;          
  max-width: 100%;      
  height: auto;          
  object-fit: contain;   
}

/* =========================================
   6. Títulos y Textos
   ========================================= */
h2.title-forest {
  color: #000000;        
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 10px;
  margin-bottom: 5px;
}

p.subtitle {
  font-size: 0.9rem;
  color: #757575;       
  margin-top: 0;
  margin-bottom: 30px;
}

/* =========================================
   7. Inputs (Campos de Texto)
   ========================================= */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-control {
  width: 100%;
  padding: 14px 15px;
  font-size: 0.95rem;
  color: #333;
  background-color: #f8f9fa; 
  border: 1px solid #dee2e6;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;    
  transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:focus {
  background-color: #fff;
  border-color: #2e7d32;     
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* =========================================
   8. Botón 
   ========================================= */
.btn-forest {
  width: 100%;
  background-color: #388e3c; 
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.1s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-forest:hover {
  background-color: #2e7d32;
}

.btn-forest:active {
  transform: scale(0.98);   
}

/* =========================================
   9. Mensajes de Error
   ========================================= */
.error-msg {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid #ef9a9a;
}

/* =========================================
   10. Responsividad (Celulares)
   ========================================= */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
    width: 85%;
  }
  
  .logo-container img {
    width: 220px; 
  }

  h2.title-forest {
    font-size: 1.3rem;
  }
}