/* ==========================================================
   AUTH-SPLIT.CSS — Single source of truth for all auth pages
   Sections:
     1.  Shared variables & base
     2.  Shared left panel & decorative elements
     3.  Shared right panel & form controls
     4.  Shared mobile responsive
     5.  Shared mkt-hero banner (all 6 pages)
     6.  Login-specific
     7.  Register-specific
     8.  Forgot-password-specific
     9.  Reset-password-specific
     10. Terms & Privacy shared
     11. Terms-specific
     12. Privacy-specific
     13. Dark mode overrides (preserved from original)
   ========================================================== */

/* ── 1. Shared variables & base ── */
:root {
  --brand-primary: #4361ee;
  --brand-dark: #3730a3;
  --brand-deep: #1e1b6e;
  --brand-mint: #6ee7b7;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border-color: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  background: #fff;
  padding: 0;
  overflow: visible;
}

.split-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.language-selector-container { overflow: visible; }
.mobile-tagline, .mobile-subtitle { display: none; }

.logo-word { font-weight: 600; color: white; font-size: 28px; letter-spacing: -0.5px; }
.logo-accent { color: var(--brand-mint); }
.brand-logo { display: none !important; }


/* ── 2. Shared left panel & decorative elements ── */
.left-panel {
  flex: 1.1;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 50%, var(--brand-deep) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: white;
}

.left-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.hero-title .mint-text { color: var(--brand-mint); }

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 3.5rem;
  max-width: 480px;
}

.feature-pills { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 4.5rem; }
.feature-pills .pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  width: fit-content;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-pills .pill:hover { transform: translateX(10px); background: rgba(255,255,255,0.12); }
.feature-pills .pill i { color: var(--brand-mint); font-size: 1.1rem; }
.feature-pills .pill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.45s ease;
}
.feature-pills .pill:hover::after { left: 140%; }

.stats-row { display: flex; align-items: center; gap: 2.5rem; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-item .stat-value { font-weight: 800; font-size: 1.4rem; color: var(--brand-mint); }
.stat-item .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.6; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

.blur-circle { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 1; }
.circle-1 { width: 400px; height: 400px; background: rgba(67,97,238,0.4); top: -150px; right: -100px; }
.circle-2 { width: 500px; height: 500px; background: rgba(110,231,183,0.2); bottom: -200px; left: -150px; }

/* Left panel animations */
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.06); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,20px) scale(1.08); } }
.left-panel .circle-1 { animation: floatA 8s ease-in-out infinite; }
.left-panel .circle-2 { animation: floatB 11s ease-in-out infinite; }

.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  pointer-events: none;
}
.left-content { z-index: 10; position: relative; }


/* ── 3. Shared right panel & form controls ── */
.right-panel {
  flex: 0.9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.right-panel .auth-card {
  width: 100%;
  max-width: 420px;
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

.right-panel .auth-card { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.auth-header { text-align: left; margin-bottom: 2.5rem; }
.auth-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-header p { font-size: 1.1rem; color: var(--text-gray); }

.auth-form { margin: 2rem 0; }
.form-group { margin-bottom: 1.5rem; }
.right-panel .form-group label { display: block; font-weight: 600; color: #334155; margin-bottom: 0.6rem; font-size: 0.95rem; }
.right-panel .form-group label i { display: none; }

.input-with-icon { position: relative; width: 100%; transition: transform 0.15s ease; }
.input-with-icon:focus-within { transform: translateY(-1px); }
.input-with-icon > i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}
.input-with-icon:focus-within > i { color: var(--brand-primary); }

.input-with-icon input {
  width: 100%;
  padding: 14px 46px 14px 44px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fff;
  height: auto;
}
.input-with-icon input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
  outline: none;
}
.input-with-icon.no-toggle input { padding-right: 16px; }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
  z-index: 10;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.toggle-password i { position: static; transform: none; font-size: 1rem; color: #94a3b8; pointer-events: none; }
.toggle-password:hover i { color: var(--brand-primary); }

.auth-footer { text-align: center; margin-top: 2rem; color: var(--text-gray); border-top: none; padding-top: 0; }
.auth-footer a { color: var(--brand-primary); text-decoration: none; font-weight: 600; }

.error-message {
  background: #fef2f2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid #ef4444;
  display: none;
}
.success-message {
  background: #ecfdf5;
  color: #065f46;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid #10b981;
  display: none;
}

/* Shared primary button style */
.auth-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(67,97,238,0.25);
  display: block;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.auth-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67,97,238,0.35); }
.auth-btn:hover::after { opacity: 1; }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }


