/* Fylext login / register skin — restyles the existing pages, login logic untouched */
body.fx-auth, body.fx-chooser { font-family: Manrope, system-ui, sans-serif; }

/* ---------- login / register split layout ---------- */
.fx-row { display: flex !important; flex-wrap: wrap !important; min-height: 100vh; margin: 0 !important; background: #FFFFFF; }
.fx-row > .fx-left, .fx-row > .fx-right { width: auto !important; max-width: none !important; }
.fx-left {
  flex: 1 1 480px !important; min-width: 0; background: #0A1F44 !important; color: #FFFFFF;
  position: relative; overflow: hidden; display: flex !important; flex-direction: column !important;
  justify-content: flex-start !important; align-items: stretch !important;
  padding: 36px 56px !important; box-shadow: inset -3px 0 0 #F2B230;
}
.fx-left > *:not(.fx-new) { display: none !important; }
.fx-new { text-align: left; position: relative; display: flex; flex-direction: column; gap: 22px; height: 100%; }
.fx-new .fx-court { position: absolute; left: -96px; bottom: -36px; width: 640px; opacity: .08; pointer-events: none; }
.fx-new .fx-logo { height: 46px; width: auto; align-self: flex-start; }
.fx-new .fx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #FFC94D; margin-top: 18px; }
.fx-new .fx-h { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 36px; line-height: 1.15; color: #FFFFFF; max-width: 480px; }
.fx-new .fx-h span { color: #FFC94D; }
.fx-new .fx-pts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #C9D3E6; font-size: 15px; }
.fx-new .fx-pts li { display: flex; gap: 10px; align-items: flex-start; }
.fx-new .fx-pts svg { flex-shrink: 0; margin-top: 3px; }
.fx-new .fx-illus { width: 100%; max-width: 480px; height: auto; max-height: 46vh; object-fit: contain; min-height: 0; align-self: center; margin-top: auto; }
.fx-new .fx-foot { font-size: 13px; color: #9FB0CC; align-self: flex-start; }
@media (min-width: 768px) {
  .fx-left { position: sticky !important; top: 0; height: 100vh; align-self: flex-start; }
}

.fx-right {
  flex: 1 1 480px !important; min-width: 0; display: flex !important; justify-content: center !important;
  align-items: center !important; padding: 72px 24px 40px !important; background: #FFFFFF; position: relative;
}
.fx-right > div { width: 100% !important; max-width: 440px; }
.fx-oldhead { display: none !important; }

.fx-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.fx-top .fx-iam { font-size: 13px; font-weight: 700; color: #5B6577; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid #C5CEDC; background: #FFFFFF; color: #1E2A3B !important; font-weight: 700; font-size: 13px; text-decoration: none !important;
}
.fx-chips a:hover { border-color: #0E3A8A; }
.fx-chips a.on { background: #0E3A8A; border-color: #0E3A8A; color: #FFFFFF !important; }
.fx-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 13px; font-weight: 800; color: #0E3A8A; background: #E8EEFB; padding: 5px 12px; border-radius: 999px;
}
.fx-seal {
  width: 22px; height: 22px; border-radius: 50%; background: #0A1F44; color: #FFC94D; border: 1.5px solid #F2B230;
  display: inline-flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-size: 10px; font-weight: 700;
}
.fx-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1.2; color: #0A1F44; }
.fx-sub { margin: 0; color: #5B6577; font-size: 15px; }

/* form controls */
.fx-right label { font-weight: 700 !important; font-size: 14px !important; color: #1E2A3B !important; }
.fx-right form input[type=email], .fx-right form input[type=text], .fx-right form input[type=tel],
.fx-right form input[type=number], .fx-right form input[type=password] {
  background: #FFFFFF !important; border: 1px solid #C5CEDC !important; border-radius: 12px !important;
  padding: 0 14px !important; min-height: 50px; font-size: 15px !important; color: #101828 !important; box-shadow: none !important;
}
.fx-right form input:focus { outline: 2px solid #0E3A8A !important; outline-offset: 1px; }
.fx-right form div:has(> input[type=password]), .fx-right form div:has(> input[type=text] + button) {
  background: #FFFFFF !important; border-radius: 12px !important; padding: 0 !important; position: relative;
}
.fx-right form div:has(> input[type=password]) > input { padding-right: 52px !important; }
.fx-right form div:has(> input[type=password]) > button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.fx-right input[type=checkbox] { width: 18px; height: 18px; accent-color: #0E3A8A; }
.fx-primary {
  min-height: 52px !important; border: 0 !important; border-radius: 12px !important; background: #0E3A8A !important;
  color: #FFFFFF !important; font-weight: 800 !important; font-size: 16px !important; width: 100%; box-shadow: none !important;
}
.fx-primary:hover { background: #0A2A66 !important; }
.fx-primary:disabled { background: #C9D3E6 !important; color: #3D4A5C !important; }
.fx-verify {
  min-height: 50px !important; border: 0 !important; border-radius: 12px !important; background: #F2B230 !important;
  color: #0A1F44 !important; font-weight: 800 !important; padding: 0 16px !important;
}
.fx-link { background: none !important; border: 0 !important; color: #0E3A8A !important; font-weight: 700 !important; text-decoration: underline; padding: 0 !important; }
.fx-right a, .fx-right span[style*="cursor"] { color: #0E3A8A !important; font-weight: 700; }

/* ---------- role chooser (/Register/List) ---------- */
body.fx-chooser [class*="_wrapper_"] { background: #0A1F44 !important; position: relative; overflow: hidden; }
body.fx-chooser [class*="_heading_"] { font-family: 'Playfair Display', Georgia, serif !important; font-weight: 700 !important; color: #FFFFFF !important; }
body.fx-chooser [class*="_heading_"] span { color: #FFC94D !important; font-family: inherit !important; }
body.fx-chooser [class*="_subHeading_"] { color: #C9D3E6 !important; font-family: Manrope, system-ui, sans-serif !important; }
body.fx-chooser [class*="_card_"] {
  background: #FFFFFF !important; border: 1px solid #E4E8F0 !important; border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18) !important; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
body.fx-chooser [class*="_card_"]:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.25) !important; }
body.fx-chooser [class*="_imageWrapper_"] { background: #0A1F44 !important; border-radius: 12px !important; border-bottom: 3px solid #F2B230; }
body.fx-chooser [class*="_imageWrapper_"]:has(img.fx-role-img) { height: 150px !important; overflow: hidden !important; }
body.fx-chooser [class*="_imageWrapper_"] img.fx-role-img { position: static !important; transform: none !important; object-fit: contain !important; width: 100% !important; height: 100% !important; padding: 6px; }
body.fx-chooser [class*="_card_"] h2 { font-family: 'Playfair Display', Georgia, serif !important; color: #0A1F44 !important; }
body.fx-chooser [class*="_description_"] { color: #3D4A5C !important; font-family: Manrope, system-ui, sans-serif !important; }
body.fx-chooser [class*="_login_"] { background: #0E3A8A !important; color: #FFFFFF !important; border-radius: 10px !important; }
body.fx-chooser [class*="_register_"] { background: #FFFFFF !important; color: #0E3A8A !important; border: 1.5px solid #0E3A8A !important; border-radius: 10px !important; }
body.fx-chooser [class*="_register_"] svg, body.fx-chooser [class*="_login_"] svg { color: currentColor; }

@media (max-width: 767px) {
  .fx-left { padding: 20px 24px !important; box-shadow: inset 0 -3px 0 #F2B230; }
  .fx-new { gap: 0; }
  .fx-new .fx-eyebrow, .fx-new .fx-h, .fx-new .fx-pts, .fx-new .fx-illus, .fx-new .fx-foot, .fx-new .fx-court { display: none; }
  .fx-new .fx-logo { height: 38px; }
  .fx-right { padding: 56px 18px 32px !important; }
  .fx-title { font-size: 28px; }
}

/* Home: hide the old React header, banner and panels from the first paint, so the old design
   never flashes before home-hybrid.js puts the new top section in. These sections exist only on the home page. */
#root:has(> section.banner-section) > header.header,
#root > section.banner-section,
#root > section.legal-panels-section { display: none !important; }
#root:has(> section.banner-section) > section.counter-section { margin-top: 0 !important; }

/* fx-mobile-fix: compact header on phones */
@media (max-width:767px){.fx-row>.fx-left,.fx-row>.fx-right{width:100%!important;max-width:100%!important}.fx-row>.fx-left{min-height:0!important;height:auto!important;flex:0 0 auto!important;padding-top:16px!important;padding-bottom:16px!important}.fx-left .fx-new{height:auto!important;min-height:0!important}.fx-row>.fx-right{flex:1 1 auto!important;align-items:flex-start!important;min-height:0!important}}
