
/* Add custom CSS here, it will not be overwritten by product updates */

/* --- Fibermax support footer + login help (Airmax Tally Cloud) --- */
#fmx-support {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  font-family: 'Segoe UI', Arial, sans-serif;
  text-align: center;
  padding: 8px 12px 10px;
  color: #1a1a1a;
  /* Indian flag tricolour: saffron -> white -> india green */
  background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}
#fmx-support a { color: #000080; text-decoration: none; }
#fmx-support a:hover { color: #138808; text-decoration: underline; }
#fmx-support .fmx-help { font-size: 13px; margin-bottom: 5px; font-weight: 600; }
#fmx-support .fmx-help a { font-weight: 700; }
#fmx-support .fmx-foot { font-size: 12px; line-height: 1.5; font-weight: 600; }
#fmx-support .fmx-foot .sep { opacity: 0.45; margin: 0 6px; }
#fmx-support .fmx-dev { font-size: 11px; color: #333333; margin-top: 3px; }

@media (max-width: 480px) {
  #fmx-support .fmx-foot .sep { display: none; }
  #fmx-support .fmx-foot a, #fmx-support .fmx-foot span { display: inline-block; margin: 0 6px; }
}

/* ==========================================================================
   Login page redesign — Airmax Tally Cloud (2026-09-14)
   Replaces the default TSplus 'photo' theme (maroon card + Balloon.jpg).
   New wallpaper = brand-tinted dark gradient; card = frosted glass.
   ========================================================================== */
html {
  background:
    radial-gradient(1250px 640px at 78% -12%, rgba(255, 153, 51, 0.26), transparent 58%),
    radial-gradient(1050px 740px at 6% 114%, rgba(19, 136, 8, 0.26), transparent 55%),
    radial-gradient(820px 820px at 50% 46%, rgba(255, 255, 255, 0.045), transparent 68%),
    linear-gradient(135deg, #0a1c29 0%, #123540 55%, #0a2531 100%) !important;
  background-attachment: fixed !important;
}

.center, #divcenter {
  box-sizing: border-box !important;
  width: 340px !important;
  max-width: 92vw !important;
  /* Robust centering: margin:auto instead of the fragile left:50%/-margin trick
     (which drifts under browser zoom). left/right:auto cancels the inline left:50%. */
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 64px auto 96px !important;
  padding: 28px 26px 24px !important;
  text-align: center;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
/* tricolour accent along the top of the card */
.center::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
}
.center > p, #divcenter > p {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: 0.3px;
  margin: 8px 0 14px; color: #ffffff;
}
.logo { max-width: 190px !important; }

/* Bulletproof centering: flex-column on the form container centers every VISIBLE
   control identically — including the password, which TSplus wraps in an inline
   <span>. Hidden controls (server dropdown, Send OTP) keep their display:none and
   simply don't participate, so nothing forces them to appear. */
#logonformid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
#tr-password, #tr-domain, #tr-verifypassword { width: 100%; text-align: center; }

/* text/password fields (radios are inside #accesstypeuserpanel, untouched) */
input[type="text"], input[type="password"] {
  box-sizing: border-box !important;
  width: 220px !important;
  height: 46px !important;
  line-height: 24px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  margin: 8px auto !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input[type="text"]:focus, input[type="password"]:focus {
  outline: none !important;
  border-color: #ffb366 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.28) !important;
}
::placeholder { color: rgba(255, 255, 255, 0.72) !important; opacity: 1; }

select {
  box-sizing: border-box !important;
  width: 220px !important; margin: 8px auto !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 9px !important; color: #ffffff !important;
}

/* secondary buttons (Change Password, OTP, etc.) = subtle glass.
   NOTE: no display override — Send OTP keeps its inline display:none until TSplus
   reveals it. */
input[type="button"] {
  box-sizing: border-box !important;
  width: 220px !important;
  margin: 8px auto !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.15s;
}
input[type="button"]:hover { background: rgba(255, 255, 255, 0.22) !important; }

/* primary Log On button = saffron gradient */
button#buttonLogOn {
  box-sizing: border-box !important;
  width: 220px !important;
  margin: 10px auto 4px !important;
  background: linear-gradient(135deg, #ff9933 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 11px !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35) !important;
  transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
}
button#buttonLogOn:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(249, 115, 22, 0.48) !important; }
button#buttonLogOn:active { transform: translateY(1px); }
