/* ==========================================================================
   DOST-IskoLens — Background video for the Login and Sign-up pages
   Shared by login.html (.lg-page) and signup.html (.su-page).

   The video sits behind everything and is feathered on ALL four sides (and
   therefore in all four corners) so no hard edge or sharp corner is visible.
   ========================================================================== */
.auth-video-bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
  /* horizontal feather x vertical feather, intersected -> corners fade the most */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,.18) 6%, rgba(0,0,0,.55) 13%, rgba(0,0,0,.88) 21%, #000 30%,
                               #000 70%, rgba(0,0,0,.88) 79%, rgba(0,0,0,.55) 87%, rgba(0,0,0,.18) 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 7%, rgba(0,0,0,.55) 15%, rgba(0,0,0,.88) 24%, #000 34%,
                               #000 66%, rgba(0,0,0,.88) 76%, rgba(0,0,0,.55) 85%, rgba(0,0,0,.18) 93%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,.18) 6%, rgba(0,0,0,.55) 13%, rgba(0,0,0,.88) 21%, #000 30%,
                               #000 70%, rgba(0,0,0,.88) 79%, rgba(0,0,0,.55) 87%, rgba(0,0,0,.18) 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 7%, rgba(0,0,0,.55) 15%, rgba(0,0,0,.88) 24%, #000 34%,
                               #000 66%, rgba(0,0,0,.88) 76%, rgba(0,0,0,.55) 85%, rgba(0,0,0,.18) 93%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.auth-video-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 1; transition: opacity .9s ease;
}
.auth-video-bg video.fade { opacity: 0; }
/* even dimming so the card and headline stay readable */
.auth-video-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(7,12,28,.38);
}

/* ---- Login: the old photos are gone, let the video show through the tint ---- */
.lg-page .auth-video-bg { z-index: -2; }
.lg-page .lg-tint { opacity: .5; }
.lg-page .lg-seam { display: none; }

/* ---- Sign-up: same background, fixed so it stays put while the long form scrolls ---- */
.su-page { position: relative; isolation: isolate; overflow: hidden; }
.su-page .auth-video-bg { position: fixed; }
.su-page .auth-header { background: transparent; border-bottom: 0; }
.su-page .auth-header { padding-bottom: 6px; gap: 14px; }
.su-page .auth-header img { width: auto; height: 78px; }
.su-page .auth-header .rep-line { font-size: 15px; color: #e8edf8; border-bottom: 1px solid rgba(255,255,255,.85); padding-bottom: 4px; margin-bottom: 4px; }
.su-page .auth-header .inst-line { font-size: 14px; color: #e8edf8; text-transform: uppercase; letter-spacing: .01em; }
.su-page .auth-header .brand-line { font-size: 26px; line-height: 1.15; }
.su-page .auth-card {
  padding: 30px 34px 26px;
  background: rgba(13,21,38,.84);
  border: 1px solid rgba(120,150,210,.22);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.su-page .auth-body { padding-top: 24px; padding-bottom: 60px; }
@media (max-width: 900px) {
  .su-page .auth-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-video-bg video { transition: none; }
}

/* ==== uniform layout (scaled by js/login-fit.js): fixed design sizes, no browser-dependent sizing ==== */
@media (min-width: 901px) {
  .lg-page { min-height: var(--lg-h, 100vh); justify-content: flex-start; padding-top: 203px; }
  /* gradient + video fade are laid out over the 1030px design height (grows only if the window is taller) */
  .lg-page .lg-tint,
  .lg-page .auth-video-bg { bottom: auto; height: 1030px; min-height: 100%; }
  .lg-headline .lg-line1 { font-size: 44px; }
  .lg-headline .lg-line2 { font-size: 82px; }
}
