/* -------------------------------------------------------
   Citymaker Login – lichte, snelle styling
   Sluit aan bij citymaker.nl: veel witruimte, blauwe accenten
-------------------------------------------------------- */

/* Fonts & Icons */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");

/* ========== Design tokens ========== */
:root{
  --brand:        #2b7bb6;
  --brand-700:    #6699cc;
  --brand-50:     #e8f2fb;
  --ink:          #0b1721;
  --muted:        #6b7a86;
  --bg:           #f7f9fc;
  --white:        #ffffff;
  --ring:         0 0 0 3px rgba(43,123,182,.25);
  --radius:       16px;
  --shadow:       0 10px 30px rgba(10,30,50,.08);
  --shadow-strong:0 20px 50px rgba(10,30,50,.12);
}

/* ========== Base reset ========== */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family:'Roboto Mono', monospace;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--brand-50), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, var(--brand-50), transparent 60%),
    var(--bg);
}

/* ========== Layout ========== */
.page{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:clamp(24px,3vw,48px);
}
.card{
  width:min(560px,92vw);
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:clamp(20px,3vw,40px);
  transition: box-shadow .2s ease;
  position:relative;
}
.card:hover{ box-shadow:var(--shadow-strong); }

.card__header{ text-align:center; margin-bottom:8px; }
.logo{ display:block; height:44px; margin-inline:auto; user-select:none; }
h1{
  font-size:clamp(22px,2.4vw,26px);
  line-height:1.2;
  margin:12px 0 4px;
  font-weight:600;
}
.subtitle{ margin:0 0 10px; color:var(--muted); padding-bottom:20px; }

/* ========== Form controls ========== */
form{ margin-top:10px; }
.field{ margin-bottom:18px; }
.field:last-of-type{ margin-bottom:12px; }

label{
  display:block;
  font-size:14px;
  font-weight:500;
  margin-bottom:8px;
}

/* Consistente stijl voor e-mail, wachtwoord en tekst */
input[type="email"],
input[type="password"],
input[type="text"]{
  width:100%;
  height:42px;
  border:1px solid #d5dde6;
  background:#fbfdff;
  border-radius:12px;
  padding:0 44px 0 14px; /* ruimte voor evt. toggle-knop rechts */
  font-size:16px;
  line-height:1;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder{ color:#9aa8b5; }

/* Globale focus-ring (niet voor password: die krijgt inset, zie verderop) */
input[type="email"]:focus-visible,
input[type="text"]:focus-visible{
  outline:none;
  border-color:var(--brand);
  box-shadow:var(--ring);
  background:#fff;
}

/* Password wrapper + toggle (met inset focus om 'afknippen' te voorkomen) */
.password{
  position:relative;
  border-radius:12px; /* visuele consistentie */
}
.password input{
  padding-right:80px; /* ruimte voor toggle */
}
/* Kill de externe glow en gebruik een duidelijke inset ring */
.password input,
.password input:focus,
.password input:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}
.password input:focus-visible{
  box-shadow: inset 0 0 0 2px var(--brand) !important;
  background:#fff;
}
.password__toggle{
  position:fixed;
  right:8px;
  top:56%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  border:0;
  background:transparent;
  font:inherit;
  color:var(--brand);
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
}
.password__toggle:hover{ color:var(--brand-700); }
.password__toggle:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

/* Checkbox */
.checkbox{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--ink);
  user-select:none;
}
.checkbox input{ width:16px; height:16px; accent-color:var(--brand); }

/* Utility rows */
.row{ display:flex; align-items:center; gap:12px; margin:8px 0 16px; }
.row--between{ justify-content:space-between; padding-top:35px; }

/* Buttons */
/* Buttons */
.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 16px;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  /* Verwijder filter-transitions → geen halo’s meer */
  transition:transform .02s ease, box-shadow .2s ease, background-position .25s ease;
  background-clip: padding-box;         /* geen gradient-bleed langs de randen */
  -webkit-tap-highlight-color: transparent;
}

.btn--primary{
  color:#fff;
  background: var(--brand-700);
  background-size: 100% 100%;
}

