:root {
  --bg-deep: #06233a;
  --bg-mid: #0b4d39;
  --bg-soft: #e9f4f1;
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 20px 46px rgba(7, 28, 46, 0.26);
  --text-soft: #f1f6ff;
  --text-muted: rgba(207, 225, 242, 0.75);
  --cta: #1f2a6d;
  --cta-hover: #16205a;
}

* {
  box-sizing: border-box;
}

body.landing-auth {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 10% -10%, rgba(31, 124, 101, 0.6), transparent 45%),
    radial-gradient(circle at 90% -25%, rgba(22, 80, 140, 0.58), transparent 40%),
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 44%, var(--bg-soft) 100%);
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1.4rem;
}

body.landing-auth::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/pitch.svg');
  background-repeat: no-repeat;
  background-position: 100% 8%;
  background-size: min(38vw, 420px);
  opacity: 0.16;
  pointer-events: none;
}

body.landing-auth::after {
  content: '';
  position: fixed;
  left: -40px;
  top: 50%;
  width: 340px;
  height: 340px;
  background-image: url('/assets/voetbaltechniekthuis-logo-512.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 20px 40px rgba(7, 28, 46, 0.25));
}

.auth-shell {
  width: min(92vw, 920px);
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #ffffff;
}

.auth-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(7, 28, 46, 0.22);
}

.auth-brand-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.auth-brand-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(230, 245, 255, 0.72);
}

.auth-card {
  background: linear-gradient(175deg, rgba(7, 34, 57, 0.96), rgba(12, 71, 54, 0.95));
  border-radius: 24px;
  padding: 1.65rem 1.55rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.auth-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  bottom: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(211, 159, 54, 0.32), rgba(211, 159, 54, 0));
  pointer-events: none;
}

.auth-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.auth-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.auth-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.auth-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 248px;
  text-align: center;
}

.auth-qr img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.35rem;
}

.auth-qr-fallback {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-manual {
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-manual summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  list-style: none;
}

.auth-manual summary::-webkit-details-marker {
  display: none;
}

.auth-manual summary::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.auth-manual[open] summary::after {
  content: '▲';
}

.auth-manual .auth-field {
  margin-top: 0.65rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #cfe2f8;
}

.auth-field input {
  width: 100%;
  border: 1px solid rgba(189, 215, 241, 0.32);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(4, 20, 34, 0.55);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

.auth-field input[readonly] {
  color: #e9f4ff;
}

.auth-field select {
  width: 100%;
  border: 1px solid rgba(189, 215, 241, 0.32);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(4, 20, 34, 0.55);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  appearance: none;
}

.auth-field select option {
  color: #0f172a;
}

.auth-help {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-help[data-type='error'] {
  color: #fecaca;
}

.auth-help[data-type='success'] {
  color: #bbf7d0;
}

.auth-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.auth-actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.auth-actions--stack .auth-btn {
  width: 100%;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}

.auth-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.24);
}

.auth-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-content {
  margin-top: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-content h2 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.08rem;
  color: #ffffff;
}

.auth-content ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.auth-content li {
  margin-bottom: 0.35rem;
}

.auth-content a {
  color: #ffffff;
  font-weight: 700;
}

.auth-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.auth-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.auth-table th,
.auth-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  color: #e7f0ff;
}

.auth-table th {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.auth-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.auth-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: none;
}

.auth-summary {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.6rem;
}

.auth-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-summary-item span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-summary-item strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.auth-codes {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.auth-code {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
}

@media (max-width: 720px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 1.7rem;
  }
}
