/* =========================================================
   Spiravata MAN — Login (compat / lint-clean)
   Doel:
   - Geen clamp(), min(), mask-image, backdrop-filter
   - Geen ongewenste scrollbars (bg clipped)
   - Layout netjes gecentreerd
   - Inputs hebben ruimte voor Chrome autofill “…” + eye
========================================================= */

:root{
  --bg: #07080a;

  --panelA: rgba(18,20,26,0.78);
  --panelB: rgba(10,12,16,0.66);

  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(229,231,235,0.84);

  --accent: #12b981;   /* groen */
  --accentBlue: #7aa7ff;

  --shadow: 0 18px 55px rgba(0,0,0,0.54);
  --radius: 24px;

  /* Buttons (overrides uit buttons.css) */
  --btn-primary-bg: var(--accent);
  --btn-primary-hover: rgba(18, 185, 129, 0.92);
  --btn-primary-active: rgba(18, 185, 129, 0.80);
  --focus-primary-outline: rgba(18, 185, 129, 0.65);
  --focus-primary-shadow: rgba(18, 185, 129, 0.16);
}

*, *::before, *::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

html{
  overflow: hidden;
}

body.login-body{
  margin: 0;
  height: 100vh;
  height: 100svh;
  background: var(--bg);
  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;

  overflow: hidden;

  -webkit-tap-highlight-color: transparent;
}

/* iets meer lucht op grotere schermen */
@media (min-width: 1100px){
  body.login-body{ padding: 0 36px; }
}
@media (max-width: 420px){
  body.login-body{ padding: 0 16px; }
}

/* ---------------------------------------------------------
   Achtergrond (clipped => geen scrollbar door blur)
--------------------------------------------------------- */
.login-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb{
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
  transform: translate3d(0,0,0);
  animation: orbFloat 22s ease-in-out infinite;
}

.orb-1{
  top: -420px;
  left: -380px;
  background:
    radial-gradient(circle at 30% 30%, rgba(122,167,255,0.30), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(18,185,129,0.18), transparent 62%);
}

.orb-2{
  bottom: -460px;
  right: -380px;
  background:
    radial-gradient(circle at 30% 30%, rgba(18,185,129,0.28), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(122,167,255,0.16), transparent 62%);
  animation-delay: -7s;
}

/* subtiele grid zonder mask-image */
.bg-grid{
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-vignette{
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 620px at 50% 35%, rgba(0,0,0,0.18), rgba(0,0,0,0.82));
}

/* ---------------------------------------------------------
   Grid layout (2 kaarten)
--------------------------------------------------------- */
.login-shell{
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1060px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 920px){
  .login-shell{
    grid-template-columns: 1fr;
    max-width: 760px;
  }
}

/* Cards */
.login-hero,
.login-panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  position: relative;
  overflow: hidden;
}

