/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Forge login screen                                                       ║
   ║  Styles for the /login page (served inline-free so the soft-nav can       ║
   ║  dedupe it by href and never re-append). Pairs with the markup in the     ║
   ║  /login route in server.js. Depends on Drift tokens + drift-extensions.   ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #dfeef0;
}
/* Coastal-road backdrop on its own layer so it can be blurred (CSS can't
   blur a background-image in place). The negative inset oversizes it so
   the blur's soft edges never reveal the body behind. */
.backdrop {
  position: fixed; inset: -28px;
  background: url('/assets/login-backdrop.png') center / cover no-repeat;
  filter: blur(8px);
  pointer-events: none;
}
/* Scrim: big blurred spheres in shades of the primary ramp, composing a
   soft lighting wash over the photo — brightest at the top (300/500),
   deepening through 700 at the edges, with a 900 pool grounding the
   bottom. overflow:hidden clips the blur bleed. */
.scrim {
  position: fixed; inset: 0; pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.orb-1 { width: 62vw; height: 62vw; top: -26vw; left: -14vw; background: var(--color-primary-500, #00ae8e); }
.orb-2 { width: 56vw; height: 56vw; top: -24vw; right: -16vw; background: var(--color-primary-100, #c9eee7); }
.orb-3 { width: 38vw; height: 38vw; top: -6vw; left: 32vw; background: var(--color-primary-300, #66cebb); opacity: 0.85; }
.orb-4 { width: 48vw; height: 48vw; bottom: -32vw; left: -18vw; background: var(--color-primary-900, #00231c); opacity: 0.8; }
/* Separate dark veil layered OVER the scrim — settles the whole scene so
   the card + brand pop. */
.veil {
  position: fixed; inset: 0; pointer-events: none;
  background: var(--color-primary-900, #00231c);
  opacity: 0.75;
}
/* Full Karmo logo, top-left — inline SVG with the white wordmark + teal
   accent fills baked in (supplied artwork; no filter tricks needed). */
.brand {
  position: fixed; top: 28px; left: 32px; z-index: 2;
  height: 30px;
}
.brand svg {
  height: 100%; width: auto; display: block;
}
.wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
/* The sign-in card — white surface, soft border + deep shadow, with a
   subtle teal gradient bleeding down from the top edge (brand take on the
   reference's blue-to-white wash). */
.card {
  width: 100%; max-width: 400px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: var(--shadow-card-on-color, 0 4px 20px 0 rgba(0, 0, 0, 0.16));
  padding: 40px 36px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Blurred glow orbs in the card's top corners — the page's lighting
   language at card scale. Clipped by the card's overflow:hidden; z-index
   -1 within the card's own stacking context (isolation:isolate) keeps
   them above its background but below the content. */
.card::before {
  content: "";
  position: absolute; z-index: -1;
  width: 340px; height: 340px;
  left: -120px; top: -160px;
  border-radius: 50%;
  background: var(--color-primary-500, #00ae8e);
  opacity: 0.12;
  filter: blur(56px);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute; z-index: -1;
  width: 300px; height: 300px;
  right: -110px; top: -150px;
  border-radius: 50%;
  background: var(--color-primary-300, #66cebb);
  opacity: 0.15;
  filter: blur(52px);
  pointer-events: none;
}
.card > * { position: relative; } /* sit above the orbs */
/* Karmo logo mark heading the card — dark-teal base + primary accent. */
.illo {
  display: block;
  width: 44px; height: 44px;
  margin: 0 auto 28px;
}
h1 {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.desc {
  font-size: 14px; line-height: 1.6;
  color: #555;
  margin: 0 auto 28px;
  max-width: 300px;
}
/* Google button — quiet by design: white, hairline gray border, the G
   logo and label. Hover/active follow Forge's raised-surface ramp. */
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 46px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 9px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gbtn:hover { background: #fafafa; border-color: #cfcfcf; }
.gbtn:active { transform: scale(0.98); }
.gbtn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0, 174, 142, 0.25); }
.gbtn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hint {
  font-size: 12px; color: #999;
  margin: 16px 0 0;
}
.foot {
  position: fixed; bottom: 20px; left: 0; right: 0; z-index: 1;
  text-align: center;
  font-size: 12px; color: var(--color-primary-100, #c9eee7);
  text-shadow: 0 1px 8px rgba(0, 30, 24, 0.45);
  pointer-events: none;
}
