/* login-page.css — "Synapse field" login for web/login.html.
   The page's one signature is the live canvas field behind the content:
   drifting capture-nodes labeled with the platform's own artifact taxonomy,
   firing gold when touched. Everything else stays quiet: Proxima/sans display
   + details, a single gold action.
   Self-contained by design — no external fonts, no libraries. */

.login-page {
  --abyss:  #040d1b;
  --navy:   #07182e;
  --panel:  #0d2a4f;
  --spark:  #ffc82e;
  --signal: #60a5fa;
  --bone:   #f3ecdb;
  --mist:   rgba(214, 226, 243, 0.66);
  --mono:   'Cascadia Mono', Consolas, 'SF Mono', 'Courier New', monospace;
  /* Brand sans: Proxima Nova when installed; otherwise a close system stack. */
  --sans:   'Proxima Nova', 'ProximaNova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120vw 90vh at 78% 18%, rgba(6, 50, 105, 0.35), transparent 60%),
    radial-gradient(90vw 80vh at 15% 85%, rgba(13, 42, 79, 0.5), transparent 65%),
    var(--abyss);
  overflow: hidden;
  color: var(--mist);
}

/* Layered stage: canvas field, readability shade, then content. */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.field-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    90vw 80vh at 50% 45%,
    rgba(4, 13, 27, 0.55) 0%,
    rgba(4, 13, 27, 0.78) 55%,
    rgba(4, 13, 27, 0.9) 100%
  );
}

.login-shell {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.login-col {
  box-sizing: border-box;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand row — the mark the field converges toward. */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(40px, 9vh, 96px);
}

.brand-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 14px rgba(255, 200, 46, 0.35));
}

/* SVG is a 147x48 spark glyph; height-only sizing keeps its aspect. */
.brand-spark {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 200, 46, 0.25));
}

.login-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, 0.75);
  margin: 0 0 20px;
}

.login-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 22px;
  text-wrap: balance;
}

.login-title em {
  font-style: normal;
  color: var(--spark);
}

.login-sub {
  font-size: 15px;
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 auto 36px;
}

.login-sub strong {
  color: rgba(240, 246, 255, 0.9);
  font-weight: 600;
}

/* The single action. */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--spark);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(255, 200, 46, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-btn .ms-logo {
  background: #fff;
  border-radius: 3px;
  padding: 3px;
  display: inline-flex;
}

.login-btn:hover {
  background: #ffd75c;
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(255, 200, 46, 0.34);
}

.login-btn:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.login-foot {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(214, 226, 243, 0.56);
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(96, 165, 250, 0.16);
  max-width: 40ch;
}

.login-foot strong {
  color: rgba(214, 226, 243, 0.72);
  font-weight: 600;
}

/* Load sequence: field first, then the column settles in, action last. */
@media (prefers-reduced-motion: no-preference) {
  .login-brand,
  .login-eyebrow,
  .login-title,
  .login-sub,
  .login-btn,
  .login-foot {
    opacity: 0;
    transform: translateY(14px);
    animation: loginRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .login-brand   { animation-delay: 0.15s; }
  .login-eyebrow { animation-delay: 0.3s; }
  .login-title   { animation-delay: 0.42s; }
  .login-sub     { animation-delay: 0.56s; }
  .login-btn     { animation-delay: 0.72s; }
  .login-foot    { animation-delay: 0.88s; }
}

@keyframes loginRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Small screens: the field recedes behind a flatter shade. */
@media (max-width: 760px) {
  .field-shade {
    background: rgba(4, 13, 27, 0.72);
  }
  .login-shell {
    padding: 32px 20px;
  }
  .login-brand {
    margin-bottom: 48px;
  }
}
