/* ----------
   Glassmorphism Login met full-screen fotoachtergrond
   ---------- */
:root {
  --focus: 72 187 255;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: rgba(0, 0, 0, .6);
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.bg-photo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/loginbackground.jpg') center/cover no-repeat;
  z-index: 0;
}

.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1); /* donkere overlay, 35% zwart */
  z-index: 1;
}

/* Glass card */
.card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.25);
}
.card__header {
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: rgba(0,0,0,.6);
  font-weight:bold;
  font-size:1.3em;
  text-align:center;
}
.logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}

.form { display: grid; gap: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.field { position: relative; }
.field input {
  width: 100%;
  padding: 18px 44px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  font-size:1em;
  color: #000;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: transparent; }
.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  transition: all .18s ease;
}
.field input:focus {
  border-color: rgb(var(--focus));
  background: rgba(255,255,255,.2);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  font-size: 12px;
  top: 0;
  transform: translateY(-50%) translateY(-6px);
  color: #fff;
}

.reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  cursor: pointer;
}
.reveal.is-on { border-color: rgb(var(--focus)); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
}
.checkbox input:checked {
  border-color: rgb(var(--focus));
  background: rgb(var(--focus) / .2);
}
.checkbox input:checked::after {
  content: "✓";
  font-size: 12px;
  color: white;
}

#passwordvergeten {
  padding-bottom:20px;
}

.link {
  color: rgba(0,0,0,.6);
  text-decoration: none;
  border-bottom: 1px dashed rgba(204,234,255,.5);
}
.link:hover { border-bottom-style: solid; }

.btn {
  display: inline-block;       /* werkt voor zowel a als button */
  text-decoration: none;       /* verwijdert onderstreping van <a> */
  text-align: center;          /* centreert de tekst horizontaal */
  vertical-align: middle;      /* nette lijnhoogte voor <a> */
  cursor: pointer;

  /* bestaande stijlen die je al had: */
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.2);
  color: rgba(0,0,0,.6);
  font-size:1em;
  font-weight: 600;
  transition: background .2s ease;
}

.btn:hover { background: rgba(255,255,255,.3); }

.error-msg {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: #000000;
  font-weight: 600;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.footer a,
.footer a:hover,
.footer a:visited {
  color: rgba(255,255,255,.75);
}

.reveal i {
  color: rgba(0,0,0,.6); 
}
