
/* =====================================================================
   TwilightRun 2.1.23 - User / UC Rescue Layer
   Loaded by plg_system_truuserucrescue after template CSS.
   Purpose: restore TRU visual structure without overwriting custom-user.css.
   ===================================================================== */

:root {
  --tru-gold: #f3d76a;
  --tru-gold-2: #c39a2e;
  --tru-ink: #0a1018;
  --tru-ink-2: #121c2b;
  --tru-text: #111827;
  --tru-muted: #5d6878;
  --tru-cyan: #56e6ff;
  --tru-paper: #f7f8fb;
  --tru-card: #ffffff;
  --tru-line: rgba(14, 22, 34, .12);
  --tru-shadow: 0 22px 44px rgba(0,0,0,.22);
  --tru-soft-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* ---------------------------------------------------------------------
   1. Login override skin
   --------------------------------------------------------------------- */
html body #un-component #tru-login-page,
html body #tru-login-page {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: #eef4fb !important;
}

html body #un-component #tru-login-page *,
html body #tru-login-page * {
  box-sizing: border-box !important;
}

html body #un-component #tru-login-page .tru-login-card,
html body #tru-login-page .tru-login-card {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 34px clamp(22px, 4vw, 44px) !important;
  border: 0 !important;
  border-left: 4px solid var(--tru-gold) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: linear-gradient(180deg, #172334 0%, #0a111a 100%) !important;
  box-shadow: var(--tru-shadow), inset 0 1px 0 rgba(255,255,255,.04) !important;
  overflow: visible !important;
}

html body #tru-login-page .tru-login-header,
html body #tru-login-page .tru-login-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #tru-login-page .tru-login-header {
  margin-bottom: 22px !important;
}

html body #tru-login-page .tru-login-header h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--tru-gold) !important;
  font-family: "Orbitron", "Bank Gothic", "Eurostile", sans-serif !important;
  font-size: clamp(26px, 4vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

html body #tru-login-page .tru-login-header p {
  margin: 0 !important;
  color: #d6deea !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

html body #tru-login-page .tru-field {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #tru-login-page .tru-field label,
html body #tru-login-page .tru-remember {
  color: #eef4fb !important;
  -webkit-text-fill-color: #eef4fb !important;
  font-weight: 700 !important;
}

html body #tru-login-page .tru-field label {
  display: block !important;
  margin: 0 0 7px !important;
}

html body #tru-login-page .tru-field input {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(243, 215, 106, .42) !important;
  border-radius: 6px !important;
  background: #040b12 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

html body #tru-login-page .tru-password-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #tru-login-page .tru-password-toggle,
html body #tru-login-page .tru-btn,
html body #tru-login-page .tru-passkey-region :is(button, a, .btn, input[type="button"], input[type="submit"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 1px solid rgba(78, 54, 0, .45) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff48a 0%, #f3d76a 48%, #c39a2e 100%) !important;
  color: #08111b !important;
  -webkit-text-fill-color: #08111b !important;
  font-family: "Orbitron", "Bank Gothic", "Eurostile", sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.68) !important;
}

html body #tru-login-page .tru-password-toggle {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  cursor: pointer !important;
}

html body #tru-login-page .tru-btn {
  min-width: 110px !important;
  padding: 12px 18px !important;
}

html body #tru-login-page .tru-remember {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 20px !important;
}

html body #tru-login-page .tru-remember input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  accent-color: var(--tru-gold) !important;
}

html body #tru-login-page .tru-passkey-region {
  margin: 0 0 14px !important;
}

html body #tru-login-page .tru-passkey-region[hidden] {
  display: none !important;
}

html body #tru-login-page .tru-passkey-region :is(button, a, .btn, input[type="button"], input[type="submit"]) {
  width: 100% !important;
  padding: 12px 16px !important;
}