.btn--primary:hover{
  /* subtiele “lift” zonder filter() */
  box-shadow: 0 10px 24px rgba(43,123,182,.28);
}

.btn--primary:active{
  transform: translateY(1px);
}

/* duidelijke keyboard focus, niet afhankelijk van box-shadow */
.btn:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn[disabled]{ opacity:.6; cursor:progress; }

/* Groepering van onderste links */
.support-links {
  display: flex;
  flex-direction: column;
  align-items: center;       /* netjes gecentreerd onder de knop */
  gap: 6px;                  /* ruimte tussen de twee regels */
  margin-top: 10px;
}

.support-links {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.link{
  color:var(--brand);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
}
.link:hover{ text-decoration:underline; }


/* Errors & notes */
.field__error,
.form__error{ margin:6px 0 0; font-size:13px; color:#b42318; }
.form__note{ margin:14px 0 0; font-size:14px; color:var(--muted); }
.card__footer{ margin-top:18px; text-align:center; }
.muted{ color:var(--muted); font-size:13px; }

/* ========== View switcher (login <-> forgot) ========== */
.viewstack{ overflow:hidden; }
.viewrow{
  display:grid;
  grid-template-columns:100% 100%;
  gap:0;
  transition: transform .35s ease;
}
.card[data-active="login"]  .viewrow{ transform: translateX(0%); }
.card[data-active="forgot"] .viewrow{ transform: translateX(-100%); }
.view{ padding:0; animation: viewfade .35s ease; }
@keyframes viewfade{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ========== Icon cloud (optioneel, subtiel) ========== */
.icon-cloud{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:-1;
}
.icon-cloud img{
  position:absolute;
  width:48px;
  opacity:.6;
  animation: float 20s linear infinite, fade 12s ease-in-out infinite alternate;
}
/* willekeurige posities + delays (12 items) */
.icon-cloud img:nth-child(1) { top:10%; left:15%; animation-delay: 0s, 0s; }
.icon-cloud img:nth-child(2) { top:20%; left:70%; animation-delay: 3s, 2s; }
.icon-cloud img:nth-child(3) { top:40%; left:25%; animation-delay: 6s, 4s; }
.icon-cloud img:nth-child(4) { top:60%; left:80%; animation-delay: 9s, 6s; }
.icon-cloud img:nth-child(5) { top:75%; left:35%; animation-delay:12s, 8s; }
.icon-cloud img:nth-child(6) { top:50%; left:50%; animation-delay:15s,10s; }
.icon-cloud img:nth-child(7) { top:30%; left:10%; animation-delay:18s,12s; }
.icon-cloud img:nth-child(8) { top:15%; left:85%; animation-delay:21s,14s; }
.icon-cloud img:nth-child(9) { top:65%; left:15%; animation-delay:24s,16s; }
.icon-cloud img:nth-child(10){ top:80%; left:70%; animation-delay:27s,18s; }
.icon-cloud img:nth-child(11){ top:45%; left:90%; animation-delay:30s,20s; }
.icon-cloud img:nth-child(12){ top:5%;  left:45%; animation-delay:33s,22s; }

/* Bewegings- en fade-animaties */
@keyframes float{
  0%{ transform:translate(0,0) rotate(0deg); }
  25%{ transform:translate(20px,-10px) rotate(5deg); }
  50%{ transform:translate(0,-20px) rotate(-5deg); }
  75%{ transform:translate(-20px,-10px) rotate(5deg); }
  100%{ transform:translate(0,0) rotate(0deg); }
}
@keyframes fade{
  0%{ opacity:0; }
  50%{ opacity:.6; }
  100%{ opacity:0; }
}

/* ========== Dark mode specifieke inputs/btns ========== */
@media (prefers-color-scheme: dark){
  input[type="email"],
  input[type="password"],
  input[type="text"]{
    background:#0f141a;
    border-color:#2a3b4a;
    color:var(--ink);
  }
  .btn--primary{ box-shadow:0 6px 16px rgba(21,86,128,.45); }
}
