:root{
  --ink:#0b1220;
  --bg:#0a0f16;
  --panel:rgba(10,15,22,.55);
  --brand:#2ad19f;         /* fris mintgroen voor CTA */
  --brand-ink:#0a3a2a;
  --ink-contrast:#ffffff;
  --muted:#cdd6e3;
  --ghost:#ffffff;
  --ghost-ink:#ffffff;
  --radius:14px;
  --shadow:0 12px 45px rgba(0,0,0,.45);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{ margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--ink-contrast); background:var(--bg) }

/* HERO */
.hero{
  position:relative; min-height:100vh; display:grid;
  grid-template-rows: auto 1fr auto;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.65) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  filter:saturate(1.05);
  z-index:0;
}

/* TOPBAR */
.hero__topbar{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px clamp(16px, 4vw, 40px);
}
.brand{ display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none }
.brand__logo{ width:28px; height:28px }
.brand__name{ font-weight:700; letter-spacing:.12em }
.topnav{ display:flex; align-items:center; gap:12px }
.topnav__link{
  color:#fff; text-decoration:none; padding:10px 14px; border-radius:10px;
  background:transparent; border:1px solid rgba(255,255,255,.16)
}
.topnav__link:hover{ background:rgba(255,255,255,.08) }
.topnav__btn{
  color:#0b1220; background:#fff; text-decoration:none; padding:10px 16px; border-radius:10px; font-weight:600
}
.topnav__btn:hover{ filter:brightness(.95) }

/* CENTER */
.hero__center{
  position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: clamp(24px, 6vw, 40px);
}
.hero__title{
  margin:0 0 20px; line-height:1.05;
  font-weight:700; letter-spacing:-.01em;
  font-size: clamp(32px, 6vw, 56px);
  text-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.hero__cta{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center }

.btn{
  display:inline-block; padding:14px 22px; border-radius:12px; text-decoration:none;
  font-weight:700; letter-spacing:.02em; box-shadow:var(--shadow);
  transition: transform .12s ease, filter .15s ease;
}
.btn:active{ transform:translateY(1px) }

.btn--primary{
  background:linear-gradient(180deg, var(--brand) 0%, #19b988 100%);
  color:#062117;
}
.btn--primary:hover{ filter:brightness(1.03) }

.btn--ghost{
  background:transparent; color:#fff; border:2px solid rgba(255,255,255,.75);
}
.btn--ghost:hover{ background:rgba(255,255,255,.08) }

/* BOTTOM */
.hero__bottom{
  position:relative; z-index:2; padding:24px clamp(16px, 4vw, 40px) 40px;
}
.features{
  list-style:none; margin:0; padding:0; display:flex; gap:18px; flex-wrap:wrap; justify-content:center
}
.features li{
  backdrop-filter: blur(6px);
  background:var(--panel);
  border:1px solid rgba(255,255,255,.1);
  color:#eef3fb; padding:10px 14px; border-radius:999px;
}

/* Small devices */
@media (max-width: 480px){
  .topnav__link{ display:none } /* hou het compact op mobiel */
}

/* ----- AUTH PAGES ----- */
.auth-page{
  min-height:100vh; display:grid; place-items:center;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(42,209,159,.10), transparent 70%) no-repeat,
    url("../img/hero.jpg") center/cover no-repeat fixed;
}
.auth-card{
  width:min(560px, 92vw);
  background:rgba(10,15,22,.72);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px; box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  color:#fff; padding:28px;
}
.auth-card header{
  display:flex; align-items:center; gap:12px; margin-bottom:18px;
}
.auth-card header img{ width:28px; height:28px }
.auth-card h1{ margin:0; font-size:26px; line-height:1.15 }
.form-row{ display:flex; flex-direction:column; gap:8px; margin:12px 0 }
.form-row label{ font-weight:600; color:#e9eef8 }
.input{
  width:100%; padding:12px 14px; border-radius:12px; color:#0b1220;
  border:1px solid rgba(255,255,255,.2); background:#fff;
}
.input--password{ position:relative }
.pw-wrap{ position:relative }
.pw-toggle{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:transparent; border:none; color:#0b1220; cursor:pointer; font-weight:600;
}
.actions{ display:flex; gap:12px; margin-top:16px; align-items:center; flex-wrap:wrap }
.btn--full{ width:100%; text-align:center }
.divider{ display:flex; align-items:center; gap:10px; margin:18px 0; color:#cdd6e3 }
.divider::before, .divider::after{ content:""; flex:1; height:1px; background:rgba(255,255,255,.18) }
.oauth{
  display:grid; grid-template-columns:1fr; gap:10px;
}
.oauth .btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:#fff; color:#0b1220; border:1px solid rgba(0,0,0,.08);
}
.oauth img{ width:18px; height:18px }
.form-help{ font-size:14px; color:#cdd6e3 }
.form-errors{ color:#ffd2d2; font-size:14px }
.form-errors li{ margin-left:16px }

/* Flash messages */
.flash-stack{
  position:fixed; right:16px; bottom:16px; display:grid; gap:10px; z-index:9999;
}
.flash{ padding:12px 14px; border-radius:12px; backdrop-filter: blur(8px); color:#0b1220; }
.flash--ok{ background:#2ad19f; }
.flash--error{ background:#ffd2d2; }