/* subtiele shine */
.login-hero::before,
.login-panel::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(680px 220px at 22% 0%, rgba(122,167,255,0.07), transparent 60%),
    radial-gradient(680px 220px at 78% 0%, rgba(18,185,129,0.06), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.login-hero{
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 420px){
  .login-hero{ padding: 22px; }
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-mark{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.94);
  box-shadow: 0 14px 34px rgba(0,0,0,0.38);

  animation: markPop 860ms cubic-bezier(.2,.9,.2,1) both;
}

.brand-mark svg{ width: 34px; height: 34px; }

/* Spiraal tekent zichzelf */
.brand-mark svg path{
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: spiralDraw 1100ms ease forwards;
  animation-delay: 220ms;
}

.brand-name{
  font-size: 1.18rem;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.brand-tagline{
  color: rgba(229,231,235,0.84);
  font-size: 0.98rem;
  margin-top: 2px;
}

.hero-title{
  font-size: 2.6rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 2px 0 0 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px){
  .hero-title{ font-size: 2.25rem; }
}
@media (max-width: 420px){
  .hero-title{ font-size: 2.0rem; }
}

.hero-subtitle{
  color: rgba(229, 231, 235, 0.90);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hero-points{
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-points li{
  position: relative;
  padding-left: 28px;
  color: rgba(229, 231, 235, 0.90);
  line-height: 1.42;
}

.hero-points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(18,185,129,0.52), rgba(18,185,129,0.10) 70%),
    radial-gradient(circle at 70% 60%, rgba(122,167,255,0.18), transparent 65%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.26);
}

.hero-more{
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.hero-more summary{
  cursor: pointer;
  color: rgba(229,231,235,0.82);
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-more summary::-webkit-details-marker{ display:none; }

.hero-quote{
  margin-top: 12px;
  border-left: 3px solid rgba(18,185,129,0.35);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
}

.quote-text{
  color: rgba(229,231,235,0.86);
  line-height: 1.5;
}

.hero-footer{
  margin-top: auto;
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.micro{
  color: rgba(229, 231, 235, 0.86);
  font-size: 0.98rem;
}

/* ---------------------------------------------------------
   LOGIN PANEL
--------------------------------------------------------- */
.login-panel{
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 420px){
  .login-panel{ padding: 22px; }
}

.panel-head{
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.panel-title{
  font-size: 1.58rem;
  margin: 0 0 6px 0;
  font-weight: 800;
}

/* ✅ Leesbaarheid microcopy: iets lichter + mini stapje groter */
.panel-subtitle{
  margin: 0;
  color: rgba(229, 231, 235, 0.90);
  font-size: 1.02rem;
  line-height: 1.45;
}

.login-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label{
  color: rgba(229, 231, 235, 0.92);
  font-size: 0.96rem;
}

/* Input wrapper */
.input-wrap{
  position: relative;
  display: block;
  --pr: 160px;
}

.input-icon{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.88;
  pointer-events: none;
  color: rgba(229,231,235,0.90);
}
.input-icon svg{ width: 18px; height: 18px; }

.login-form input{
  width: 100%;
  box-sizing: border-box;
  padding: 12px var(--pr, 80px) 12px 40px; /* ruimte voor Chrome “…” + consistent */
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input::placeholder{
  color: rgba(170, 178, 190, 0.92);
}

/* ✅ Autofill/credentials minder dominant: input iets lichter op focus */
.login-form input:focus{
  background: rgba(255,255,255,0.08);
  border-color: rgba(18, 185, 129, 0.44);
  box-shadow: 0 0 0 3px rgba(18, 185, 129, 0.12);
}

/* Houd jouw bestaande ruimte (zoals in je project) */
.input-wrap.has-action{ --pr: 160px; }

/* Password toggle (eye) */
.input-action{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 0;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(229,231,235,0.90);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.input-action svg{
  width: 18px;
  height: 18px;
  opacity: 0.92;
  display: block;
  transform: translate(-0.5px, 0);
}

/* ✅ Wachtwoord vergeten link */
.forgot-link{
  align-self: flex-end;
  margin-top: 2px;
  font-size: 0.90rem;
  color: rgba(229, 231, 235, 0.78);
  text-decoration: none;
}

.forgot-link:hover{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link:focus-visible{
  outline: 2px solid rgba(18, 185, 129, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Messages */
.message{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(229, 231, 235, 0.92);
  line-height: 1.35;
}

.message.error{
  border-color: rgba(255, 90, 90, 0.42);
  background: rgba(255, 90, 90, 0.12);
}

.message.success{
  border-color: rgba(18, 185, 129, 0.18);
  background: rgba(18, 185, 129, 0.06);
  font-size: 0.94rem;
}

/* CTA */
.login-submit{
  margin-top: 6px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 780;
  letter-spacing: 0.2px;
  display: inline-flex;
  justify-content: center;
  gap: 10px;
}

.login-submit .arrow{
  display: inline-block;
  transform: translateY(0.5px);
}

.panel-microcopy{
  color: rgba(229, 231, 235, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 4px;
}

/* Demo hint */
.login-hint{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.login-hint summary{
  cursor: pointer;
  padding: 10px 12px;
  color: rgba(229, 231, 235, 0.82);
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.login-hint summary::-webkit-details-marker{ display:none; }

.login-hint summary::after{
  content: "▾";
  float: right;
  opacity: 0.75;
  transform: translateY(1px);
}
.login-hint[open] summary::after{ content: "▴"; }

.hint-body{
  padding: 10px 12px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(229, 231, 235, 0.84);
  display: grid;
  gap: 6px;
}

.panel-footer{
  margin-top: 16px;
  color: rgba(229, 231, 235, 0.80);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Motion */
@keyframes orbFloat{
  0%   { transform: translate(-2%, -1%) scale(1); }
  50%  { transform: translate(3%, 2%) scale(1.03); }
  100% { transform: translate(-2%, -1%) scale(1); }
}
@keyframes markPop{
  from { transform: translateY(2px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes spiralDraw{
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce){
  .bg-orb{ animation: none; }
  .brand-mark,
  .brand-mark svg path{ animation: none; }
}

/* Chrome/Edge: probeer credentials button te verbergen (werkt niet altijd) */
input[type="password"]::-webkit-credentials-auto-fill-button{
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}
input::-webkit-contacts-auto-fill-button{
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}
