/* ==========================================================================  
   FILE: membership-system.css
   PROJECT: Terra Secundus — User & Membership Interface
   TEMPLATE: Visualin (Helix Ultimate)
   AUTHOR: [Your Name / Site Admin]
   PURPOSE: Defines cinematic platinum-panel styling and structural fidelity
            for Joomla com_users and com_osmembership components.
   STYLE GUIDE:
      • Dark backgrounds · light platinum panels
      • Gold and cyan accents (consistent with Terra Secundus palette)
      • TRU-aligned padding and column spacing
   LAST UPDATED: 2025-10-30
   ========================================================================== */


/* ================================================================
   1.0  GLOBAL CONTEXT
   - Applies to:
        body.com_users
        body.com_osmembership
        body.com_users.com_users.view-login
        body.com_osmembership.view-plan
   - Goal:
        Force Helix/Visualin environment into the Terra Secundus
        cinematic "platinum on shadow" panel style
   ================================================================ */

body.com_users,
body.com_osmembership {
  background: radial-gradient(circle at 50% 40%, #0f0e0b 0%, #000000 100%) !important;
  color: #f5f5f5 !important;
  font-family: "Lora", "Cormorant Garamond", serif;
}

/* Kill any template hero/feature stuff above the login/membership forms */
body.com_users #sp-hero,
body.com_users #sp-feature,
body.com_users #sp-slide,
body.com_users #sp-top1,
body.com_users #sp-top2,
body.com_users #sp-top3,
body.com_users #sp-top4,
body.com_osmembership #sp-hero,
body.com_osmembership #sp-feature,
body.com_osmembership #sp-slide,
body.com_osmembership #sp-top1,
body.com_osmembership #sp-top2,
body.com_osmembership #sp-top3,
body.com_osmembership #sp-top4 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* force main body to sit directly under header */
body.com_users #sp-main-body,
body.com_osmembership #sp-main-body {
  margin-top: 0 !important;
  padding-top: 2rem !important;
  padding-bottom: 4rem !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

/* inner container baseline */
body.com_users #sp-main-body .container-inner,
body.com_osmembership #sp-main-body .container-inner {
  max-width: 1280px;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 15px;
  padding-right: 15px;
}

/* ================================================================
   2.0  CONTAINER WIDTHS & GRID STRUCTURE
   - We want a 70/30 split on desktop:
        [Main Panel 70%] [Sidebar 30%]
     and single-column stack on mobile.
   ================================================================ */

body.com_users #sp-main-body .row,
body.com_osmembership #sp-main-body .row,
body.com_users #sp-main-body .sp-row,
body.com_osmembership #sp-main-body .sp-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  column-gap: 2rem !important;
  row-gap: 2rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Main component (forms, membership table, etc.) */
body.com_users #sp-component,
body.com_osmembership #sp-component {
  flex: 1 1 70%;
  max-width: 820px;
  order: 1;
}

/* Sidebar (login help, membership benefits, etc.) */
body.com_users #sp-right,
body.com_osmembership #sp-right {
  flex: 0 0 28%;
  max-width: 360px;
  order: 2;
}

/* If template outputs #sp-left, suppress it here */
body.com_users #sp-left,
body.com_osmembership #sp-left {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Columns should not inherit weird Helix paddings */
body.com_users #sp-component .sp-column,
body.com_osmembership #sp-component .sp-column,
body.com_users #sp-right .sp-column,
body.com_osmembership #sp-right .sp-column {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ================================================================
   3.0  MAIN PANEL — PLATINUM LIGHT SURFACE
   - The login / register / subscription table container
   - This is the cinematic pale panel
   ================================================================ */

body.com_users #sp-component .sp-column,
body.com_osmembership #sp-component .sp-column {
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.95) 0%, rgba(230,230,230,0.9) 60%, rgba(210,210,210,0.85) 100%) !important;
  color: #1a1a1a !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.6) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.75),
    0 0 24px rgba(255,255,255,0.4) inset;
  padding: 2rem 2rem 2.5rem 2rem !important;
  position: relative;
  isolation: isolate;
  z-index: 3;
  font-family: "Lora", "Cormorant Garamond", serif;
}

/* Header band / title inside panel */
body.com_users #sp-component h1,
body.com_users #sp-component h2,
body.com_users #sp-component h3,
body.com_osmembership #sp-component h1,
body.com_osmembership #sp-component h2,
body.com_osmembership #sp-component h3 {
    font-family: "Playfair Display","Georgia",serif;
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 2px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: .5rem;
}

/* Paragraph / body text */
body.com_users #sp-component p,
body.com_osmembership #sp-component p,
body.com_users #sp-component li,
body.com_osmembership #sp-component li {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.55;
  text-shadow: none;
  font-family: "Lora","Cormorant Garamond",serif;
}

