/* m-TRACKER login uplift (2026-11) — loaded after the page's own <style>, so it only restyles.
 * Same form, same fields, same action (login.php). PETRONAS palette. */
html { background: #ffffff; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, #f5fbfa 55%, #eaf6f5 100%) fixed;
  overflow-x: hidden;
}
#mtLoginWave { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; }
.wrapper { position: relative; z-index: 1; }
.wrapper, .wrapper * { box-sizing: border-box; }   /* same as Bootstrap; keeps the card inside small screens even if the CDN is slow */

#formContent {
  max-width: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;                         /* solid: the logos are JPGs with a white background */
  box-shadow: 0 30px 70px rgba(0, 63, 61, .20), 0 4px 14px rgba(0, 63, 61, .08);
  border: 1px solid rgba(0, 161, 156, .12);
}
#formContent::before {                       /* animated brand line on top of the card */
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #763F98, #20419A, #00A19C, #BFD730, #00A19C, #20419A, #763F98);
  background-size: 300% 100%;
  animation: mtLoginLine 10s linear infinite;
}
@keyframes mtLoginLine { to { background-position: 300% 0; } }
#formContent > .fadeIn.first { padding: 22px 30px 6px; }
#formContent > .fadeIn.first img { max-width: 92%; }

#formContent input[type=text],
#formContent input[type=password] {
  width: 82%;
  margin: 7px auto;
  padding: 15px 22px;
  border-radius: 14px;
  border: 2px solid #e3eceb;
  background: #f4f8f8;
  color: #1d2b2f;
  font-size: 16px;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
#formContent input[type=text]:focus,
#formContent input[type=password]:focus {
  background: #fff;
  border-color: #00A19C;
  box-shadow: 0 0 0 5px rgba(0, 161, 156, .14);
}
#formContent input::placeholder { color: #9fb0b3; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }

#formContent input[type=submit] {
  margin: 14px 20px 30px;
  padding: 15px 86px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .14em;
  background: linear-gradient(120deg, #00615E, #00A19C);
  background-size: 160% 100%;
  box-shadow: 0 12px 26px rgba(0, 161, 156, .35);
  transition: background-position .4s ease, transform .2s ease, box-shadow .3s ease;
}
#formContent input[type=submit]:hover {
  background-color: transparent;
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 161, 156, .45);
}
#formContent > .fadeIn.fifth { padding: 0 30px 18px; }
#formContent > .fadeIn.fifth img { max-width: 70%; }

#formFooter { background: #f4f8f8; border-top: 1px solid #e3eceb; border-radius: 0; }
#formFooter a { color: #00A19C; font-weight: 600; }
.underlineHover:after { background-color: #00A19C; }
.underlineHover:hover { color: #00615E; }

/* login message (wrong password etc.) */
.mt-login-msg {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 5; max-width: 90%;
  padding: .75rem 1.3rem; border-radius: 14px;
  background: #fff; color: #8a1f1b; font-size: 15px; font-weight: 600;
  border: 1px solid #f3c9c7; box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
  animation: mtMsg .5s ease-out both;
}
.mt-login-msg br { display: none; }
@keyframes mtMsg { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) { #formContent::before { animation: none; } }
@media (max-width: 480px) {
  #formContent input[type=submit] { padding: 14px 60px; }
}