/* ── 4. Shared mobile responsive ── */
@media (max-width: 767px) {
  html, body { height: 100%; overflow-x: hidden; }

  .auth-main {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    overflow-x: hidden;
  }

  .split-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
  }

  .left-panel {
    flex: 0 0 auto;
    height: 38vh;
    min-height: 220px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 0.6rem;
    max-width: 100%;
  }

  .brand-logo { display: none !important; }
  .logo-word { font-size: 22px; }
  .mobile-tagline { display: block; font-size: 14px; font-weight: 700; color: white; margin: 0; }
  .mobile-subtitle { display: block; font-size: 11px; opacity: 0.7; color: white; margin: 0; }

  .feature-pills { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 0.5rem; }
  .feature-pills .pill { padding: 0.35rem 0.8rem; font-size: 0.7rem; border-radius: 100px; margin: 0; background: rgba(255,255,255,0.12); }

  .stats-row { display: flex; gap: 1rem; justify-content: center; align-items: center; }
  .stat-item .stat-value { font-size: 0.9rem; }
  .stat-item .stat-label { font-size: 0.6rem; }
  .stat-divider { height: 20px; }
  .hero-title, .hero-subtitle { display: none !important; }

  .right-panel {
    flex: 1;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    margin-top: -24px;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
  }

  .right-panel .auth-card { max-width: 100%; width: 100%; box-sizing: border-box; }
  .auth-header h2 { font-size: 1.5rem; }
  .auth-header { margin-bottom: 1.2rem; }
  .auth-form { width: 100%; box-sizing: border-box; }
  .input-with-icon { width: 100%; box-sizing: border-box; }
  .input-with-icon input { font-size: 14px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .toggle-password { right: 12px; }
  .auth-btn { width: 100%; padding: 14px; font-size: 1rem; box-sizing: border-box; }
  .auth-footer { margin-top: 1rem; width: 100%; padding-bottom: 20px; }

  html.dark-mode .right-panel {
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6) !important;
    background: #0f172a !important;
  }
}


/* ── 5. Shared mkt-hero banner (all 6 pages) ── */
.mkt-hero {
  background: linear-gradient(135deg,#2a3fa0 0%,#3451d1 50%,#4361ee 100%);
  padding: 1.25rem 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.mkt-hero-inner {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  width: max-content;
  animation: heroScroll 32s linear infinite;
  flex-wrap: nowrap;
}
.mkt-hero-inner:hover { animation-play-state: paused; }
@keyframes heroScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.mkt-hero-card {
  flex-shrink: 0;
  min-width: 200px;
  max-width: 220px;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.mkt-hero-card:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.mkt-hero-card-icon { font-size: 1.6rem; margin-bottom: .2rem; }
.mkt-hero-card-title { font-size: .97rem; font-weight: 700; color: #fff; }
.mkt-hero-card-desc { font-size: .76rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.mkt-hero-card-cta { font-size: .72rem; font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
@media (max-width: 768px) {
  .mkt-hero { padding: .9rem 0; }
  .mkt-hero-card { min-width: 155px; padding: .85rem 1rem; }
  .mkt-hero-card-desc { display: none; }
}
html.dark-mode .mkt-hero { background: linear-gradient(135deg,#1a2560 0%,#1e2f8a 50%,#2a3fa0 100%); }


/* ── 6. Login-specific ── */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  cursor: pointer;
  margin: 0;
}
.checkbox-label input {
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
  margin: 0;
}
.forgot-link { color: var(--brand-primary); text-decoration: none; font-weight: 600; }

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(67,97,238,0.25);
  display: block;
  position: relative;
  overflow: hidden;
}
.login-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity 0.3s ease; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67,97,238,0.35); }
.login-btn:hover::after { opacity: 1; }

@media (max-width: 767px) {
  .forgot-link, .auth-footer a { display: inline-block; padding: 4px 0; min-height: 44px; line-height: 44px; }
  .login-btn { width: 100%; padding: 14px; font-size: 1rem; box-sizing: border-box; }
}


/* ── 7. Register-specific ── */
.terms-agreement {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--brand-primary);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--brand-primary); width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-label i { display: none; }

.terms-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.terms-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.terms-link-item i { color: var(--brand-primary); font-size: 0.9rem; }
.terms-link-item:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: white; transform: translateY(-2px); }
.terms-link-item:hover i { color: white; }

.register-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(67,97,238,0.25);
  display: block;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.register-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity 0.3s ease; }
.register-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67,97,238,0.35); }
.register-btn:hover::after { opacity: 1; }