/* Tables (like membership plan lists) */
body.com_osmembership #sp-component table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

body.com_osmembership #sp-component table th {
  background: linear-gradient(
    145deg,
    rgba(212,182,90,0.9) 0%,
    rgba(148,193,187,0.9) 100%
  );
  color: #000;
  font-family: "Tabula Peutingeriana","Cinzel Decorative",serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 2px rgba(0,0,0,0.6);
}

body.com_osmembership #sp-component table td {
  padding: .75rem 1rem;
  font-size: .95rem;
  color: #111;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* last row cleanup */
body.com_osmembership #sp-component table tr:last-child td {
  border-bottom: 0;
}

/* ================================================================
   4.0  SIDEBAR PANEL — DARK CONTRAST
   - Right column / "account info / benefits / help"
   - Deep shadowed bronze/gold look
   ================================================================ */

body.com_users #sp-right .sp-column,
body.com_osmembership #sp-right .sp-column {
  background: radial-gradient(circle at 50% 20%, rgba(32,24,16,0.95) 0%, rgba(16,12,8,0.95) 60%, rgba(0,0,0,0.9) 100%) !important;
  color: #f5f5f5 !important;
  border-radius: 12px;
  border: 1px solid rgba(212,176,85,0.4) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.9),
    0 0 24px rgba(212,176,85,0.4),
    0 0 60px rgba(0,163,185,0.2);
  padding: 1.5rem 1.5rem 2rem 1.5rem !important;
  position: relative;
  isolation: isolate;
  z-index: 3;
  font-family: "Lora","Cormorant Garamond",serif;
}

/* Glow accents (cyan + gold) */
body.com_users #sp-right .sp-column::before,
body.com_osmembership #sp-right .sp-column::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%,
    rgba(0,163,185,0.25) 0%,
    transparent 60%);
  mix-blend-mode: screen;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
body.com_users #sp-right .sp-column::after,
body.com_osmembership #sp-right .sp-column::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 70% 80%,
    rgba(212,176,85,0.4) 0%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

/* Heading text inside sidebar */
body.com_users #sp-right h3,
body.com_osmembership #sp-right h3,
body.com_users #sp-right h4,
body.com_osmembership #sp-right h4 {
    font-family: "Playfair Display","Georgia",serif;
  color: var(--tsu-platinum,#f5f5f5);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .05em;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: .75rem;
  text-shadow:
    0 0 8px rgba(255,255,255,0.6),
    0 0 2px rgba(0,0,0,0.6),
    0 0 12px rgba(212,176,85,0.6),
    0 0 18px rgba(0,163,185,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: .5rem;
}

/* Sidebar body text */
body.com_users #sp-right p,
body.com_osmembership #sp-right p,
body.com_users #sp-right li,
body.com_osmembership #sp-right li {
  color: rgba(255,255,255,0.9);
  font-size: .95rem;
  line-height: 1.5;
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  font-family: "Lora","Cormorant Garamond",serif;
}

/* Lists for benefits / notices */
body.com_users #sp-right ul,
body.com_osmembership #sp-right ul {
  list-style: disc inside;
  padding-left: 0;
  margin-left: 0;
}
body.com_users #sp-right li,
body.com_osmembership #sp-right li {
  margin-bottom: .5rem;
}

/* ================================================================
   5.0  FORMS & INPUTS
   - Login form, Register form, Checkout form
   ================================================================ */

body.com_users #sp-component form,
body.com_osmembership #sp-component form {
  background: rgba(255,255,255,0.75);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

body.com_users #sp-component label,
body.com_osmembership #sp-component label {
  display: block;
  font-family: "Cormorant Garamond","Lora",serif;
  font-size: 1rem;
  color: #000;
  font-weight: 600;
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.com_users #sp-component input[type="text"],
body.com_users #sp-component input[type="email"],
body.com_users #sp-component input[type="password"],
body.com_osmembership #sp-component input[type="text"],
body.com_osmembership #sp-component input[type="email"],
body.com_osmembership #sp-component input[type="password"],
body.com_osmembership #sp-component select,
body.com_osmembership #sp-component textarea {
  width: 100%;
  background: #ffffff;
  color: #000;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.4);
  padding: .65rem .75rem;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
  outline: none;
  transition: all .25s ease;
  font-family: "Lora","Cormorant Garamond",serif;
}

