#login-form-wrap { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2 !important;
}

body,
#bmfsweb,
#main-content,
#content {
  background: #f2f2f2 !important;
  min-height: 100vh;
}

.trd-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 0%, rgba(227,24,55,0.06), transparent 55%),
    linear-gradient(180deg, #f4f5f7 0%, #f1f2f4 50%, #eef0f3 100%);
}

.trd-card {
  width: min(760px, 94vw);
  border-radius: 26px;
  padding: 42px 28px 36px;
  text-align: center;
  transform: translateY(-60px);
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.18),
    0 2px 0 rgba(255,255,255,0.35) inset;
}

/* logo */		  
.trd-logo-img {
  max-width: 520px;
  width: 92%;
  height: auto;
}

/* title */		   
.trd-login-title {
  font-size: 34px;
  margin: 24px 0 30px;
  color: #333;
  letter-spacing: 0.2px;
}
.trd-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* base button */				 
.trd-btn {
  width: min(640px, 92%);
  border-radius: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
}

/* PRIMARY SSO */
.trd-btn-primary {
  background: #e31837;
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 24px;
  text-align: center;
  line-height: 1.1;
  box-shadow:
    0 18px 45px rgba(227, 24, 55, 0.28),
    0 2px 0 rgba(255,255,255,0.18) inset;
}

.trd-btn-primary:hover {
  background: #cc1632;
  transform: translateY(-1px);
  box-shadow:
    0 22px 55px rgba(227, 24, 55, 0.35),
    0 2px 0 rgba(255,255,255,0.18) inset;
}

/* main line */
.trd-btn-main {
  font-size: 19px;
  font-weight: 700;
  display: block;
  line-height: 1.15;
}

/* sub line */
.trd-btn-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 3px;
  display: block;
  line-height: 1.1;
}

.trd-btn-secondary {
  margin-top: 18px;
  background: rgba(255,255,255,0.88);
  color: #2a5db0;
  border: 1px solid rgba(190,190,190,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  font-size: 19px;
  font-weight: 700;
}

.trd-btn-secondary:hover {
  background: rgba(255,255,255,0.96);
  transform: translateY(-1px);
}

/* POPUP */
.trd-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 16, 0.40);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trd-popup-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px 18px 12px 18px;
  width: auto;
  max-width: 520px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: inline-block;
}

/* close */		   
.trd-popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  border-radius: 10px;
  color: #111;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

#popup-login-container #login-form-wrap {
  margin: 0 auto !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
}

#popup-login-container table,
#popup-login-container form,
#popup-login-container .login-form,
#popup-login-container .content,
#popup-login-container .container {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

#trd-popup {
  position: fixed;
}

#trd-popup > ul.error-text {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  width: auto;
  max-width: 520px;
}

#trd-popup > ul.error-text:before {
  content: "Your account has been locked. Please contact the Administrator (at TridentCPQ@flowserve.com) to reset the password.";
  background: #fff4f4;
  border: 1px solid rgba(34, 34, 34, 0.5);
  border-radius: 3px;
  box-shadow: 2px 2px 4px rgba(34, 34, 34, 0.5);
  color: #880000;
  font-size: 1.5em;
  font-family: "Helvetica Neue", helvetica, arial, sans-serif;
  padding: 5px 10px;
  text-align: center;
  white-space: nowrap;
  position: static;
}
