body.login-page {
  display: block;
}

.login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Scène links */
.login-scene {
  position: relative;
  overflow: hidden;
  background: var(--color-scene-sky-top);
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene .sky-top { stop-color: var(--color-scene-sky-top); }
.scene .sky-bottom { stop-color: var(--color-scene-sky-bottom); }
.scene .glow-in { stop-color: var(--color-scene-sun); stop-opacity: 0.45; }
.scene .glow-out { stop-color: var(--color-scene-sun); stop-opacity: 0; }
.scene .sun { fill: var(--color-scene-sun); }
.scene .hill-far { fill: var(--color-scene-hill-far); }
.scene .hill-mid { fill: var(--color-scene-hill-mid); }
.scene .hill-near { fill: var(--color-scene-hill-near); }

/* Donkere verloop onderaan zodat de tekst altijd leesbaar is. */
.scene-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, var(--color-scene-hill-near) 25%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .scene .sun,
  .scene .sun-glow {
    animation: rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .scene .sun-glow {
    animation: rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both, breathe 7s ease-in-out 2.4s infinite;
    transform-origin: 520px 560px;
  }
}

@keyframes rise {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes breathe {
  50% { transform: scale(1.06); }
}

.scene-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  padding: clamp(24px, 5vw, 56px);
  color: var(--color-scene-text);
}

.brand--light,
.brand--light:hover {
  color: var(--color-scene-text);
}

.brand--light small {
  color: color-mix(in srgb, var(--color-scene-text) 70%, transparent);
}

.scene-text blockquote {
  margin: 0;
  max-width: 26rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.scene-text .greek {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-style: italic;
  line-height: 1;
}

.scene-text blockquote p:last-child {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* Formulier rechts */
.login-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px 16px 48px;
  background:
    radial-gradient(1200px 500px at 100% 0%, var(--color-primary-soft), transparent 60%),
    var(--color-bg);
}

.login-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

@media (prefers-reduced-motion: no-preference) {
  .login-card {
    animation: card-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.15s;
  }
}

@keyframes card-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.login-card header {
  margin-bottom: 28px;
}

.login-logo {
  display: none;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.login-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 6px;
}

.login-card .lead {
  margin: 0;
  color: var(--color-muted);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--color-primary);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-hide,
.password-toggle[aria-pressed="true"] .icon-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-hide {
  display: block;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 24px;
}

.login-foot {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  text-align: center;
}

.login-foot + .login-foot {
  margin-top: 8px;
}

/* Smal scherm: scène wordt een band bovenaan */
@media (max-width: 860px) {
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-scene {
    min-height: 200px;
  }

  .scene-text {
    padding: 20px 16px;
  }

  .scene-text blockquote {
    display: none;
  }

  .login-main {
    align-items: start;
    padding-top: 40px;
  }

  .login-toggle {
    top: -58px;
    right: 16px;
    z-index: 1;
  }
}
