/* 172.113 – the six animated login pages. CSS only: no scripts, nothing fetched (campus photos apart). Still when the person has
   switched animations off (prefers-reduced-motion). --brand / --on come from the college's main colour. */
.la-wrap { align-items: center; }
.la { position: relative; width: 100%; height: calc(100vh - 80px); min-height: 480px; max-height: 780px; border-radius: 28px; overflow: hidden; --ink: #15171f; }

/* ---- A · living shapes (the classic picture, moving) */
.la-shapes svg > *, .la-shapes svg g > circle { transform-box: fill-box; transform-origin: center; }
@keyframes la-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes la-sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes la-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes la-spin { to { transform: rotate(360deg); } }
@keyframes la-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.la-shapes svg > *:nth-child(1) { animation: la-breathe 7s ease-in-out infinite; }
.la-shapes svg > *:nth-child(2) { animation: la-float 8s ease-in-out infinite; }
.la-shapes svg > *:nth-child(3) { animation: la-sway 8s ease-in-out infinite; }
.la-shapes svg > *:nth-child(5) { animation: la-float 7s ease-in-out -2s infinite; }
.la-shapes svg > path:last-of-type { animation: la-spin 14s linear infinite; }
.la-shapes svg > circle:last-of-type { animation: la-breathe 5s ease-in-out infinite; }
.la-shapes svg g > circle { animation: la-blink 2.4s ease-in-out infinite; }
.la-shapes svg g > circle:nth-child(2n) { animation-delay: -.8s; } .la-shapes svg g > circle:nth-child(3n) { animation-delay: -1.6s; }
.la-shapes .la-ini { font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; fill: #fff; animation: none; }

/* ---- B · programme marquee */
.la-marquee { background: var(--brand); color: var(--on); display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.6vh, 24px); }
.mq { display: flex; gap: 14px; width: max-content; white-space: nowrap; font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(26px, 3.1vw, 44px); will-change: transform; }
@keyframes mq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mq-l { animation: mq-left 40s linear infinite; } .mq-r { animation: mq-right 48s linear infinite; } .mq-slow { animation-duration: 58s; }
.mq-sm { font-family: Figtree, Hind, system-ui, sans-serif; font-weight: 600; font-size: clamp(16px, 1.7vw, 24px); }
.mq-xl { font-size: clamp(38px, 4.6vw, 66px); letter-spacing: -0.02em; gap: 22px; } .mq-acc { color: #ffd166; }
.mq-pill { padding: .2em .65em; border-radius: 2em; }
.mq-w { background: #fff; color: var(--ink); } .mq-a { background: #ffd166; color: var(--ink); } .mq-o { box-shadow: inset 0 0 0 2px var(--on); } .mq-d { background: var(--ink); color: #fff; }
.mq-chip { padding: .5em 1em; border-radius: .6em; }
.la-marquee .mq-acc { text-shadow: 0 0 0 transparent; }

/* ---- C · city landmark, drawn live */
.la-landmark { background: #101a3d; color: #fff; }
.la-landmark svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
@keyframes lm-draw { 0% { stroke-dashoffset: 1400; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1400; } }
@keyframes lm-rise { 0%, 10% { transform: translateY(60px); opacity: 0; } 45%, 90% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes lm-wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes lm-bird { from { transform: translate(0, 0); } to { transform: translate(560px, -70px); } }
.lm-line { stroke-dasharray: 1400; animation: lm-draw 12s ease-in-out infinite; } .lm-d { animation-delay: .5s; }
.lm-sun { animation: lm-rise 12s ease-in-out infinite; } .lm-wave { animation: lm-wave 5s linear infinite; } .lm-bird { animation: lm-bird 16s linear infinite; }
.lm-head { position: absolute; left: 6%; top: 6%; font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; }
.lm-head b { color: #ffb238; font-weight: 700; }
.lm-cap { position: absolute; left: 6%; bottom: 4%; font-size: 13px; color: #c9d3ff; }

/* ---- D · moving motto */
.la-motto { background: var(--ink); color: #fff; padding: clamp(28px, 8vh, 72px) clamp(24px, 4.4vw, 58px); display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 22px); }
.mt-eye { color: #cfd3e0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.mt-big, .mt-roll { font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.mt-big { font-size: clamp(40px, 5.2vw, 76px); line-height: 1; }
.mt-win { --h: clamp(50px, 6.4vw, 96px); height: var(--h); overflow: hidden; }
.mt-roll { display: flex; flex-direction: column; font-size: calc(var(--h) * .9); line-height: var(--h); white-space: nowrap; animation: mt-roll 10s cubic-bezier(.7, 0, .3, 1) infinite; }
@keyframes mt-roll { 0%, 22% { transform: translateY(0); } 25%, 47% { transform: translateY(-25%); } 50%, 72% { transform: translateY(-50%); } 75%, 97% { transform: translateY(-75%); } 100% { transform: translateY(0); } }
.mt-w0 { color: #b9a3ff; } .mt-w1 { color: #ffb238; } .mt-w2 { color: #7fe0c3; } .mt-w3 { color: #ff8d7f; }
.mt-bar { height: 10px; border-radius: 5px; background: var(--brand); width: 120px; animation: mt-bar 5s ease-in-out infinite; }
@keyframes mt-bar { 0%, 100% { width: 120px; } 50% { width: min(300px, 70%); } }
.mt-motto { color: #cfd3e0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; max-width: 30em; }
.mt-badge { position: absolute; right: 7%; bottom: 8%; width: clamp(84px, 11vw, 150px); aspect-ratio: 1; border-radius: 24%; background: var(--brand); color: var(--on); display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 42px); animation: mt-pop 5s ease-in-out infinite; }
@keyframes mt-pop { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(7deg); } }

/* ---- E · campus photos (6 s each) */
.la-photos { background: #1f1512; color: #fff; }
.la-photos img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
@keyframes cp-1 { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
@keyframes cp-2 { 0% { opacity: 0; transform: scale(1); } 8%, 50% { opacity: 1; } 58%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes cp-3 { 0% { opacity: 0; transform: scale(1); } 6%, 33% { opacity: 1; } 39%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes cp-4 { 0% { opacity: 0; transform: scale(1); } 4.5%, 25% { opacity: 1; } 29.5%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes cp-5 { 0% { opacity: 0; transform: scale(1); } 3.6%, 20% { opacity: 1; } 23.6%, 100% { opacity: 0; transform: scale(1.12); } }
.la-photos[data-n="1"] img { opacity: 1; animation: cp-1 20s ease-in-out infinite alternate; }
.la-photos[data-n="2"] img { animation: cp-2 12s linear infinite; } .la-photos[data-n="3"] img { animation: cp-3 18s linear infinite; }
.la-photos[data-n="4"] img { animation: cp-4 24s linear infinite; } .la-photos[data-n="5"] img { animation: cp-5 30s linear infinite; }
.cp-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(20, 14, 12, .88), rgba(20, 14, 12, 0)); }
.cp-text { position: absolute; left: 7%; right: 7%; bottom: 7%; display: flex; flex-direction: column; gap: 12px; }
.cp-h { font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.cp-s { font-size: 15px; color: #f0e4df; } .cp-line { height: 5px; width: 90px; border-radius: 3px; background: var(--brand); }

/* ---- F · orbit */
.la-orbit { background: #12161f; color: #fff; display: flex; align-items: center; justify-content: center; --obmax: min(600px, calc(100vh - 190px)); }
.ob-head { position: absolute; left: 6%; top: 5%; font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 26px); line-height: 1.15; }
.ob { position: relative; width: min(84%, var(--obmax)); aspect-ratio: 1; margin-top: 5%; }
.ob-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; box-sizing: border-box; translate: -50% -50%; }
.ob-r3 { width: 100%; height: 100%; border: 2px dashed #3d4660; animation: ob-cw 54s linear infinite; }
.ob-r2 { width: 72%; height: 72%; border: 2px solid #3d4660; animation: ob-ccw 38s linear infinite; }
.ob-r1 { width: 44%; height: 44%; border: 2px solid var(--brand); animation: ob-cw 26s linear infinite; }
@keyframes ob-cw { to { transform: rotate(360deg); } } @keyframes ob-ccw { to { transform: rotate(-360deg); } }
.ob-at { position: absolute; translate: -50% -50%; }
.ob-top { left: 50%; top: 0; } .ob-bot { left: 50%; top: 100%; } .ob-left { left: 0; top: 50%; } .ob-right { left: 100%; top: 50%; }
.ob-tag { display: block; font-style: normal; white-space: nowrap; padding: .55em 1em; border-radius: 2em; font-weight: 600; font-size: clamp(11px, 1.15vw, 15px); color: var(--ink); }
.ob-r3 .ob-tag { animation: ob-ccw 54s linear infinite; } .ob-r2 .ob-tag { animation: ob-cw 38s linear infinite; } .ob-r1 .ob-tag { animation: ob-ccw 26s linear infinite; }
.ob-amber { background: #ffb238; } .ob-white { background: #fff; } .ob-mint { background: #7fe0c3; } .ob-coral { background: #ff8d7f; } .ob-brand { background: var(--brand); color: var(--on); }
.ob-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif; font-weight: 700; font-size: clamp(14px, 2vw, 30px); animation: la-breathe 5s ease-in-out infinite; }

/* ---- preview bar (Super Admin looking at a style) */
.la-prev { position: fixed; left: 50%; top: 12px; translate: -50% 0; z-index: 5; background: #15171f; color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); white-space: nowrap; }
.la-prev a { color: #15171f; background: #fff; border-radius: 999px; padding: 5px 12px; text-decoration: none; font-weight: 600; }

/* ---- phones: the picture becomes a strip above the sign-in */
@media (max-width: 860px) {
  .la { height: 232px; min-height: 0; border-radius: 20px; }
  .la-marquee { gap: 10px; } .la-marquee .mq:nth-child(n+4) { display: none; }
  .mq { font-size: 26px; } .mq-sm { font-size: 15px; } .mq-xl { font-size: 38px; }
  .lm-head { font-size: 20px; } .lm-cap { font-size: 11.5px; }
  .la-motto { padding: 22px 22px; gap: 8px; } .mt-eye { font-size: 11.5px; } .mt-big { font-size: 34px; } .mt-win { --h: 46px; } .mt-motto { display: none; } .mt-bar { height: 7px; }
  .mt-badge { width: 64px; font-size: 18px; right: 6%; bottom: 10%; }
  .cp-h { font-size: 24px; } .cp-s { font-size: 13px; } .cp-text { gap: 8px; bottom: 9%; }
  .la-orbit { --obmax: 196px; } .ob-head { display: none; } .ob { margin-top: 0; } .ob-r1 .ob-at { display: none; } .ob-tag { font-size: 10.5px; padding: .4em .8em; } .ob-core { font-size: 13px; width: 26%; }
  .la-prev { top: auto; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .la *, .la-shapes svg * { animation: none !important; }
  .lm-line { stroke-dashoffset: 0; } .la-photos img:first-of-type { opacity: 1; }
}
