/* ==========================================================================
   DOST-IskoLens — Login page (hero layout)
   Scoped to .lg-page so signup / forgot-password are not affected.
   ========================================================================== */
.lg-page {
  position: relative;
  min-height: max(calc(100vh / var(--ui-zoom, 1)), 1030px);
  background: var(--navy-950);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 118px 20px 36px;
  isolation: isolate;
}

/* ---- SEI-style hero: dark top, two faded photos at the far left / right, blue glow, curved base ---- */
.lg-photos {
  position: absolute; inset: 0; display: flex; z-index: -2; overflow: hidden;
}
.lg-photo { position: relative; flex: 1; overflow: hidden; }
.lg-photo img { position: absolute; display: block; max-width: none; }
/* left: man at the science activity, anchored to the left edge (head ~26% across his half) */
.lg-photo.left img {
  height: 690px; top: 150px; left: calc(100% - 1035px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
}
/* right: students reading brochures, anchored to the right edge */
.lg-photo.right img {
  width: max(100%, 1000px); height: auto; top: 70px; left: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
}
/* keeps the middle calm behind the form */
.lg-photos::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,15,30,0) 28%, rgba(10,15,30,.6) 50%, rgba(10,15,30,0) 72%);
}

/* navy at the top fading to a lighter blue glow near the bottom (as on the SEI page) */
.lg-tint {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(7,12,28,.98) 0%,  rgba(7,12,28,.96) 7%,  rgba(8,14,32,.90) 13%,
    rgba(9,16,36,.80) 19%, rgba(10,18,40,.68) 26%, rgba(11,19,42,.56) 34%,
    rgba(11,19,42,.47) 44%, rgba(11,19,42,.46) 56%, rgba(9,16,36,.64) 66%,
    rgba(8,14,32,.82) 75%, rgba(7,12,28,.92) 84%, rgba(7,12,28,.97) 92%, rgba(7,12,28,.99) 100%);
}
/* curved dark base (shape only, no footer content) */
.lg-arc {
  position: absolute; left: 0; right: 0; bottom: 0; height: 400px; z-index: -1;
  background: linear-gradient(to top, #070c1c 0%, #070c1c 40%, rgba(7,12,28,.75) 65%, rgba(7,12,28,0) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
          mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}

/* ---- logo + headline ---- */
.lg-logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(34,211,238,.25);
  margin-bottom: 14px;
}
.lg-headline { text-align: center; margin-top: 78px; }
.lg-headline .lg-line1 {
  font-family: 'Montserrat', var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 44px);
  letter-spacing: .01em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}
.lg-headline .lg-line2 {
  font-family: 'Montserrat', var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.8vw, 82px);
  letter-spacing: .005em;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(90deg, #f7d060 0%, #9bd08b 28%, #46bfa6 58%, #1f86b8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ---- form card (form itself unchanged; only given a glass backing) ---- */
.lg-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);
}
.lg-page .auth-card h1 { font-size: 24px; }
.lg-page .auth-card .auth-sub { margin-bottom: 22px; }
.lg-page .auth-field { margin-bottom: 16px; }

/* ---- small screens: photos stack top / bottom ---- */
@media (max-width: 900px) {
  .lg-page { padding: 28px 14px 36px; min-height: calc(100vh / var(--ui-zoom, 1)); }
  .lg-arc { height: 340px; bottom: 0; left: 0; right: 0; }
  .lg-headline { margin-top: 56px; }
  .lg-photos { flex-direction: column; }
  .lg-photo.left img  { height: 100%; width: auto; top: 0; left: -8%; }
  .lg-photo.right img { height: 100%; width: auto; top: 0; left: -10%; -webkit-mask-image: none; mask-image: none; }
  .lg-page .auth-card { padding: 24px 20px; }
}