html body #tru-login-page .tru-passkey-region :is(button, a, .btn, input[type="button"], input[type="submit"]) * {
  float: none !important;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  color: inherit !important;
  font: inherit !important;
  text-align: inherit !important;
}

html body #tru-login-page .tru-passkey-region :is(img, svg, picture, figure, canvas, .icon, [class*="icon"]) {
  display: none !important;
}

html body #tru-login-page .tru-actions {
  margin: 0 0 18px !important;
}

html body #tru-login-page .tru-login-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

html body #tru-login-page .tru-login-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(243, 215, 106, .25) !important;
  border-radius: 6px !important;
  color: var(--tru-gold) !important;
  -webkit-text-fill-color: var(--tru-gold) !important;
  background: rgba(0,0,0,.16) !important;
  text-decoration: none !important;
  font-family: "Orbitron", "Bank Gothic", "Eurostile", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

/* Remove language key leakage if a cached view still prints it. */
html body :is(label,span,div,p,a):not(script):not(style) {
  text-decoration-thickness: auto;
}

/* ---------------------------------------------------------------------
   2. User / profile component rescue: image-four style folio/cards
   --------------------------------------------------------------------- */
html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component,
html body[class*="com_unifiedcommerce"] #un-component,
html body[class*="option-com_unifiedcommerce"] #un-component {
  box-sizing: border-box !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 28px auto !important;
  padding: clamp(18px, 3vw, 32px) !important;
  border: 0 !important;
  border-left: 4px solid var(--tru-gold) !important;
  border-radius: 12px !important;
  background: #f6f7fa !important;
  color: var(--tru-text) !important;
  -webkit-text-fill-color: initial !important;
  box-shadow: 0 24px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.92) !important;
  overflow: visible !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)):has(a[href*="profile"]),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)):has(a[href*="member-profile"]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: 28px !important;
  align-items: start !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > :is(.com-users-profile,.profile,.profile-edit,form,fieldset,.page-header),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:not(:has(a[href*="profile"])):not(:has(a[href*="member-profile"])) {
  grid-column: 1 !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > :is(aside,nav,.moduletable,.module,[class*="menu" i]),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) {
  grid-column: 2 !important;
  align-self: start !important;
  position: sticky !important;
  top: 96px !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) *,
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component *,
html body[class*="com_unifiedcommerce"] #un-component * {
  box-sizing: border-box !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(.page-header,.com-users-profile,.profile,.profile-edit,form,fieldset,.card,.well,.panel),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(.page-header,.uc-page-header,.uc-view-header,.uc-title-card,.uc-card,.uc-panel,.uc-section,.uc-box,.uc-form-section,.uc-profile-panel,.uc-account-panel,.uc-checkout-panel,.uc-cart-panel,.uc-product-card,.tru-uc-product-card,form,fieldset,.card,.well,.panel),
html body[class*="com_unifiedcommerce"] #un-component :is(.page-header,.uc-page-header,.uc-view-header,.uc-title-card,.uc-card,.uc-panel,.uc-section,.uc-box,.uc-form-section,.uc-profile-panel,.uc-account-panel,.uc-checkout-panel,.uc-cart-panel,.uc-product-card,.tru-uc-product-card,form,fieldset,.card,.well,.panel) {
  margin: 0 0 18px !important;
  padding: clamp(18px, 2.4vw, 26px) !important;
  border: 1px solid var(--tru-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--tru-text) !important;
  -webkit-text-fill-color: initial !important;
  box-shadow: var(--tru-soft-shadow) !important;
  overflow: visible !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(h1,h2,h3,h4,legend,.page-header h1,.page-header h2),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(h1,h2,h3,h4,legend,.uc-title,.uc-heading,.uc-page-title,.uc-page-header h1,.uc-view-header h1),
html body[class*="com_unifiedcommerce"] #un-component :is(h1,h2,h3,h4,legend,.uc-title,.uc-heading,.uc-page-title,.uc-page-header h1,.uc-view-header h1) {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #15191f !important;
  -webkit-text-fill-color: #15191f !important;
  font-family: "Orbitron", "Bank Gothic", "Eurostile", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .10em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 14px rgba(243,215,106,.35) !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(p,div,li,dt,dd,span,small,.muted,.help,.help-block,.form-text),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(p,div,li,dt,dd,span,small,.muted,.help,.help-block,.form-text,.uc-copy,.uc-description,.uc-subtitle,.uc-intro),
html body[class*="com_unifiedcommerce"] #un-component :is(p,div,li,dt,dd,span,small,.muted,.help,.help-block,.form-text,.uc-copy,.uc-description,.uc-subtitle,.uc-intro) {
  color: var(--tru-text) !important;
  -webkit-text-fill-color: var(--tru-text) !important;
  text-shadow: none !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(label,.form-label,.control-label),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(label,.form-label,.control-label),
html body[class*="com_unifiedcommerce"] #un-component :is(label,.form-label,.control-label) {
  display: block !important;
  margin: 0 0 6px !important;
  color: #1b2430 !important;
  -webkit-text-fill-color: #1b2430 !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(input,select,textarea),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(input,select,textarea),
html body[class*="com_unifiedcommerce"] #un-component :is(input,select,textarea) {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-height: 40px !important;
  padding: 9px 12px !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(input,select,textarea)::placeholder,
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(input,select,textarea)::placeholder,
html body[class*="com_unifiedcommerce"] #un-component :is(input,select,textarea)::placeholder {
  color: #667486 !important;
  -webkit-text-fill-color: #667486 !important;
  opacity: 1 !important;
}

