/* ============================================================
   iBelieve Futures Institute · shared aesthetic
   For welcome, login, and course pages.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:           #06101C;
  --bg-elevated:  #0A1825;
  --surface:      #102031;
  --surface-2:    #15273B;
  --gold:         #C9A84C;
  --gold-soft:    rgba(201, 168, 76, 0.10);
  --gold-line:    rgba(201, 168, 76, 0.28);
  --blue:         #3D7CC9;
  --green:        #4DA67A;
  --red:          #C9544C;
  --text:         #F5EFE0;
  --text-2:       #A2ADBE;
  --text-3:       #5F6A7C;
  --line:         rgba(245, 239, 224, 0.07);
  --line-strong:  rgba(245, 239, 224, 0.14);
  --serif:        "Cormorant Garamond", Georgia, serif;
  --sans:         "DM Sans", -apple-system, system-ui, sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* ============================================================
   Header — minimal, consistent with main site
   ============================================================ */
.aux-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(6, 16, 28, 0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.aux-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
.aux-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}
.aux-brand em { color: var(--gold); font-style: italic; }
.aux-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.aux-nav a {
  color: var(--text-3);
  transition: color 0.2s;
}
.aux-nav a:hover, .aux-nav a.active { color: var(--gold); }
@media (max-width: 600px) {
  .aux-nav { gap: 16px; font-size: 10px; }
}

/* ============================================================
   Page header rule — gold border treatment
   ============================================================ */
.aux-rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 14px;
  margin-bottom: 48px;
}
.aux-rule .right { color: var(--text-3); font-weight: 500; }

/* ============================================================
   Footer — Institute attribution
   ============================================================ */
.aux-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}
.aux-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Reusable utilities
   ============================================================ */
.gold-text { color: var(--gold); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--bg);
  background: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: rgba(201, 168, 76, 0.85);
  transform: translateY(-1px);
  color: var(--bg);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: rgba(201, 168, 76, 0.18);
  transform: translateY(-1px);
}