/* ---- header lockup, sized and aligned like the SEI header (no glow, no tile) ---- */
.lg-brand { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 2; }
.lg-brand img { height: 78px; width: auto; border-radius: 0; box-shadow: none; }
.lg-brand-text { display: inline-block; }
.lg-brand-text .rep-line { font-size: 15px; color: #e8edf8; border-bottom: 1px solid rgba(255,255,255,.85); padding-bottom: 4px; margin-bottom: 4px; }
.lg-brand-text .inst-line { font-size: 14px; color: #e8edf8; text-transform: uppercase; letter-spacing: .01em; }
.lg-brand-text .brand-line { font-size: 26px; line-height: 1.15; font-weight: 700; color: #fff; font-family: var(--font-display); }

/* ---- tagline row, as on the SEI page ---- */
.lg-tagline {
  margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; color: #d5def2;
}
.lg-tagline i { width: 4px; height: 4px; border-radius: 50%; background: #f7c948; display: block; }
@media (max-width: 900px) {
  .lg-brand { position: static; transform: none; margin-bottom: 18px; }
  .lg-brand img { height: 56px; }
  .lg-brand-text .brand-line { font-size: 20px; }
  .lg-page { padding-top: 28px; }
  .lg-tagline { font-size: 10.5px; letter-spacing: .12em; gap: 10px; }
}

/* ---- soft coloured glows in the top corners, hiding the hard top edge of the photos ---- */
.lg-glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); }
.lg-glow.tl { top: -170px; left: -150px; width: 640px; height: 420px; background: #060b1a; opacity: .95; }
.lg-glow.tr { top: -170px; right: -150px; width: 640px; height: 420px; background: #060b1a; opacity: .95; }
.lg-glow.tm { top: -210px; left: 50%; margin-left: -380px; width: 760px; height: 300px; background: #060b1a; opacity: .9; }
@media (max-width: 900px) { .lg-glow { width: 360px !important; height: 260px !important; } }

/* hide the seam where the two photos meet */
.lg-photos::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(7,12,28,0) 30%, rgba(7,12,28,.9) 50%, rgba(7,12,28,0) 70%);
}

/* ==== layered, curved fades (follow the SEI look): bowl at the top, dome at the bottom ==== */
.lg-arc { display: none; }
.lg-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 78% 72% at 50% 50%, rgba(5,9,22,0) 52%, rgba(5,9,22,.62) 100%);
}
.lg-curve { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: #070c1c; left: -25%; width: 150%; }
/* top bowl: dark at the sides, dips to just under the logo in the middle */
.lg-curve.top  { height: 1254px; top: -1004px; filter: blur(14px); }
.lg-curve.top2 { height: 1254px; top: -924px;  filter: blur(46px); opacity: .55; }
/* bottom dome: rises behind the headline */
.lg-curve.bottom  { height: 1828px; bottom: -1495px; filter: blur(14px); }
.lg-curve.bottom2 { height: 1828px; bottom: -1415px; filter: blur(46px); opacity: .55; }

@media (max-width: 900px) {
  .lg-curve { display: none; }
  .lg-arc { display: block; }
}

/* natural look: one smooth overlay only (no shaped fades) */
.lg-curve, .lg-vignette, .lg-glow { display: none !important; }

/* ---- middle layer: photos melt into the centre so there is no gap or seam between them ---- */
.lg-photos::after { display: none; }
.lg-photo.left  { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 52%, transparent 100%);
                          mask-image: linear-gradient(to right, #000 0%, #000 52%, transparent 100%); }
.lg-photo.right { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 48%, #000 100%);
                          mask-image: linear-gradient(to right, transparent 0%, #000 48%, #000 100%); }
.lg-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 760px; margin-left: -380px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to right,
    rgba(8,14,32,0) 0%, rgba(8,14,32,.30) 22%, rgba(8,14,32,.62) 40%,
    rgba(8,14,32,.72) 50%, rgba(8,14,32,.62) 60%, rgba(8,14,32,.30) 78%, rgba(8,14,32,0) 100%);
}
@media (max-width: 900px) { .lg-seam { display: none; } .lg-photo.left, .lg-photo.right { -webkit-mask-image: none; mask-image: none; } }