body.com_users #sp-component input[type="text"]:focus,
body.com_users #sp-component input[type="email"]:focus,
body.com_users #sp-component input[type="password"]:focus,
body.com_osmembership #sp-component input[type="text"]:focus,
body.com_osmembership #sp-component input[type="email"]:focus,
body.com_osmembership #sp-component input[type="password"]:focus,
body.com_osmembership #sp-component select:focus,
body.com_osmembership #sp-component textarea:focus {
  border-color: rgba(0,163,185,0.6);
  box-shadow: 0 0 8px rgba(0,163,185,0.6), 0 0 2px rgba(0,0,0,0.8);
}

/* Inline help text */
body.com_users #sp-component .help-block,
body.com_osmembership #sp-component .help-block,
body.com_users #sp-component .form-text,
body.com_osmembership #sp-component .form-text {
  font-size: .8rem;
  line-height: 1.4;
  color: rgba(0,0,0,0.75);
  text-shadow: none;
  margin-top: .35rem;
  margin-bottom: .5rem;
  font-family: "Lora","Cormorant Garamond",serif;
}

/* Error text / validation */
body.com_users #sp-component .invalid,
body.com_osmembership #sp-component .invalid,
body.com_users #sp-component .invalid-feedback,
body.com_osmembership #sp-component .invalid-feedback {
  color: #7a0000 !important;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(255,255,255,0.7), 0 0 2px rgba(0,0,0,0.9);
}

/* ================================================================
   6.0  BUTTONS
   - Primary action uses cyan/gold cinematic glow
   ================================================================ */

body.com_users #sp-component button,
body.com_users #sp-component .btn,
body.com_osmembership #sp-component button,
body.com_osmembership #sp-component .btn {
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  line-height: 1.2;
  padding: .75rem 1rem;
  font-family: "Poppins","Segoe UI",sans-serif;
  background: radial-gradient(circle at 50% 20%,
    rgba(0,163,185,1) 0%,
    rgba(0,100,120,1) 60%,
    rgba(0,40,60,1) 100%);
  color: #fff;
  box-shadow:
    0 0 10px rgba(0,163,185,0.6),
    0 0 30px rgba(0,163,185,0.4),
    0 12px 20px rgba(0,0,0,0.8);
  transition: all .25s ease;
}

body.com_users #sp-component button:hover,
body.com_users #sp-component .btn:hover,
body.com_osmembership #sp-component button:hover,
body.com_osmembership #sp-component .btn:hover {
  background: radial-gradient(circle at 50% 20%,
    rgba(212,176,85,1) 0%,
    rgba(120,80,40,1) 60%,
    rgba(40,24,8,1) 100%);
  box-shadow:
    0 0 10px rgba(212,176,85,0.7),
    0 0 30px rgba(212,176,85,0.4),
    0 12px 20px rgba(0,0,0,0.9);
  color: #111;
  text-shadow: 0 0 4px rgba(255,255,255,0.6);
}

/* Link-styled buttons like "Forgot Password?" */
body.com_users #sp-component a.btn-link,
body.com_osmembership #sp-component a.btn-link {
  display: inline-block;
  color: #000;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 600;
  font-family: "Poppins","Segoe UI",sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: .25rem 0 .25rem 0;
}
body.com_users #sp-component a.btn-link:hover,
body.com_osmembership #sp-component a.btn-link:hover {
  color: #222;
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 2px rgba(0,0,0,0.8),
    0 0 12px rgba(0,163,185,0.6);
}

/* ================================================================
   7.0  TYPOGRAPHY ADJUSTMENTS
   - Make sure body text in com_users isn't inheriting
     front page giant hero styles
   ================================================================ */

body.com_users #sp-component,
body.com_osmembership #sp-component {
  font-size: 1rem;
  line-height: 1.55;
  color: #1a1a1a;
  text-shadow: none;
}

body.com_users #sp-component h1,
body.com_users #sp-component h2,
body.com_users #sp-component h3,
body.com_osmembership #sp-component h1,
body.com_osmembership #sp-component h2,
body.com_osmembership #sp-component h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

body.com_users #sp-component h4,
body.com_osmembership #sp-component h4,
body.com_users #sp-component h5,
body.com_osmembership #sp-component h5,
body.com_users #sp-component h6,
body.com_osmembership #sp-component h6 {
  font-family: "Tabula Peutingeriana","Cinzel Decorative",serif;
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .05em;
  margin-top: 1rem;
  margin-bottom: .5rem;
  text-shadow:
    0 0 8px rgba(255,255,255,0.6),
    0 0 2px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: .4rem;
}

/* Links inside content panel */
body.com_users #sp-component a,
body.com_osmembership #sp-component a {
  color: #00394a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: none;
  transition: color .25s ease, text-shadow .25s ease;
}
body.com_users #sp-component a:hover,
body.com_osmembership #sp-component a:hover {
  color: #000;
  text-shadow:
    0 0 8px rgba(0,163,185,0.6),
    0 0 2px rgba(0,0,0,0.8);
}

