/* Sign-in page: a drawn valley with drifting clouds and a sun, the department's names, and the sign-in card. Nothing is loaded from the internet. */
.lg-body { margin: 0; background: #cfe8f6; }
.lg {
  --lg-mid: #0b6b3a;
  --lg-deep: color-mix(in srgb, var(--lg-mid) 72%, #021409);
  --lg-gold: #c9a34a;
  --lg-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; color: #12261b;
}
.lg-sky { position: absolute; inset: 0; z-index: -6; background: linear-gradient(180deg, #8fc9ec 0%, #bfe1f4 34%, #e3f3f6 58%, #eef8f2 72%); }
.lg-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -5; }
.lg-photo::before { content: ""; position: absolute; inset: 0; z-index: -4; background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.5) 40%, rgba(255,255,255,0) 72%); }

/* sun */
.lg-sun { position: absolute; z-index: -5; left: 24%; top: -14vmin; width: 52vmin; height: 52vmin; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, rgba(255,250,224,.95) 22%, rgba(255,236,160,.55) 48%, rgba(255,226,140,0) 100%); animation: lg-pulse 7s ease-in-out infinite alternate; }
.lg-sun::before { content: ""; position: absolute; inset: -40%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,247,200,.34) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 100%); mask: radial-gradient(closest-side, #000 18%, transparent 100%); animation: lg-spin 110s linear infinite; }
.lg-photo .lg-sun { display: none; }
@keyframes lg-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.08); opacity: 1; } }
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* clouds */
.lg-clouds { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.lg-cloud { position: absolute; left: 0; height: auto; aspect-ratio: 5 / 2; opacity: var(--o, .85); filter: blur(.6px) drop-shadow(0 8px 14px rgba(70,110,150,.18)); will-change: transform; animation: lg-drift var(--d, 150s) linear infinite; animation-delay: var(--dl, 0s); }
.lg-cloud.c1 { top: 5vh;  width: 300px; --d: 140s; --dl: -25s;  --o: .92; }
.lg-cloud.c2 { top: 17vh; width: 210px; --d: 190s; --dl: -95s;  --o: .7; }
.lg-cloud.c3 { top: 27vh; width: 380px; --d: 115s; --dl: -62s;  --o: .86; }
.lg-cloud.c4 { top: 11vh; width: 170px; --d: 230s; --dl: -150s; --o: .62; }
.lg-cloud.c5 { top: 37vh; width: 250px; --d: 165s; --dl: -12s;  --o: .6; }
.lg-cloud.c6 { top: 1vh;  width: 430px; --d: 205s; --dl: -130s; --o: .8; }
.lg-photo .lg-cloud { --o: .5; }
@keyframes lg-drift { from { transform: translate3d(-440px, 0, 0); } to { transform: translate3d(calc(100vw + 60px), 0, 0); } }

/* scene */
.lg-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.lg-ripples { animation: lg-ripple 9s ease-in-out infinite alternate; }
@keyframes lg-ripple { from { transform: translateX(-26px); opacity: .35; } to { transform: translateX(26px); opacity: .6; } }
.lg-birds .b1 { animation: lg-bird 11s ease-in-out infinite alternate; }
.lg-birds .b2 { animation: lg-bird 13s ease-in-out -4s infinite alternate; }
.lg-birds .b3 { animation: lg-bird 15s ease-in-out -8s infinite alternate; }
@keyframes lg-bird { from { transform: translate(-70px, 12px); } to { transform: translate(90px, -18px); } }
.lg-mosque { transform-origin: bottom; }

/* corners */
.lg-corner { position: absolute; left: 0; top: 0; width: min(34vw, 520px); height: min(24vw, 330px); z-index: -1; filter: drop-shadow(0 6px 14px rgba(0,40,20,.25)); }
.lg-swoosh { position: absolute; left: 0; bottom: 0; width: min(68vw, 1000px); height: min(30vh, 300px); z-index: -1; filter: drop-shadow(0 -6px 16px rgba(0,40,20,.22)); }

/* clock */
.lg-clock { position: absolute; top: 1.5rem; right: 2rem; display: flex; align-items: center; gap: .75rem; padding: .5rem .9rem; border-radius: 14px; background: rgba(255,255,255,.46); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.65); color: #17324a; font-size: .92rem; line-height: 1.25; z-index: 3; }
.lg-clock .bi { font-size: 1.7rem; color: var(--lg-deep); }
.lg-clock span { display: block; font-weight: 500; }
.lg-clock span + span { font-variant-numeric: tabular-nums; }

/* layout */
.lg-grid { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 460px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(5rem, 9vh, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(7rem, 22vh, 14rem); max-width: 1680px; margin: 0 auto; }
.lg-brand { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.lg-id { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.lg-logo { width: clamp(120px, 15vw, 230px); height: clamp(120px, 15vw, 230px); object-fit: contain; flex: none; mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.08); animation: lg-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.lg-logo-fallback { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--lg-mid), var(--lg-deep)); color: #fff; font-size: clamp(3rem, 6vw, 5.5rem); }
.lg-names { min-width: 0; text-align: center; }
.lg-ur-title { font-family: var(--lg-ur); font-weight: 700; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: 1.7; color: var(--lg-deep); text-shadow: 0 2px 0 rgba(255,255,255,.7); }
.lg-ur-sub { font-family: var(--lg-ur); font-size: clamp(1.15rem, 2.1vw, 2rem); line-height: 1.9; color: var(--lg-deep); }
.lg-rule { display: flex; align-items: center; gap: .6rem; margin: .3rem 0 .7rem; }
.lg-rule i { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--lg-gold) 30%, var(--lg-gold) 70%, transparent); }
.lg-rule b { width: 12px; height: 12px; background: var(--lg-gold); transform: rotate(45deg); box-shadow: -10px 0 0 -3px var(--lg-gold), 10px 0 0 -3px var(--lg-gold); }
.lg-rule.sm { margin: .2rem 0 0; width: min(420px, 60vw); }
.lg-en-title { font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--lg-deep); line-height: 1.15; }
.lg-en-sub { font-size: clamp(1rem, 1.4vw, 1.3rem); color: #26372e; margin-top: .25rem; }
.lg-pill { display: inline-block; padding: .85rem 2.2rem; border-radius: 999px; background: linear-gradient(135deg, var(--lg-mid), var(--lg-deep)); color: #fff; font-size: clamp(1.05rem, 1.9vw, 1.75rem); font-weight: 700; letter-spacing: .005em; box-shadow: 0 10px 26px rgba(8,50,28,.28), inset 0 0 0 1px rgba(255,255,255,.18); animation: lg-rise .9s .12s cubic-bezier(.2,.8,.2,1) both; }
.lg-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; padding-left: 1.6rem; font-size: clamp(1rem, 1.5vw, 1.3rem); color: #1a3326; font-weight: 500; text-shadow: 0 1px 0 rgba(255,255,255,.7); animation: lg-rise .9s .22s cubic-bezier(.2,.8,.2,1) both; }
.lg-keys .sep { color: #55695d; }

/* card */
.lg-side { display: flex; justify-content: center; }
.lg-card { position: relative; width: 100%; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 2.1rem 2.2rem 1.7rem; border-top: 5px solid var(--lg-deep); box-shadow: 0 30px 70px rgba(10,50,40,.28), 0 2px 0 rgba(255,255,255,.7) inset; animation: lg-rise .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.lg-avatar { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--lg-mid), var(--lg-deep)); color: #fff; font-size: 1.9rem; margin-bottom: .9rem; box-shadow: 0 8px 18px rgba(8,50,28,.3); }
.lg-card h2 { margin: 0; font-size: 1.85rem; font-weight: 800; color: var(--lg-deep); letter-spacing: -.01em; }
.lg-sub { margin: .15rem 0 1.5rem; color: #5b6b63; font-size: 1.05rem; }
.lg-alert:empty { display: none; }
.lg-alert { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c1c1; border-radius: 10px; padding: .55rem .8rem; font-size: .88rem; margin-bottom: 1rem; }
.lg-alert ul { margin: 0; padding-left: 1.1rem; }
.lg-field { display: flex; align-items: center; gap: .7rem; height: 56px; padding: 0 1rem; margin-bottom: .35rem; border: 1.5px solid #c8d7e6; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lg-field:focus-within { border-color: var(--lg-mid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lg-mid) 20%, transparent); }
.lg-field > .bi { font-size: 1.35rem; color: #5b6b78; flex: none; }
.lg-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.02rem; color: #12261b; height: 100%; }
.lg-field input::placeholder { color: #667684; }
.lg-eye { border: 0; background: transparent; color: #5b6b78; padding: .3rem; border-radius: 8px; cursor: pointer; line-height: 1; }
.lg-eye:hover { color: var(--lg-deep); background: rgba(0,0,0,.05); }
.lg-eye .bi { font-size: 1.3rem; }
.lg-err { display: block; color: #b42318; font-size: .82rem; min-height: 0; margin: 0 .2rem .6rem; }
.lg-err:empty { display: none; }
.lg-field + .lg-field, .lg-err + .lg-field { margin-top: .8rem; }
.lg-btn { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; height: 58px; margin-top: 1.5rem; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, var(--lg-mid), var(--lg-deep)); color: #fff; font-size: 1.25rem; font-weight: 700; box-shadow: 0 12px 24px rgba(8,50,28,.3); transition: transform .12s, box-shadow .12s, filter .12s; }
.lg-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 28px rgba(8,50,28,.34); }
.lg-btn:active { transform: translateY(0); }
.lg-btn .bi { font-size: 1.45rem; }
.lg-or { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0 1rem; color: #4d5a53; font-size: .92rem; font-weight: 600; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: #cdd9d3; }
.lg-note { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1rem; border: 1px solid #cddbe8; border-radius: 10px; background: #f3f8fc; color: #3c4a56; font-size: .88rem; }
.lg-note .bi { font-size: 1.35rem; color: #51657a; }

/* motto on the swoosh */
.lg-motto { position: absolute; left: clamp(1.5rem, 6vw, 6rem); bottom: clamp(1.2rem, 6vh, 4rem); z-index: 2; font-family: var(--lg-ur); font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.9; color: #fff; text-shadow: 0 2px 8px rgba(0,30,15,.4); display: flex; flex-direction: column; align-items: center; }

@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* narrower screens: the names above, the card below */
@media (max-width: 960px) {
  .lg-grid { grid-template-columns: 1fr; align-items: start; padding: 4.2rem 1rem 9rem; gap: 1.4rem; }
  .lg-brand { align-items: center; text-align: center; gap: 1rem; }
  .lg-id { flex-direction: column; text-align: center; gap: .4rem; }
  .lg-logo { width: 108px; height: 108px; }
  .lg-ur-title { font-size: 2.6rem; line-height: 1.6; }
  .lg-ur-sub { font-size: 1.15rem; }
  .lg-en-title { font-size: 1.7rem; }
  .lg-pill { padding: .65rem 1.4rem; font-size: 1.05rem; }
  .lg-keys { padding-left: 0; justify-content: center; gap: .7rem; font-size: 1rem; }
  .lg-card { padding: 1.6rem 1.3rem 1.3rem; max-width: 460px; margin: 0 auto; }
  .lg-clock { top: .7rem; right: .7rem; padding: .35rem .6rem; font-size: .78rem; }
  .lg-clock .bi { font-size: 1.2rem; }
  .lg-corner { width: 44vw; height: 26vw; }
  .lg-motto { left: 0; right: 0; bottom: .9rem; font-size: 1.5rem; }
  .lg-swoosh { width: 100vw; height: 18vh; }
}
@media (max-width: 480px) { .lg-clock span:first-child { display: none; } }
@media (min-width: 961px) and (max-height: 760px) { .lg-grid { padding-top: 4.5rem; padding-bottom: 8rem; } .lg-logo { width: 130px; height: 130px; } .lg-ur-title { font-size: 3rem; line-height: 1.5; } .lg-card { padding: 1.4rem 1.8rem 1.2rem; } .lg-field { height: 50px; } .lg-btn { height: 52px; margin-top: 1.1rem; } }

/* motion can be switched off in Branding, and is skipped when the computer asks for less motion */
.lg-still *, .lg-still *::before { animation: none !important; }
.lg-still .lg-cloud.c1 { transform: translate3d(8vw, 0, 0); } .lg-still .lg-cloud.c3 { transform: translate3d(48vw, 0, 0); } .lg-still .lg-cloud.c6 { transform: translate3d(30vw, 0, 0); } .lg-still .lg-cloud.c2 { transform: translate3d(70vw, 0, 0); }
@media (prefers-reduced-motion: reduce) { .lg *, .lg *::before { animation: none !important; } .lg-cloud.c1 { transform: translate3d(8vw, 0, 0); } .lg-cloud.c3 { transform: translate3d(48vw, 0, 0); } .lg-cloud.c6 { transform: translate3d(30vw, 0, 0); } .lg-cloud.c2 { transform: translate3d(70vw, 0, 0); } }