.auth-footer i { display: none; }

@media (max-width: 767px) {
  .terms-links { flex-direction: column; }
  .terms-link-item { justify-content: center; }
  .register-btn { width: 100%; padding: 14px; font-size: 1rem; box-sizing: border-box; }
}


/* ── 8. Forgot-password-specific ── */
.email-hint { font-size: 0.82rem; margin-top: 0.5rem; color: var(--text-gray); display: flex; align-items: center; gap: 0.25rem; }
.email-hint.valid { color: #10b981; }
.email-hint.invalid { color: #dc2626; }

.send-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(67,97,238,0.25);
  display: block;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.send-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity 0.3s ease; }
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67,97,238,0.35); }
.send-btn:hover::after { opacity: 1; }
.send-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.auth-footer a:hover { color: var(--brand-dark); gap: 0.6rem; }

@media (max-width: 767px) {
  .send-btn { width: 100%; padding: 14px; font-size: 1rem; box-sizing: border-box; }
}


/* ── 9. Reset-password-specific ── */
.password-strength { margin-top: 8px; }
.strength-bar { width: 100%; height: 4px; background-color: var(--border-color); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.strength-bar-fill { height: 100%; width: 0; transition: width 0.3s ease, background-color 0.3s ease; }
.strength-bar-fill.weak { background-color: #dc2626; }
.strength-bar-fill.medium { background-color: #f59e0b; }
.strength-bar-fill.strong { background-color: #10b981; }
.strength-text { font-size: 12px; color: var(--text-gray); display: block; margin-bottom: 8px; }
.password-requirements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
}
.requirement { font-size: 11px; color: var(--text-gray); margin: 0; transition: color 0.3s ease; }
.requirement.met { color: #10b981; }
.password-match { font-size: 12px; margin-top: 4px; font-weight: 500; }
.password-match.match { color: #10b981; }
.password-match.no-match { color: #dc2626; }

.reset-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(67,97,238,0.25);
  display: block;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.reset-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity 0.3s ease; }
.reset-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67,97,238,0.35); }
.reset-btn:hover::after { opacity: 1; }
.reset-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

@media (max-width: 767px) {
  .reset-btn { width: 100%; padding: 14px; font-size: 1rem; box-sizing: border-box; }
  .password-requirements { grid-template-columns: 1fr; }
}


/* ── 10. Terms & Privacy shared layout ── */
.auth-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

body.terms-page,
body.privacy-page {
  background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
  min-height: 100vh;
}

.terms-page .auth-main,
.privacy-page .auth-main {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.terms-page .auth-card,
.privacy-page .auth-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(67,97,238,0.1);
  width: 100%;
  box-sizing: border-box;
}

.terms-page .auth-header,
.privacy-page .auth-header { text-align: center; margin-bottom: 2rem; }

.terms-page .auth-header h2,
.privacy-page .auth-header h2 {
  color: #1e293b;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #4361ee, #3730a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.terms-page .auth-header h2 i,
.privacy-page .auth-header h2 i { font-size: 1.8rem; color: #4361ee; -webkit-text-fill-color: initial; }

.terms-page .auth-header p,
.privacy-page .auth-header p { color: #64748b; font-size: 1rem; }

.terms-page .auth-footer,
.privacy-page .auth-footer { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #4361ee;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.back-link:hover { background: #4361ee; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(67,97,238,0.3); border-color: #4361ee; }
.back-link i { font-size: 0.9rem; transition: transform 0.3s ease; }
.back-link:hover i { transform: translateX(-4px); }

/* Shared scrollable content box */
.terms-content,
.privacy-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  scrollbar-width: thin;
  scrollbar-color: #4361ee #e2e8f0;
}
.terms-content::-webkit-scrollbar,
.privacy-content::-webkit-scrollbar { width: 8px; }
.terms-content::-webkit-scrollbar-track,
.privacy-content::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
.terms-content::-webkit-scrollbar-thumb,
.privacy-content::-webkit-scrollbar-thumb { background: #4361ee; border-radius: 4px; }
.terms-content::-webkit-scrollbar-thumb:hover,
.privacy-content::-webkit-scrollbar-thumb:hover { background: #3730a3; }

.terms-content h3,
.privacy-content h3 { color: #1e293b; font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; }
.terms-content h3:first-child,
.privacy-content h3:first-child { margin-top: 0; }
.terms-content p,
.privacy-content p { color: #475569; line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.95rem; }
.terms-content ul,
.privacy-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.terms-content li,
.privacy-content li { color: #475569; line-height: 1.6; margin-bottom: 0.5rem; font-size: 0.95rem; }
.terms-content strong,
.privacy-content strong { color: #1e293b; font-weight: 600; }

@media print {
  .auth-header h2 { -webkit-text-fill-color: #1e293b; background: none; }
  .back-link { display: none; }
  .terms-content, .privacy-content { max-height: none; overflow: visible; border: none; background: white; }
}

@media (max-width: 768px) {
  .terms-page .auth-card,
  .privacy-page .auth-card { padding: 1.5rem; }
  .terms-page .auth-header h2,
  .privacy-page .auth-header h2 { font-size: 1.6rem; }
  .terms-page .auth-header h2 i,
  .privacy-page .auth-header h2 i { font-size: 1.4rem; }
  .terms-page .auth-header p,
  .privacy-page .auth-header p { font-size: 0.9rem; }
  .terms-content, .privacy-content { padding: 1.25rem; max-height: 450px; }
  .terms-content h3, .privacy-content h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
  .terms-content p, .privacy-content p { font-size: 0.9rem; line-height: 1.6; }
  .back-link { padding: 0.6rem 1.25rem; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .terms-page .auth-card,
  .privacy-page .auth-card { padding: 1.25rem; }
  .terms-page .auth-header h2,
  .privacy-page .auth-header h2 { font-size: 1.3rem; flex-direction: column; gap: 0.5rem; }
  .terms-page .auth-header h2 i,
  .privacy-page .auth-header h2 i { font-size: 1.2rem; }
  .terms-content, .privacy-content { padding: 1rem; max-height: 400px; }
  .terms-content h3, .privacy-content h3 { font-size: 1rem; }
  .terms-content p, .privacy-content p { font-size: 0.85rem; margin-bottom: 1rem; }
  .back-link { padding: 0.5rem 1rem; font-size: 0.9rem; }
}


/* ── 13. Dark mode overrides ── */
html.dark-mode body { background-color: #0f172a !important; }
html.dark-mode .auth-main { background: #0f172a !important; }
html.dark-mode .right-panel { background: #0f172a !important; }
html.dark-mode .right-panel .auth-card { background: transparent !important; border: none !important; box-shadow: none !important; }

html.dark-mode .auth-header h2 {
  background: linear-gradient(135deg, #818cf8, #a5b4fc) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html.dark-mode .auth-header p { color: #94a3b8 !important; }

html.dark-mode .right-panel .form-group label,
html.dark-mode .form-group label { color: #cbd5e1 !important; }

html.dark-mode .input-with-icon input,
html.dark-mode .right-panel input[type="text"],
html.dark-mode .right-panel input[type="email"],
html.dark-mode .right-panel input[type="password"] { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }
html.dark-mode .input-with-icon input:focus { border-color: #4361ee !important; background: #1e293b !important; box-shadow: 0 0 0 3px rgba(67,97,238,0.25) !important; }
html.dark-mode .input-with-icon input::placeholder { color: #475569 !important; }
html.dark-mode .input-with-icon > i { color: #475569 !important; }
html.dark-mode .input-with-icon:focus-within > i { color: #818cf8 !important; }

html.dark-mode .toggle-password i { color: #475569 !important; }
html.dark-mode .toggle-password:hover i { color: #818cf8 !important; }

html.dark-mode .checkbox-label { color: #94a3b8 !important; }
html.dark-mode .forgot-link { color: #818cf8 !important; }
html.dark-mode .forgot-link:hover { color: #a5b4fc !important; }

html.dark-mode .error-message { background: #2d1a1a !important; color: #f87171 !important; border-left-color: #ef4444 !important; }
html.dark-mode .success-message { background: #0d2d1a !important; color: #34d399 !important; border-left-color: #10b981 !important; }

html.dark-mode .auth-footer { color: #64748b !important; border-top-color: #1e293b !important; }
html.dark-mode .auth-footer a { color: #818cf8 !important; }
html.dark-mode .auth-footer a:hover { color: #a5b4fc !important; }

html.dark-mode .terms-agreement { background: #1e293b !important; border-left-color: #4361ee !important; }
html.dark-mode .terms-link-item { background: #0f172a !important; border-color: #334155 !important; color: #cbd5e1 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important; }
html.dark-mode .terms-link-item i { color: #818cf8 !important; }
html.dark-mode .terms-link-item:hover { background: #4361ee !important; border-color: #4361ee !important; color: white !important; }
html.dark-mode .terms-link-item:hover i { color: white !important; }

html.dark-mode .strength-bar { background: #1e293b !important; }
html.dark-mode .strength-text { color: #94a3b8 !important; }

html.dark-mode .otp-input,
html.dark-mode input.digit { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }

html.dark-mode input:-webkit-autofill,
html.dark-mode input:-webkit-autofill:hover,
html.dark-mode input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  border-color: #334155 !important;
  transition: background-color 5000s ease-in-out 0s;
}

html.dark-mode .right-panel,
html.dark-mode .auth-main,
html.dark-mode .auth-container { background: #0f172a !important; }
html.dark-mode .auth-card, html.dark-mode .form-card { background: #0f172a !important; border-color: #1e293b !important; }
html.dark-mode .form-check-input, html.dark-mode input[type="checkbox"] { background-color: #1e293b !important; border-color: #475569 !important; }
html.dark-mode .app-navbar { background: #1e293b !important; }
html.dark-mode select { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }

html.dark-mode .card,
html.dark-mode .box,
html.dark-mode .panel { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }

@media (max-width: 768px) {
  html.dark-mode .nav-menu { background: #1e293b !important; }
  html.dark-mode .nav-link { color: #cbd5e1 !important; }
  html.dark-mode .nav-link:hover { background: #334155 !important; color: #818cf8 !important; }
}

.left-panel { overflow: hidden !important; }
.right-panel { overflow: hidden !important; }

/* ── Mobile: hide left panel, form takes full screen ── */
@media (max-width: 767px) {
  .left-panel {
    display: none !important;
  }
  .split-layout {
    display: block;
    min-height: 100vh;
  }
  .right-panel {
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .right-panel .auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
  }
}

/* hide pre-auth marketplace carousel on mobile */
@media (max-width: 767px) {
  .mkt-hero { display: none !important; }
}