/* Sidebar headings get stronger glow */
body.com_users #sp-right h3,
body.com_users #sp-right h4,
body.com_osmembership #sp-right h3,
body.com_osmembership #sp-right h4 {
  font-size: 1.1rem;
  text-shadow:
    0 0 8px rgba(255,255,255,0.6),
    0 0 2px rgba(0,0,0,0.6),
    0 0 12px rgba(212,176,85,0.6),
    0 0 18px rgba(0,163,185,0.4);
}

/* ================================================================
   8.0  FEATURE / HERO SUPPRESSION
   - Ensure ONLY membership/login block + header are visible
   ================================================================ */

/* Remove "World of Terra Secundus", "Chronicles", etc. bands on user pages */
body.com_users section.feature-band,
body.com_osmembership section.feature-band,
body.com_users section.band-forest,
body.com_osmembership section.band-forest,
body.com_users section.band-parchment,
body.com_osmembership section.band-parchment,
body.com_users section.band-bronze,
body.com_osmembership section.band-bronze,
body.com_users section.band-stone,
body.com_osmembership section.band-stone,
body.com_users section.section-highlight,
body.com_osmembership section.section-highlight,
body.com_users section.feature-slider-band,
body.com_osmembership section.feature-slider-band,
body.com_users section.epigraph-band,
body.com_osmembership section.epigraph-band {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* Also hides runic fx block if template tries to output it */
body.com_users .fp-rune-layer,
body.com_osmembership .fp-rune-layer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* ================================================================
   9.0  RESPONSIVE BEHAVIOR
   - Stack columns, relax borders/shadows a bit on small screens
   ================================================================ */

@media (max-width: 991.98px) {

  body.com_users #sp-main-body,
  body.com_osmembership #sp-main-body {
    padding-top: 1.5rem !important;
  }

  body.com_users #sp-component,
  body.com_osmembership #sp-component,
  body.com_users #sp-right,
  body.com_osmembership #sp-right {
    flex: 0 0 100%;
    max-width: 800px;
    order: 1;
  }

  body.com_users #sp-right .sp-column,
  body.com_osmembership #sp-right .sp-column {
    box-shadow:
      0 12px 36px rgba(0,0,0,0.9),
      0 0 24px rgba(212,176,85,0.4),
      0 0 60px rgba(0,163,185,0.2);
  }

  body.com_users #sp-component .sp-column,
  body.com_osmembership #sp-component .sp-column {
    margin: 0 auto;
  }

  body.com_users #sp-right .sp-column,
  body.com_osmembership #sp-right .sp-column {
    margin: 0 auto;
  }

  /* reduce padding for narrow viewports */
  body.com_users #sp-component .sp-column,
  body.com_osmembership #sp-component .sp-column {
    padding: 1.5rem 1rem 2rem 1rem !important;
  }

  body.com_users #sp-right .sp-column,
  body.com_osmembership #sp-right .sp-column {
    padding: 1.5rem 1rem 2rem 1rem !important;
  }

}

@media (max-width: 480px) {
  body.com_users #sp-component,
  body.com_osmembership #sp-component,
  body.com_users #sp-right,
  body.com_osmembership #sp-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    order: initial;
  }
  body.com_users #sp-component .sp-column,
  body.com_osmembership #sp-component .sp-column {
    padding: 1.25rem 1rem;
  }
}


/* ==========================================================
   TERRA SECUNDUS — LOGIN PANEL (PARCHMENT EDITION)
   Harmonized with Join & Reset membership pages
   ========================================================== */

/* Full viewport parchment backdrop */
body[class*="com_users"].view-login #t4-main-body {
  background: url('/images/backgrounds/parchment-texture.jpg') center/cover fixed !important;
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  font-family: "Playfair Display", serif;
  color: #1b1408;
}

/* Login card */
body[class*="com_users"].view-login .frm-wrap.login {
  width: min(640px, 90vw);
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96); /* light parchment */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);   /* or blur(8px) to match */
  border: 1px solid rgba(212,176,111,0.45);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(255,255,255,0.3);
  text-align: center;
}

/* Headings */
body[class*="com_users"].view-login .frm-wrap.login h1,
body[class*="com_users"].view-login .frm-wrap.login h2 {
  color: #caa855 !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.35);
}
body[class*="com_users"].view-login .frm-wrap.login h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(to right, transparent, #d4b055, transparent);
  border-radius: 2px;
}

