:root {
  --auth-plum: #562840;
  --auth-plum-dark: #3d1630;
  --auth-rose: #b06280;
  --auth-rose-soft: #ddb4c5;
  --auth-sand: #f5eee8;
  --auth-cream: #fcf8f6;
  --auth-text: #2a141e;
  --auth-text-soft: #6b3f52;
  --auth-text-faint: #9f7b8b;
  --auth-border: rgba(86, 40, 64, 0.14);
  --auth-shadow: 0 24px 60px rgba(67, 39, 53, 0.1);
  --auth-shadow-soft: 0 14px 36px rgba(67, 39, 53, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(176, 98, 128, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(221, 180, 197, 0.24), transparent 28%),
    linear-gradient(180deg, #fffdfd 0%, var(--auth-cream) 100%);
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.auth-story,
.auth-panel {
  padding: 28px;
}

.auth-story {
  display: flex;
  align-items: stretch;
}

.auth-story-inner,
.auth-card {
  width: 100%;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: var(--auth-shadow);
}

.auth-story-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(165deg, var(--auth-plum-dark) 0%, var(--auth-plum) 52%, #8a4864 100%);
  color: var(--auth-sand);
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.98), rgba(255, 246, 244, 0.2) 60%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 22px 42px rgba(31, 10, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 9px;
}

.story-mark::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 212, 221, 0.24), transparent 48%),
    radial-gradient(circle at 74% 68%, rgba(255, 225, 150, 0.16), transparent 54%);
  filter: blur(10px);
}

.story-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.story-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.story-kicker {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.story-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.section-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-text-faint);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.65);
}

.story-copy h1,
.auth-heading h2 {
  margin: 10px 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
}

.story-copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

.story-lead,
.story-card p:last-child,
.auth-intro,
.auth-helper,
.auth-notice,
.melding,
.auth-home-link,
.story-subtitle {
  line-height: 1.8;
}

.story-lead {
  margin: 18px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.story-card p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 540px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-home-link {
  color: var(--auth-text-soft);
  font-weight: 600;
}

.auth-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9) 56%, rgba(248, 239, 236, 0.94) 100%);
  box-shadow:
    var(--auth-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 7px;
}

.auth-logo::before {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: -1;
  background: radial-gradient(circle, rgba(176, 98, 128, 0.16), rgba(176, 98, 128, 0) 70%);
  filter: blur(8px);
}

.auth-logo::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1px solid rgba(86, 40, 64, 0.08);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.auth-logo-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-heading {
  margin-top: 24px;
}

.auth-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.auth-intro {
  margin: 16px 0 0;
  color: var(--auth-text-soft);
}

.auth-notice,
.melding,
.auth-tabs,
.auth-tab-pane input,
.button,
.story-card,
.auth-card,
.auth-story-inner,
.auth-logo,
.story-mark {
  transition: 0.2s ease;
}

.auth-notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(176, 98, 128, 0.22);
  background: rgba(176, 98, 128, 0.1);
  color: var(--auth-plum);
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(176, 98, 128, 0.18);
}

.tab {
  padding: 14px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--auth-text-faint);
  font-weight: 700;
}

.tab.actief {
  background: var(--auth-plum-dark);
  color: var(--auth-sand);
  box-shadow: 0 10px 20px rgba(86, 40, 64, 0.16);
}

.auth-tab-pane {
  margin-top: 22px;
}

.auth-tab-pane label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--auth-text);
}

.auth-tab-pane input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 98, 128, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--auth-text);
}

.auth-tab-pane input:focus {
  outline: none;
  border-color: rgba(86, 40, 64, 0.28);
  box-shadow: 0 0 0 4px rgba(176, 98, 128, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button-full {
  width: 100%;
}

.button-primary {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--auth-plum-dark), var(--auth-plum));
  color: var(--auth-sand);
  box-shadow: 0 14px 28px rgba(86, 40, 64, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--auth-text);
  border: 1px solid rgba(176, 98, 128, 0.22);
}

.secondary-top {
  margin-top: 10px;
}

.auth-divider {
  position: relative;
  margin: 18px 0 14px;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(176, 98, 128, 0.16);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--auth-text-faint);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-helper {
  margin: 12px 0 0;
  color: var(--auth-text-faint);
  font-size: 0.92rem;
}

.melding {
  margin-top: 18px;
  padding: 0;
  border-radius: 18px;
  font-weight: 600;
}

.melding.ok,
.melding.fout {
  padding: 15px 16px;
}

.melding.ok {
  color: #215c39;
  background: rgba(233, 250, 239, 0.94);
  border: 1px solid rgba(55, 138, 92, 0.14);
}

.melding.fout {
  color: #7a2441;
  background: rgba(255, 239, 244, 0.96);
  border: 1px solid rgba(176, 98, 128, 0.18);
}

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

  .auth-story,
  .auth-panel {
    padding: 18px 16px 0;
  }

  .auth-panel {
    padding-bottom: 24px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-story-inner,
  .auth-card {
    padding: 22px;
    border-radius: 26px;
  }

  .auth-card-top {
    align-items: flex-start;
  }

  .story-mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 20px;
  }

  .auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .story-copy h1 {
    font-size: 2.9rem;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }
}
