/* --- Estilo base --- */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f4f4f4, #dfe9f3);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ✅ Contenedor que ocupa toda la pantalla */
.login-wrapper {
  width: 100%;
  height: 100vh; /* pantalla completa */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f4f4;
  padding: 0;
  margin: 0;
}

/* ✅ Caja del login */
.login-container {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-sizing: border-box;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.logo {
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #007bff;
}

.login-container h2 {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #333;
}

input, button {
  width: 100%;
  padding: 16px;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input {
  background: #f9f9f9;
  color: #000;
}

input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.5);
}

button {
  background: #007bff;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.5px;
}

button:hover {
  background: #0056b3;
  transform: scale(1.03);
}

.error { color: #ff4d4d; font-weight: bold; }
.success { color: #28a745; font-weight: bold; }

/* --- 📱 Ajustes responsivos para móviles --- */
@media (max-width: 768px) {
  .login-container {
    width: 95%;
    height: auto;
    border-radius: 0;
    padding: 50px 20px;
    max-width: none;
    box-shadow: none;
  }

  .logo {
    font-size: 2em;
  }

  .login-container h2 {
    font-size: 1.2em;
  }

  input, button {
    padding: 16px;
    font-size: 16px;
  }

  body, .login-wrapper {
    background: #ffffff; /* sin bordes ni espacios vacíos */
  }
}

@media (max-width: 480px) {
  .login-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo {
    font-size: 1.8em;
  }

  .login-container h2 {
    font-size: 1.1em;
  }

  input, button {
    padding: 14px;
    font-size: 15px;
  }
}