/* Labels + inputs */
body[class*="com_users"].view-login label {
  color: #2a1d0f;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
}
body[class*="com_users"].view-login input.form-control {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  color: #111;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
body[class*="com_users"].view-login input.form-control:focus {
  border-color: #caa855;
  box-shadow: 0 0 6px rgba(212,176,111,0.4);
}

/* Buttons — warm gold gradient */
body[class*="com_users"].view-login .btn-primary,
body[class*="com_users"].view-login .btn-secondary.w-100 {
  width: 100% !important;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #e6ca82, #b28a34);
  color: #111 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}
body[class*="com_users"].view-login .btn-primary:hover,
body[class*="com_users"].view-login .btn-secondary.w-100:hover {
  background: linear-gradient(135deg, #f8e7b0, #c49a3f);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

/* Hide any SVG icon in passkey button */
body[class*="com_users"].view-login .btn-secondary.w-100 svg {
  display: none !important;
}

/* Secondary links */
body[class*="com_users"].view-login .other-links {
  margin-top: 1.8rem;
}
body[class*="com_users"].view-login .other-links a {
  color: #6a4a1f;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
body[class*="com_users"].view-login .other-links a:hover {
  color: #caa855;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  body[class*="com_users"].view-login .frm-wrap.login {
    padding: 2rem 1.25rem;
  }
  body[class*="com_users"].view-login .frm-wrap.login h1 {
    font-size: 1.7rem;
  }
}


/* ===========================================================
   TERRA SECUNDUS — JOIN PAGE (Membership Pro)
   Unified Layout, Typography & Visual Pass
   =========================================================== */

/* === A. Base Container & Alignment === */
body.com_osmembership.view-listplans #t4-main-body,
body.com_osmembership.view-listplans #t4-main-body .t4-section-inner.container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 3rem 0 !important;
}

body.com_osmembership.view-listplans #t4-main-body .t4-row.row {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: clamp(36px, 3vw, 48px) !important;
  margin: 0 auto !important;
}

/* === B. Component & Sidebar Widths (Desktop) === */
@media (min-width: 992px) {
  #t4-main-body .t4-row.row:has(#osm-plans-list-pricing-table-flat) {
    display: flex;
    justify-content: center;
    gap: clamp(36px, 3vw, 48px);
  }
  #t4-main-body .t4-col.component:has(#osm-plans-list-pricing-table-flat) {
    flex: 0 1 820px; max-width: 820px; min-width: 0;
  }
  #t4-main-body .t4-col.right.side-menu {
    flex: 0 0 300px; max-width: 300px;
  }
}

/* === C. Sidebar Styling & Readable Links === */
body.com_osmembership.view-listplans .side-menu-platinum {
  background: rgba(245,240,228,0.95) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(130,100,50,0.25) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  padding: 1.25rem 1rem !important;
  max-width: 260px !important;
  margin-top: 1rem !important;
  position: relative !important;
  left: -25px !important;
}
body.com_osmembership.view-listplans .side-menu-platinum .nav-link {
  color: #222 !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  padding: 0.4rem 0 !important;
}
body.com_osmembership.view-listplans .side-menu-platinum .nav-link:hover {
  color: #b5893f !important;
}

/* === D. Pricing Table Layout === */
#osm-plans-list-pricing-table-flat,
#osm-plans-list-pricing-table-flat .osm-pricing-table-flat,
#osm-plans-list-pricing-table-flat .osm-container {
  background: #f2ebdc !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

#osm-plans-list-pricing-table-flat .osm-pricing-table-flat > [class^="col-"] {
  flex: 0 1 680px;
  max-width: 680px;
}

/* === E. Card Base Style (Unified Frosted Parchment) === */
#osm-plans-list-pricing-table-flat .osm-plan {
  width: 100%;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);   /* or blur(8px) to match */
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(255,255,255,0.25);
  border: 1px solid rgba(212,176,111,0.4);
  padding: 2rem 2.5rem;
  text-align: center;
  font-family: "Playfair Display", serif !important;
  color: #111 !important;
  transition: all 0.3s ease;
}
#osm-plans-list-pricing-table-flat .osm-plan:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.45),
    inset 0 0 18px rgba(255,255,255,0.3);
}

/* === F. Typography === */
#osm-plans-list-pricing-table-flat .osm-plan *,
#osm-plans-list-pricing-table-flat .tsu-card * {
  color: #1a1a1a !important;
  text-shadow: none !important;
  font-family: "Playfair Display", "Georgia", serif !important;
}

#osm-plans-list-pricing-table-flat .osm-plan-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
#osm-plans-list-pricing-table-flat .price,
#osm-plans-list-pricing-table-flat .tsu-card-price .price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #b5893f !important;
  margin-bottom: 1rem;
}
#osm-plans-list-pricing-table-flat .price sub,
#osm-plans-list-pricing-table-flat .tsu-card-price .price-term {
  font-size: 1rem;
  color: #5a4020 !important;
}
#osm-plans-list-pricing-table-flat .tsu-card-desc,
#osm-plans-list-pricing-table-flat .osm-plan-short-description {
  font-size: 1.05rem;
  color: #222 !important;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* === G. Button Styling (Single CTA) === */