html body:is(.com_users,.option-com_users,.view-profile,.view-registration,.view-reset,.view-remind) #un-component:not(:has(#tru-login-page)) :is(button,.btn,input[type="submit"],input[type="button"],a.btn),
html body:is(.com_unifiedcommerce,.option-com_unifiedcommerce) #un-component :is(button,.btn,input[type="submit"],input[type="button"],a.btn),
html body[class*="com_unifiedcommerce"] #un-component :is(button,.btn,input[type="submit"],input[type="button"],a.btn) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(78, 54, 0, .40) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff48a 0%, #f3d76a 48%, #c39a2e 100%) !important;
  color: #08111b !important;
  -webkit-text-fill-color: #08111b !important;
  font-family: "Orbitron", "Bank Gothic", "Eurostile", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Right side account menu card. */
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > :is(aside,nav,.moduletable,.module,[class*="menu" i]),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) {
  padding: 22px !important;
  border: 1px solid rgba(86,230,255,.48) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #142033 0%, #0b121d 100%) !important;
  color: #eef4fb !important;
  -webkit-text-fill-color: #eef4fb !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 24px rgba(86,230,255,.18) !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > :is(aside,nav,.moduletable,.module,[class*="menu" i]) :is(h1,h2,h3,h4,p,li,span,a),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]) :is(h1,h2,h3,h4,p,li,span,a),
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) :is(h1,h2,h3,h4,p,li,span,a) {
  color: #eef4fb !important;
  -webkit-text-fill-color: #eef4fb !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]) a,
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) a {
  color: #dff8ff !important;
  -webkit-text-fill-color: #dff8ff !important;
  text-decoration: none !important;
}

html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]) a:hover,
html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) a:hover {
  color: var(--tru-gold) !important;
  -webkit-text-fill-color: var(--tru-gold) !important;
}

@media (max-width: 960px) {
  html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)):has(a[href*="profile"]),
  html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)):has(a[href*="member-profile"]) {
    display: block !important;
  }

  html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > :is(aside,nav,.moduletable,.module,[class*="menu" i]),
  html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="profile"]),
  html body:is(.com_users,.option-com_users,.view-profile) #un-component:not(:has(#tru-login-page)) > div:has(a[href*="member-profile"]) {
    position: static !important;
    margin-top: 18px !important;
  }
}
