.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-8) var(--space-6);
}

.masthead { text-align: center; }
.masthead .wordmark { font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl)); }
.masthead .rule { margin: var(--space-4) auto 0; }

.login-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) 0;
}

.login-card { width: 100%; max-width: 420px; padding: var(--space-12) var(--space-10); }
.login-card .eyebrow { margin-bottom: var(--space-3); }
.login-card .card-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: var(--tracking-snug); line-height: var(--leading-tight); margin-bottom: var(--space-2); }
.login-card .card-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-8); }

.login-card .form-group { margin-bottom: var(--space-5); }
.login-card .btn { margin-top: var(--space-2); }

.colophon-footer { text-align: center; }

@media (max-width: 480px) {
  .login-card { padding: var(--space-10) var(--space-6); }
}

/* ---- Global animated backdrop (mirrored from trellus-home.css) ------------
   The Trellus sign-in shares the marketing landing's background: one fixed
   blue/green mesh behind everything. These rules are inert without the
   .bg-mesh markup, so the MinistryLens login (login.html) — which shares this
   stylesheet but has no .bg-mesh element — is unaffected. */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(125% 90% at 50% -8%, #16243f 0%, #0b1020 46%, #07080d 100%);
}
.bg-mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.bg-mesh__blob--1 {
  width: 60vw; height: 60vw; top: -20%; left: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 97, 163, 0.42), rgba(0, 97, 163, 0) 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.bg-mesh__blob--2 {
  width: 52vw; height: 52vw; top: -10%; right: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(40, 112, 188, 0.36), rgba(40, 112, 188, 0) 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.bg-mesh__blob--3 {
  width: 50vw; height: 50vw; bottom: -18%; left: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 92, 156, 0.32), rgba(0, 92, 156, 0) 70%);
  animation: drift3 28s ease-in-out infinite alternate;
}
.bg-mesh__blob--4 {
  width: 46vw; height: 46vw; bottom: -16%; right: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 97, 163, 0.32), rgba(0, 97, 163, 0) 70%);
  animation: drift4 34s ease-in-out infinite alternate;
}
.bg-mesh__blob--5 {
  width: 42vw; height: 42vw; top: 36%; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(40, 112, 188, 0.18), rgba(0, 97, 163, 0.10) 55%, transparent 75%);
  animation: drift5 38s ease-in-out infinite alternate;
}
.bg-mesh__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: screen;
}

@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(7vw,4vh,0) scale(1.08); } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1.05); } 100% { transform: translate3d(-6vw,6vh,0) scale(1); } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(5vw,-5vh,0) scale(1.1); } }
@keyframes drift4 { 0% { transform: translate3d(0,0,0) scale(1.02); } 100% { transform: translate3d(-4vw,-3vh,0) scale(1); } }
@keyframes drift5 { 0% { transform: translate3d(0,0,0) scale(1); }    100% { transform: translate3d(-3vw,3vh,0) scale(1.07); } }

@media (prefers-reduced-motion: reduce) {
  .bg-mesh__blob { animation: none; }
}