#osm-plans-list-pricing-table-flat .osm-signup-container,
#osm-plans-list-pricing-table-flat .osm-signup-container .btn-signup {
  display: none !important;
}

#osm-plans-list-pricing-table-flat .btn-tsu-accent,
body.com_osmembership.view-listplans .osm-plan .btn-signup {
  display: inline-block;
  width: 100%;
  font-family: "Playfair Display", serif !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(to bottom right, #d4b055, #9c7728);
  color: #111 !important;
  border: none;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: all 0.3s ease;
}
#osm-plans-list-pricing-table-flat .btn-tsu-accent:hover,
body.com_osmembership.view-listplans .osm-plan .btn-signup:hover {
  background: linear-gradient(to bottom right, #f8e7b0, #c49a3f);
  color: #111 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

/* === H. Clean nested artifacts === */
#osm-plans-list-pricing-table-flat #system-message-container {
  display: none !important;
}

/* === I. Footer Hide === */
body.com_osmembership.view-listplans #t4-footer,
body:has(#osm-plans-list-pricing-table-flat) #t4-footer {
  display: none !important;
}

/* === J. Responsive Adjustments === */
@media (max-width: 991px) {
  body.com_osmembership.view-listplans .osm-plan {
    width: 90% !important;
  }
  body.com_osmembership.view-listplans .side-menu-platinum {
    max-width: 90% !important;
    left: 0 !important;
    margin-top: 2rem !important;
  }
}
/* ===========================================================
   TERRA SECUNDUS — MEMBERSHIP PRO REGISTRATION PAGE
   Mirrors Join page tone, alignment, and form legibility
   =========================================================== */

/* === A. Page container === */
body.com_osmembership.view-register #t4-main-body {
  background: #f2ebdc !important;
  color: #1a1a1a !important;
  padding-left: clamp(80px, 7vw, 120px);
  padding-right: clamp(40px, 5vw, 80px);
}

/* Keep centered rail and spacing */
body.com_osmembership.view-register #t4-main-body .t4-section-inner.container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 3rem 0 !important;
}

body.com_osmembership.view-register #t4-main-body .t4-row.row {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: clamp(36px, 3vw, 48px) !important;
}

/* === B. Sidebar consistency === */
body.com_osmembership.view-register .side-menu-platinum {
  background: rgba(245,240,228,0.95) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(130,100,50,0.25) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  padding: 1.25rem 1rem !important;
  max-width: 260px !important;
  margin-top: 1rem !important;
  position: relative !important;
  left: -25px !important;
}
body.com_osmembership.view-register .side-menu-platinum .nav-link {
  color: #222 !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  padding: 0.4rem 0 !important;
}
body.com_osmembership.view-register .side-menu-platinum .nav-link:hover {
  color: #b5893f !important;
}

/* === C. Form panel styling === */
#osm-signup-page {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);   /* or blur(8px) to match */
  border: 1px solid rgba(212,176,111,0.4);
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(255,255,255,0.25);
  padding: 2.5rem 3rem;
  color: #111 !important;
  font-family: "Playfair Display", "Georgia", serif !important;
}

/* === D. Headings and messages === */
#osm-signup-page .osm-page-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
#osm-signup-page .osm-message p {
  color: #222;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* === E. Labels and inputs === */
#osm-signup-page label {
  color: #222 !important;
  font-weight: 600;
  font-family: "Playfair Display", serif !important;
}
#osm-signup-page .form-control,
#osm-signup-page .form-select,
#osm-signup-page textarea {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(130,100,50,0.3);
  border-radius: 6px;
  color: #111 !important;
  font-family: "Playfair Display", serif !important;
  transition: all .25s ease;
}
#osm-signup-page .form-control:focus,
#osm-signup-page .form-select:focus,
#osm-signup-page textarea:focus {
  border-color: #b5893f;
  box-shadow: 0 0 0 3px rgba(212,176,111,0.35);
}

/* Highlight required star */
#osm-signup-page .star,
#osm-signup-page .required {
  color: #b5893f !important;
}

/* === F. Section dividers (Payment Info, etc.) === */
#osm-signup-page h3.osm-heading {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #2a1d0f;
  border-bottom: 1px solid rgba(130,100,50,0.25);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

