/* ==========================================================
   MijnGPH - login.css
   ========================================================== */

body.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 0.5rem + 3vw, 3rem);
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgba(79, 70, 229, 0.08), transparent 60%),
    var(--bg-blue);
}

.auth {
  width: 100%;
  max-width: 72rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 1px solid var(--border);
}

/* Merkpaneel */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2rem, 1rem + 3vw, 3.5rem);
  color: #c7d2fe;
  background: linear-gradient(160deg, #4f46e5 0%, #3525cd 55%, #1e1690 100%);
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.auth-brand > * { position: relative; }
.auth-brand .brand-name { color: #fff; }
.auth-brand .brand-sub { color: #c7d2fe; }
.auth-brand .brand-mark { background: #fff; color: var(--primary); }
.auth-brand .badge { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.2); align-self: flex-start; }
.auth-brand h1 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; margin: 1rem 0; }
.auth-brand p { font-size: 1rem; line-height: 1.7; max-width: 30rem; margin: 0; }

.auth-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.auth-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 60% center; }

.readiness {
  padding: 1.125rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  font-size: 0.8125rem;
}
.readiness-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; color: #fff; }
.readiness-top strong { color: var(--teal-glow); }
.readiness-bar { height: 0.375rem; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.15); margin: 0.75rem 0; overflow: hidden; }
.readiness-bar span { display: block; height: 100%; width: 100%; background: var(--teal-glow); border-radius: inherit; }
.readiness-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.readiness-foot span { display: inline-flex; align-items: center; gap: 0.375rem; }
.readiness-foot [data-lucide], .readiness-foot .lucide { width: 0.9375rem; height: 0.9375rem; }

.social-proof { margin-top: auto; display: flex; align-items: center; gap: 0.875rem; padding: 1rem 1.125rem; background: rgba(255, 255, 255, 0.06); border-radius: var(--r-lg); font-size: 0.8125rem; }
.social-proof .avatar { background: var(--teal); color: #fff; width: 2.75rem; height: 2.75rem; font-size: 0.8125rem; }
.social-proof strong { display: block; color: #fff; font-size: 0.875rem; }

/* Formulierpaneel */
.auth-main { display: flex; flex-direction: column; }
.auth-form-wrap { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); flex: 1; }
.auth-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; }
.auth-head .eyebrow { margin: 0; }
.auth-title { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem); margin-bottom: 0.5rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.3125rem; background: var(--bg-blue); border-radius: var(--r-lg); margin-bottom: 1.5rem; }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.tab:focus-visible { outline-offset: -2px; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-social { background: var(--bg-blue); border: 1px solid transparent; color: var(--ink); min-height: 3rem; }
.btn-social:hover { background: var(--primary-tint-2); color: var(--ink); }
.btn-social svg { width: 1.125rem; height: 1.125rem; }

.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--subtle); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.form-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.secure { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 500; color: var(--teal-dark); }
.secure [data-lucide], .secure .lucide { width: 1rem; height: 1rem; }

.form-alert {
  display: flex; gap: 0.625rem; align-items: flex-start;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-md);
  background: var(--danger-tint);
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
}
.form-alert.ok { background: var(--emerald-tint); border-color: #a7f3d0; color: #065f46; }
.form-alert[hidden] { display: none; }

.switch-line { text-align: center; margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.switch-line button { border: 0; background: none; padding: 0.25rem; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.link-btn { border: 0; background: none; padding: 0; font-size: 0.8125rem; font-weight: 600; color: var(--primary); }
.link-btn:hover { text-decoration: underline; }

.strength { display: flex; gap: 0.25rem; margin-top: 0.25rem; }
.strength span { flex: 1; height: 0.25rem; border-radius: var(--r-full); background: var(--divider); transition: background 0.2s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--teal); }
.strength[data-level="4"] span { background: var(--emerald); }

.auth-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 1.25rem clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--bg-blue);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  margin: 0;
}
.auth-foot li { display: inline-flex; align-items: center; gap: 0.375rem; }
.auth-foot [data-lucide], .auth-foot .lucide { width: 0.9375rem; height: 0.9375rem; color: var(--primary); }

.back-home { position: fixed; top: 1rem; left: 1rem; }

@media (max-width: 960px) {
  body.auth-body { place-items: start center; padding: 0; background: #fff; }
  .auth { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; border: 0; }
  .auth-brand { gap: 1.25rem; padding: 1.25rem 1.25rem 1.5rem; }
  .auth-brand h1 { font-size: 1.5rem; margin: 0.5rem 0; }
  .auth-brand p, .auth-photo, .readiness, .social-proof { display: none; }
  .back-home { display: none; }
}

@media (max-width: 480px) {
  .social-row { grid-template-columns: 1fr; }
  .auth-foot { flex-direction: column; }
}
