/* ── Bilue design tokens (verbatim from bilue.webflow.shared CSS) ──── */
:root {
  /* Brand */
  --bilue-primary:      #00a1ff;
  --bilue-blue:         #1a96f8;
  --bilue-blue-light:   #7acfff;
  --bilue-blue-lighter: #eef9ff;
  --android-green:      #3ddc84;
  --android-dark:       #1a9a60;

  /* Bilue's neutral scale (Untitled UI grays) */
  --gray-900: #101828;
  --gray-800: #1d2939;
  --gray-700: #344054;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-400: #98a2b3;
  --gray-300: #d0d5dd;
  --gray-200: #eaecf0;
  --gray-100: #f2f4f7;
  --gray-50:  #f9fafb;

  /* Bilue-specific named tokens */
  --text-dark:     #0a2540;   /* --text-dark */
  --border-subtle: #dde1e6;   /* --gray-c1 */
  --eyebrow-color: #adb5bd;   /* --gray-c3, used for section labels */
  --lightest-bg:   #f6f9fc;   /* --bilue-lightest-bg */
  --beige-100:     #f7f6f5;   /* --b261-beige-100, warm off-white */

  /* Fonts */
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Light theme ─────────────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --bg:             #ffffff;
  --bg-subtle:      var(--lightest-bg);
  --bg-raised:      var(--gray-50);
  --surface:        #ffffff;
  --border:         var(--gray-200);
  --border-card:    var(--border-subtle);
  --text-primary:   var(--text-dark);
  --text-secondary: var(--gray-500);
  --text-muted:     var(--gray-400);
  --text-eyebrow:   var(--eyebrow-color);
  --nav-bg:         #ffffff;
  --nav-cta-bg:     var(--gray-900);
  --footer-bg:      var(--gray-800);
  --footer-link:    var(--gray-500);
  --footer-dim:     var(--gray-400);
  --ios-tint-bg:    var(--bilue-blue-lighter);
  --ios-tint-bd:    var(--bilue-blue-light);
  --and-tint-bg:    #eafaf2;
  --and-tint-bd:    #86efac;
  --empty-bg:       var(--gray-50);
  --toggle-track:   var(--gray-100);
  --toggle-thumb:   #ffffff;
  --toggle-border:  var(--gray-200);
  --draft-bg:       #fff7ed;
  --draft-bd:       #fdba74;
  --draft-text:     #c2410c;
}

/* ── Dark theme ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:             #0d1219;
  --bg-subtle:      #111b27;
  --bg-raised:      #0f1923;
  --surface:        #111b27;
  --border:         #1e3048;
  --border-card:    #253f5c;
  --text-primary:   #e2eaf4;
  --text-secondary: #8ba3bd;
  --text-muted:     #5d7d99;
  --text-eyebrow:   #3a5770;
  --nav-bg:         #0d1219;
  --nav-cta-bg:     #162030;
  --footer-bg:      #070d16;
  --footer-link:    #5d7d99;
  --footer-dim:     #3a5770;
  --ios-tint-bg:    #0d2140;
  --ios-tint-bd:    #1a6bb5;
  --and-tint-bg:    #0d2018;
  --and-tint-bd:    #1a6640;
  --empty-bg:       #0f1923;
  --toggle-track:   #162030;
  --toggle-thumb:   #1e3048;
  --toggle-border:  #1e3048;
  --bilue-blue:     #3aaaff;
  --bilue-primary:  #3aaaff;
  --bilue-blue-light: #1a6bb5;
  --android-dark:   #2dbc80;
  --draft-bg:       rgba(251,146,60,.12);
  --draft-bd:       #b45309;
  --draft-text:     #fdba74;
}

/* ── Common Shared Styles ─────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .2s, color .2s;
}

/* ── Nav (used on login and dashboard) ─────────────────────────────────── */
.nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .2s, border-color .2s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--bilue-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.nav-logo img { width: 26px; }

.nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}

.nav-title span { color: var(--bilue-blue); }

.nav-right { display: flex; align-items: center; gap: .625rem; }

/* ── Theme toggle ──────────────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--toggle-track);
  border: 1px solid var(--toggle-border);
  border-radius: 2rem;
  padding: 2px;
  gap: 1px;
  transition: background .2s, border-color .2s;
}

.theme-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .12s, color .12s;
}

.theme-btn svg { width: 14px; height: 14px; }

.theme-btn.active {
  background: var(--toggle-thumb);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.theme-btn:focus-visible { outline: 2px solid var(--bilue-blue); outline-offset: 2px; }

/* ============================================
   Custom Styles for Bilue Academy
   ============================================
   This file contains custom CSS that overrides or extends
   Webflow base styles. Organized by component/page.
*/

/* ============================================
   LOGIN PAGE STYLES
   ============================================
   Custom form styling for the multi-step login page.
   Uses white background with custom inputs to provide
   a distinct visual design from the dashboard.
*/

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.login-logo {
  display: flex;
  align-items: center;
}

.login-header img {
  max-width: 200px;
  height: auto;
}

.back-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #0052a3;
}

.login-container {
  max-width: 500px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.login-back-btn {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--bilue-blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-back-btn:hover {
  color: var(--bilue-primary);
}

.login-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.login-container p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

form button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover:not(:disabled) {
  background-color: #0052a3;
}

form button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-button:hover {
  background-color: #f8f9fa;
  border-color: #999;
}

.auth-button.google {
  border-color: #4285f4;
  color: #4285f4;
}

.auth-button.google:hover {
  background-color: rgba(66, 133, 244, 0.05);
}

.auth-methods {
  display: none;
  margin-top: 2rem;
}

.auth-methods > div {
  display: none;
}

.auth-methods > div.active {
  display: block;
}

.divider {
  text-align: center;
  margin: 1.5rem 0;
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
}

.error {
  display: none;
  padding: 0.75rem;
  margin-top: 1rem;
  background-color: #fee;
  border: 1px solid #f99;
  border-radius: 4px;
  color: #c33;
  font-size: 0.9rem;
}

.error-message {
  padding: 1rem;
  background-color: #fee;
  border: 1px solid #f99;
  border-radius: 4px;
  color: #c33;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.back-button {
  display: block;
  margin-top: 1.5rem;
  padding: 0.75rem;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #f8f9fa;
}

form.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================
   MAILCHIMP FORM STYLES
   ============================================
   Custom overrides for Mailchimp embedded form
   to match the dashboard dark theme. Required because
   Webflow doesn't provide native Mailchimp styling.
*/

#mc_embed_shell {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
}

#mc_embed_shell .mc4wp-form {
  margin: 0;
}

#mc_embed_shell input[type="email"],
#mc_embed_shell input[type="text"] {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.75rem;
}

#mc_embed_shell input[type="email"]:focus,
#mc_embed_shell input[type="text"]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

#mc_embed_shell input[type="email"]::placeholder,
#mc_embed_shell input[type="text"]::placeholder {
  color: #999;
}

#mc_embed_shell button {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mc_embed_shell button:hover {
  background-color: #0052a3;
}

/* ============================================
   DASHBOARD LOGOUT BUTTON
   ============================================
   Custom styling for the logout button in the
   navigation bar. Provides theme-aware styling
   with light/dark mode support.
*/

.logout-btn {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dark theme variant */
[data-theme="dark"] .logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   THEME TOGGLE STYLES
   ============================================
   Styling for the theme toggle buttons in header.
*/

.theme-toggle {
  display: flex;
  gap: 0.5rem;
}

.theme-btn {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: inherit;
}

.theme-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================
*/

@media (max-width: 640px) {
  .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .login-header {
    padding: 1.5rem;
  }

  #mc_embed_shell {
    padding: 1.5rem;
  }
}