/* === G. Buttons === */
#osm-signup-page .btn,
#osm-signup-page #btn-submit {
  background: linear-gradient(to bottom right, #d4b055, #9c7728) !important;
  color: #111 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.9rem 1.4rem !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
  transition: all 0.3s ease !important;
}
#osm-signup-page .btn:hover,
#osm-signup-page #btn-submit:hover {
  background: linear-gradient(to bottom right, #f8e7b0, #c49a3f) !important;
  color: #111 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
}

/* === H. Info & privacy alerts === */
#osm-signup-page .alert-info {
  background: rgba(245,240,228,0.8);
  border: 1px solid rgba(130,100,50,0.25);
  color: #1a1a1a;
  font-family: "Playfair Display", serif !important;
  border-radius: 6px;
}

/* === I. Hide footer for clean page === */
body.com_osmembership.view-register #t4-footer {
  display: none !important;
}

/* === J. Responsive === */
@media (max-width: 991px) {
  body.com_osmembership.view-register .side-menu-platinum {
    max-width: 90% !important;
    left: 0 !important;
    margin-top: 2rem !important;
  }
  #osm-signup-page {
    padding: 2rem 1.5rem;
  }
}
/* ===========================================================
   TERRA SECUNDUS — JOOMLA USER PROFILE
   Applies to: com_users.profile + com_users.profile.edit
   =========================================================== */

/* === A. Global Container === */
body.com_users.view-profile #t4-main-body,
body.com_users.view-profile-edit #t4-main-body {
  background: #f2ebdc !important;
  color: #1a1a1a !important;
  padding-left: clamp(80px, 7vw, 120px);
  padding-right: clamp(40px, 5vw, 80px);
}

/* Center content and spacing */
body.com_users.view-profile #t4-main-body .t4-section-inner.container,
body.com_users.view-profile-edit #t4-main-body .t4-section-inner.container {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 3rem 0 !important;
}

/* === B. Frosted Card Base === */
body.com_users.view-profile .com-users-profile,
body.com_users.view-profile-edit .com-users-profile,
body.com_users.view-profile .form-validate,
body.com_users.view-profile-edit .form-validate {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);   /* or blur(8px) to match */
  border-radius: 14px;
  border: 1px solid rgba(212,176,111,0.4);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(255,255,255,0.25);
  padding: 2.5rem 3rem;
  font-family: "Playfair Display", "Georgia", serif !important;
  color: #111 !important;
}

/* === C. Headings & Legends === */
.com-users-profile legend {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: #2a1d0f;
  border-bottom: 1px solid rgba(130,100,50,0.25);
  margin-bottom: 1rem !important;
  padding-bottom: 0.25rem !important;
}

/* === D. Labels & Data Alignment === */
.com-users-profile dt {
  font-weight: 600;
  color: #3a2a1a;
  font-family: "Playfair Display", serif !important;
}
.com-users-profile dd {
  color: #111 !important;
  font-family: "Playfair Display", serif !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(130,100,50,0.1);
  margin-bottom: 0.75rem;
}

