/* ================================================
   MDUBUSI MATHEMATICS — SHARED DESIGN TOKENS
   Used across index.html, login.html, signup.html, booking.html
================================================ */

:root {
  --navy:        #1B3A6B;
  --navy-dark:   #0d2145;
  --green:       #3AAA35;
  --blue-mid:    #2E6DB4;
  --gold:        #C9A84C;
  --gold-hover:  #B8923A;
  --warm-white:  #F8F4EA;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --grey:        #888888;
  --grey-light:  #E5E5E5;
  --success:     #27AE60;
  --error:       #E74C3C;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    12px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --max-w:     1280px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em; transition: transform 0.2s ease, filter 0.2s ease,
  background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center; white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: scale(1.02); }
.btn-gold   { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-dark   { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-google {
  background: var(--white); color: var(--text); border: 2px solid var(--grey-light);
  font-weight: 600; gap: 10px;
}
.btn-google:hover { background: var(--warm-white); border-color: #ccc; transform: scale(1.01); }
.btn-full { width: 100%; }

/* ── Form fields ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-input.error { border-color: var(--error); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(231,76,60,0.12); }
.form-hint { font-size: 0.78rem; color: var(--grey); }
.form-error { font-size: 0.78rem; color: var(--error); font-weight: 500; }

/* Input with trailing icon */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 48px; }
.input-icon-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--grey); transition: color 0.2s; padding: 4px;
  display: flex; align-items: center;
}
.input-icon-btn:hover { color: var(--navy); }

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--grey); font-size: 0.82rem; font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--grey-light);
}

/* ── Shared mini-nav for auth/booking pages ── */
.page-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-nav-logo img { height: 36px; width: auto; }
.page-nav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  font-weight: 500; transition: color 0.2s;
}
.page-nav-back:hover { color: var(--white); }
.page-nav-back svg { width: 16px; height: 16px; }

/* ── Floating math symbol background ── */
.math-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; opacity: 0.04;
}
.math-bg span {
  position: absolute; font-family: var(--font-mono);
  color: var(--white); user-select: none;
}

/* ── Motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
