/* ================================================================
   pages/css/dashboard.css
   ParkieVault V2 — Member Login Page (dashboard.html)
   Extends join-member.css visual language.
   Depends on: css/base.css, css/nav.css, css/buttons.css, css/cards.css, css/footer.css
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS (mirrors join-member.css exactly)
   ---------------------------------------------------------------- */
:root {
  --jm-gold:          #c9a84c;
  --jm-gold-muted:    #a07830;
  --jm-gold-glow:     rgba(201, 168, 76, 0.18);
  --jm-gold-text:     #e8c97a;
  --jm-accent:        #f0d080;
  --jm-surface:       rgba(255, 255, 255, 0.045);
  --jm-surface-hover: rgba(255, 255, 255, 0.075);
  --jm-border:        rgba(255, 255, 255, 0.08);
  --jm-border-gold:   rgba(201, 168, 76, 0.25);
  --jm-text-primary:  #f0ece4;
  --jm-text-muted:    rgba(240, 236, 228, 0.85);
  --jm-text-dim:      rgba(240, 236, 228, 0.45);
  --jm-red-muted:     rgba(220, 80, 80, 0.2);
  --jm-red-border:    rgba(220, 80, 80, 0.35);
  --jm-input-bg:      rgba(255, 255, 255, 0.055);
  --jm-input-focus:   rgba(201, 168, 76, 0.3);
  --jm-radius-card:   18px;
  --jm-radius-input:  10px;
  --jm-radius-btn:    50px;
  --jm-container-max: 860px;
  --jm-section-gap:   80px;
}

/* ----------------------------------------------------------------
   BODY & BACKGROUND
   ---------------------------------------------------------------- */
.page-dashboard {
  background-color: #0a0a0c;
  color: var(--jm-text-primary);
  font-family: inherit;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-dashboard::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../images/form.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: contain;
  opacity: 0.30;
  pointer-events: none;
}

.jm-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.jm-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.jm-bg-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.glow-top-left {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, #c9a84c 0%, transparent 70%);
}

.glow-bottom-right {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #6644aa 0%, transparent 70%);
}

.jm-hero,
.jm-section,
.jm-footer {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   CONTAINER
   ---------------------------------------------------------------- */
.jm-container {
  max-width: var(--jm-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------------
   BACK BUTTON
   ---------------------------------------------------------------- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--jm-border);
  color: var(--jm-text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--jm-border-gold);
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.jm-hero {
  padding: 32px 0 60px;
  text-align: center;
}

.jm-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jm-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jm-gold);
  margin: 0;
}

.jm-hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--jm-text-primary);
  margin: 0;
  line-height: 1.1;
}

.jm-hero-subtitle {
  font-size: 1rem;
  color: var(--jm-text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

.db-hero-link {
  color: var(--jm-gold-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.db-hero-link:hover {
  color: var(--jm-accent);
  text-decoration: underline;
}

.jm-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.jm-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(50, 180, 100, 0.15);
  border: 1px solid rgba(50, 180, 100, 0.3);
  color: #6ddb90;
}

.badge-ref {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--jm-border-gold);
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   SECTION
   ---------------------------------------------------------------- */
.jm-section {
  padding: var(--jm-section-gap) 0;
}

.jm-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.jm-section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--jm-text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.jm-section-sub {
  font-size: 0.9rem;
  color: var(--jm-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   GLASS CARD
   ---------------------------------------------------------------- */
.jm-glass-card {
  background: var(--jm-surface);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-card);
  padding: 28px;
  transition: border-color 0.25s;
}

.jm-glass-card:hover {
  border-color: var(--jm-border-gold);
}

/* Login form card — narrower, centered */
.db-form-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
}

/* ----------------------------------------------------------------
   ALERTS
   ---------------------------------------------------------------- */
.al-err,
.al-ok {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.al-err {
  background: var(--jm-red-muted);
  border: 1px solid var(--jm-red-border);
  color: #e88080;
}

.al-ok {
  background: rgba(50, 180, 100, 0.12);
  border: 1px solid rgba(50, 180, 100, 0.25);
  color: #6ddb90;
}

/* ----------------------------------------------------------------
   FORM
   ---------------------------------------------------------------- */
.jm-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.jm-form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jm-text-dim);
}

.jm-form-input {
  background: var(--jm-input-bg);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-input);
  color: var(--jm-text-primary);
  font-size: 0.88rem;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.jm-form-input::placeholder {
  color: var(--jm-text-dim);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
}

.jm-form-input:focus {
  border-color: var(--jm-gold-muted);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px var(--jm-input-focus);
}

/* Password wrap */
.jm-input-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jm-input-pw-wrap .jm-form-input {
  padding-right: 42px;
}

.jm-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--jm-text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.jm-pw-toggle:hover {
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   FORM ACTIONS
   ---------------------------------------------------------------- */
.jm-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.jm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8d8a0 0%, #c9a84c 100%);
  color: #1a1208;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: var(--jm-radius-btn);
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
  font-family: inherit;
}

.jm-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.38);
}

.jm-btn-primary:active {
  transform: translateY(0);
}

.jm-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.jm-form-login-prompt {
  font-size: 0.8rem;
  color: var(--jm-text-dim);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.jm-form-login-link {
  color: var(--jm-gold-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.jm-form-login-link:hover {
  color: var(--jm-accent);
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.jm-footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--jm-border);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.jm-footer .jm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.jm-footer-copy {
  font-size: 0.78rem;
  color: var(--jm-text-dim);
  margin: 0;
}

.jm-footer-link {
  font-size: 0.78rem;
  color: var(--jm-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.jm-footer-link:hover {
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 560px) {
  .jm-container { padding: 0 16px; }
  .jm-hero { padding: 24px 0 40px; }
  .jm-hero-title { font-size: 2rem; }
  .db-form-card { padding: 24px 18px; }

  :root { --jm-section-gap: 48px; }

  .jm-footer .jm-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
