
 /* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
   margin: 0; /* ensure no extra browser margins */
}

.form-container {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 340px;
  margin: 0 2px; /* <-- adds small margin on mobile */
  box-sizing11: border-box; /* ensures padding and margin don't overflow */  
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

input {
  width: 93%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #007bff;
}

label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
}

input:focus + label,
input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #007bff;
  background: #fff;
  padding: 0 5px;
}

button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 350px) {
  .form-container {
    padding: 1.5rem;
    margin: 0 5px;
  }

  h2 {
    font-size: 1.2rem;
  }

  input,
  button {
    font-size: 14px;
    padding: 8px;
  }

  label {
    font-size: 14px;
  }
  body {
    transform: translateY(-25px);
  } 
}