body { 
  background: #f0f2f5; /* Microsoft background color */ 
  font-family: "Segoe UI", sans-serif; /* Common Microsoft font */ 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  height: 100vh;

  /* ADDED */
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
} 
 
.container { 
  background: #fff; 
  padding: 30px; 
  border-radius: 8px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  width: 400px;

  /* ADDED */
  max-width: 100%;
  box-sizing: border-box;

  /* Slow pop-up */
  animation: slowPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
} 
 
h1 { 
  color:#0078d4; /* Microsoft blue */

  /* ADDED */
  animation: fadeUp 0.7s 0.15s both;
} 
 
label { 
  display: block; 
  margin-bottom: 5px;

  /* ADDED */
  animation: fadeUp 0.7s 0.25s both;
} 
 
input[type="text"], 
input[type="password"] { 
  padding: 10px; 
  border: 1px solid #ddd; 
  margin-bottom: 10px; 
  width: 100%; 
  border-radius: 4px;

  /* ADDED */
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  outline: none;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;

  animation: fadeUp 0.7s 0.3s both;
}

/* ADDED */
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0078d7;

  box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.12);

  transform: translateY(-2px);
}
 
button { 
  background: #0078d7; /* Microsoft blue */ 
  color: white; 
  padding: 12px 20px; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer;

  /* ADDED */
  font-family: inherit;
  font-size: 15px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;

  animation: fadeUp 0.7s 0.4s both;
}

/* ADDED */
button:hover {
  background: #006bbd;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ADDED */
button:active {
  transform: translateY(0) scale(0.97);
}


/* =========================================
   SLOW POP-UP ANIMATIONS
   ========================================= */

@keyframes slowPop {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.94);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   SMALL PHONE RESPONSIVENESS
   ========================================= */

@media (max-width: 480px) {

  body {
    padding: 15px;
    height: auto;
    min-height: 100vh;
  }

  .container {
    width: 100%;
    padding: 24px 20px;
    border-radius: 8px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 16px;
    padding: 11px;
  }

  button {
    width: 100%;
    padding: 13px 20px;
  }
}


/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 350px) {

  body {
    padding: 10px;
  }

  .container {
    padding: 20px 15px;
  }

  h1 {
    font-size: 21px;
  }

  input[type="text"],
  input[type="password"] {
    width: 100%;
  }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .container,
  h1,
  label,
  input[type="text"],
  input[type="password"],
  button {
    animation: none;
    transition: none;
  }
}


