body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.login-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 90%;              /* ocupa casi todo el ancho en móviles */
  max-width: 500px;        /* límite en pantallas grandes */
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  font-weight: 500;
  color: #202124;
  font-size: clamp(1.4rem, 4vw, 1.8rem); /* escala según pantalla */
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #5f6368;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 16px; /* un poco más grande para móviles */
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #1a73e8;
}

button {
  width: 100%;
  padding: 14px;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1558b0;
}

#error-message {
  color: #d93025;
  font-size: 14px;
  margin-bottom: 15px;
  display: none;
}

/* 📱 Ajustes específicos para pantallas pequeñas */
@media (max-width: 480px) {
  .login-container {
    padding: 20px;
    border-radius: 8px;
    width: 100%; /* ocupa todo el ancho en móviles */
  }

  h2 {
    font-size: 1.3rem;
  }

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