/* === E. Buttons (toolbar + edit form) === */
.com-users-profile__edit a.btn,
body.com_users.view-profile-edit button,
body.com_users.view-profile-edit input[type="submit"] {
  background: linear-gradient(to bottom right, #d4b055, #9c7728) !important;
  color: #111 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.8rem 1.3rem !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
  transition: all 0.3s ease !important;
}
.com-users-profile__edit a.btn:hover,
body.com_users.view-profile-edit button:hover,
body.com_users.view-profile-edit input[type="submit"]:hover {
  background: linear-gradient(to bottom right, #f8e7b0, #c49a3f) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
}

/* === F. Form Field Styling (Edit Profile) === */
body.com_users.view-profile-edit input,
body.com_users.view-profile-edit select,
body.com_users.view-profile-edit textarea {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(130,100,50,0.3);
  border-radius: 6px;
  color: #111 !important;
  font-family: "Playfair Display", serif !important;
  transition: all .25s ease;
}
body.com_users.view-profile-edit input:focus,
body.com_users.view-profile-edit select:focus,
body.com_users.view-profile-edit textarea:focus {
  border-color: #b5893f;
  box-shadow: 0 0 0 3px rgba(212,176,111,0.35);
}

/* === G. Adjust Joomla default link colors === */
body.com_users.view-profile a,
body.com_users.view-profile-edit a {
  color: #00566a !important;
  text-decoration: none !important;
}
body.com_users.view-profile a:hover,
body.com_users.view-profile-edit a:hover {
  color: #b5893f !important;
}

/* === H. Hide footer for these pages === */
body.com_users.view-profile #t4-footer,
body.com_users.view-profile-edit #t4-footer {
  display: none !important;
}

/* === I. Responsive === */
@media (max-width: 991px) {
  body.com_users.view-profile .com-users-profile,
  body.com_users.view-profile-edit .com-users-profile {
    padding: 2rem 1.5rem;
  }
  .com-users-profile dt {
    font-size: 1rem;
  }
  .com-users-profile dd {
    font-size: 1rem;
  }
}
/* ============================================================
   TERRA SECUNDUS — Final Canonical Profile Alignment
   Context: Joomla 4/5 com_users.profile.edit (Bootstrap 5)
   ============================================================ */

/* 1️⃣ Establish uniform grid for every control-group */
body.com_users.view-profile-edit .com-users-profile__edit fieldset .control-group.row {
  display: grid !important;
  grid-template-columns: 220px 1fr;   /* label | field */
  align-items: center !important;
  column-gap: 1.25rem;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

/* 2️⃣ Neutralize Bootstrap flex/float on label + input wrappers */
body.com_users.view-profile-edit .com-users-profile__edit .control-label,
body.com_users.view-profile-edit .com-users-profile__edit .col-sm-9,
body.com_users.view-profile-edit .com-users-profile__edit .has-success {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;  /* let children participate in grid */
}

/* 3️⃣ Label styling and vertical alignment */
body.com_users.view-profile-edit .com-users-profile__edit .control-label label {
  display: block;
  text-align: right;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #2a1d0f;
  line-height: 1.4;
  margin-right: 0.5rem;
  white-space: normal;
  word-break: break-word;
}

/* 4️⃣ Inputs, selects, and textareas — normalized height & spacing */
body.com_users.view-profile-edit .com-users-profile__edit input.form-control,
body.com_users.view-profile-edit .com-users-profile__edit select,
body.com_users.view-profile-edit .com-users-profile__edit textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 2.6rem;
  line-height: 2.6rem;
  box-sizing: border-box;
  padding: 0 0.75rem;
  margin: 0;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(130,100,50,0.3);
  border-radius: 6px;
  color: #111;
  font-family: "Playfair Display", serif;
}

/* 5️⃣ Normalize .has-success and validation classes (Name bug source) */
body.com_users.view-profile-edit .com-users-profile__edit .form-control-success,
body.com_users.view-profile-edit .com-users-profile__edit .has-success .form-control {
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  height: 2.6rem !important;
  line-height: 2.6rem !important;
  vertical-align: middle !important;
}

/* 6️⃣ Keep input-group buttons aligned in password fields */
body.com_users.view-profile-edit .com-users-profile__edit .password-group .input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100%;
  margin: 0;
}

/* 7️⃣ Uniform rhythm between successive rows */
body.com_users.view-profile-edit .com-users-profile__edit .control-group.row + .control-group.row {
  margin-top: 1rem !important;
}

/* 8️⃣ Mobile stacking */
@media (max-width: 768px) {
  body.com_users.view-profile-edit .com-users-profile__edit fieldset .control-group.row {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
  }
  body.com_users.view-profile-edit .com-users-profile__edit .control-label label {
    text-align: left;
    margin: 0;
  }
}
@media (max-width: 991px){
  body[class*="com_users"] #t4-main-body,
  body.com_osmembership.view-plan #t4-main-body,
  body.com_osmembership.view-listplans #t4-main-body {
    background-attachment: scroll !important;
  }
}


/* ================================================================
   POLISH PRESERVATION PATCH
   Keep membership layout split; improve panel spacing and fantasy cohesion.
   ================================================================ */

body.com_users #sp-component .sp-column,
body.com_osmembership #sp-component .sp-column{
  border-radius: 14px !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.56),
    0 0 18px rgba(255,255,255,.18) inset !important;
  padding: clamp(24px, 2vw, 34px) !important;
}

body.com_users #sp-right,
body.com_osmembership #sp-right{
  align-self: stretch;
}

body.com_users #sp-right .sp-column,
body.com_osmembership #sp-right .sp-column{
  border-radius: 14px !important;
  padding: clamp(20px, 1.8vw, 28px) !important;
}

body.com_users #sp-component h1,
body.com_users #sp-component h2,
body.com_users #sp-component h3,
body.com_osmembership #sp-component h1,
body.com_osmembership #sp-component h2,
body.com_osmembership #sp-component h3{
  line-height: 1.15;
  margin-bottom: .85rem;
}

body.com_users #sp-component p,
body.com_osmembership #sp-component p,
body.com_users #sp-component li,
body.com_osmembership #sp-component li{
  line-height: 1.68;
}

body.com_osmembership #sp-component table th,
body.com_osmembership #sp-component table td{
  padding-top: .9rem;
  padding-bottom: .9rem;
}

body.com_users form .control-group,
body.com_osmembership form .control-group,
body.com_users form .form-group,
body.com_osmembership form .form-group{
  margin-bottom: 1rem;
}
