/*
 * Sign-in page backdrop: the RAIVYN mesh field, shared with www.raivyn.ai.
 * Scoped to body.login-page so the authenticated workspace is untouched.
 */
body.login-page {
  position: relative;
  isolation: isolate;
}

body.login-page .login-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--black, #050605);
}

body.login-page .login-mesh img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

body.login-page .login-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.94) 0%, rgba(5, 6, 5, 0.78) 40%, rgba(5, 6, 5, 0.42) 70%, rgba(5, 6, 5, 0.7) 100%),
    linear-gradient(90deg, rgba(5, 6, 5, 0.6) 0%, rgba(5, 6, 5, 0.25) 60%, rgba(5, 6, 5, 0) 100%);
}

/* The faint watermark and the grid overlay compete with the mesh; drop them here. */
body.login-page .ambient-mark { display: none; }
body.login-page::after { display: none; }

/* Keep the sign-in panel readable against the brightest part of the field. */
body.login-page .auth-panel {
  background: rgba(8, 10, 8, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 700px) {
  body.login-page .login-mesh img { object-position: center bottom; }
  body.login-page .login-mesh::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 5, 0.94) 0%, rgba(5, 6, 5, 0.82) 45%, rgba(5, 6, 5, 0.6) 100%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.login-page .auth-panel {
    background: rgba(8, 10, 8, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
