/* Sign-in page. Role themes swap accent + background colours. */
.login-page { --accent: var(--blue); --accent-soft: var(--blue-soft); --c1: #cfe0ff; --c2: #d6f0ff; --c3: #e6dcff; --c4: #fff0c2; transition: --c1 .9s, --c2 .9s, --c3 .9s, --c4 .9s; }
.login-page[data-role="parent"] { --accent: #d9542f; --accent-soft: var(--coral-soft); --c1: #ffe0d4; --c2: #fff0c2; --c3: #ffd9e8; --c4: #dcf4e6; }
.login-page[data-role="student"] { --accent: var(--lilac); --accent-soft: var(--lilac-soft); --c1: #fff0c2; --c2: #e6dcff; --c3: #d6f0ff; --c4: #dcf4e6; }
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.scene { position: relative; overflow: hidden; background: var(--bg); }
.scene-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 24px clamp(20px, 4vw, 48px) 32px; }
.scene-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s; }
.back:hover { background: #fff; }
.scene-copy { margin-top: auto; padding-top: 48px; max-width: 30rem; }
.scene-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.scene-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.scene-list li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16.5px; color: var(--ink-2); animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
.scene-list svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 8px; background: var(--accent); color: #fff; transition: background .4s; }
.scene-kuru { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; margin-top: 28px; }
.scene-kuru .bubble { margin-bottom: 110px; max-width: 250px; }
.scene-kuru .kuru-btn { width: 150px; flex: none; }

.panel { display: grid; place-items: center; padding: 40px clamp(16px, 4vw, 48px); background: var(--surface); }
.card { width: min(440px, 100%); }
.card h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; }
.card-sub { margin-top: 8px; color: var(--ink-2); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 24px 0 20px; padding: 5px; border-radius: 18px; background: #f5f2ec; }
.role-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.role-opt svg { width: 22px; height: 22px; }
.role-opt:hover { color: var(--ink); }
.role-opt[aria-checked="true"] { background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.form { display: grid; gap: 16px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.link-btn:hover { text-decoration-color: currentColor; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-3); }
.pw-toggle:hover { color: var(--ink); background: #f5f2ec; }
.login-page .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.remember { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn-accent:hover { filter: brightness(1.06); }
.demo { margin-top: 24px; padding: 16px; border-radius: 18px; background: var(--accent-soft); transition: background .4s; }
.demo-title { font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.demo-list { display: grid; gap: 8px; }
.demo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 10px 9px 12px; }
.demo-item strong { display: block; font-size: 14px; line-height: 1.25; }
.demo-item small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; overflow-wrap: anywhere; }
.card-foot { margin-top: 16px; text-align: center; }
.legal { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.signed-in { margin-bottom: 20px; padding: 14px 16px; border-radius: 16px; background: var(--mint-soft); font-weight: 600; }
.signed-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.form.shake-x { animation: shake-x .4s ease; }
@keyframes shake-x { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }

/* students get bigger, friendlier controls */
.login-page[data-role="student"] .input { font-size: 18px; padding: 15px 16px; border-radius: 16px; }
.login-page[data-role="student"] .card h2 { font-size: clamp(2.1rem, 3.4vw, 2.6rem); }
.login-page[data-role="student"] .btn-accent { min-height: 56px; font-size: 18px; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .scene-inner { padding-bottom: 12px; }
  .scene-copy { margin-top: 18px; padding-top: 0; }
  .scene-list { display: none; }
  .scene-kuru { position: absolute; right: 12px; bottom: -6px; margin: 0; }
  .scene-kuru .kuru-btn { width: 96px; }
  .scene-kuru .bubble { display: none; }
  .scene-copy { padding-right: 100px; padding-bottom: 20px; }
  .panel { padding-top: 28px; place-items: start center; }
}
@media (max-width: 420px) {
  .scene-copy h1 { font-size: 1.9rem; }
  .role-opt { font-size: 13px; }
}

/* ---------- the picture for each door (no paragraphs) ---------- */
.scene-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene-kuru .bubble { display: none; }
.scene-copy { margin-top: 0; padding-top: 12px; }
.scene-kuru { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 24px; margin: 0; }
.scene-kuru .kuru-btn { width: 110px; }
.lg-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 360px; margin-top: 12px; }
.lg-art { position: relative; width: 520px; height: 400px; display: none; transform: scale(var(--lk, 1)); transform-origin: center; }
.login-page[data-role="school"] .lg-school, .login-page[data-role="parent"] .lg-parent { display: block; animation: lg-in .6s var(--spring); }
@keyframes lg-in { from { opacity: 0; transform: scale(calc(var(--lk, 1) * .92)) translateY(12px); } }
/* school: post once, only 1B lights up, work comes back with a star */
.lg-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-lines path { fill: none; stroke: rgba(40, 87, 166, .22); stroke-width: 3; stroke-dasharray: 3 9; stroke-linecap: round; }
.lg-lines path.hot { stroke: var(--blue); stroke-width: 4; animation: route 1s linear infinite; }
.lg-laptop { position: absolute; left: 0; top: 110px; width: 250px; transform: perspective(900px) rotateY(16deg); }
.lg-screen { height: 150px; border-radius: 14px 14px 6px 6px; background: #fff; border: 8px solid #15172a; padding: 8px 10px; display: grid; gap: 8px; align-content: start; box-shadow: 0 30px 50px -30px rgba(28, 26, 46, .5); }
.lg-bar { display: flex; gap: 5px; } .lg-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; } .lg-bar i:nth-child(2) { background: var(--sun); } .lg-bar i:nth-child(3) { background: var(--mint); }
.lg-chips { display: flex; gap: 6px; }
.lg-type { font-family: var(--font-display); font-weight: 800; font-size: 17px; background: #f7f3ec; border-radius: 9px; padding: 6px 8px; white-space: nowrap; overflow: hidden; }
.lg-type span { display: inline-block; clip-path: inset(0 100% 0 0); animation: lg-type 5s steps(16) infinite; }
@keyframes lg-type { 0% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0 0 0 0); } }
.lg-pub { justify-self: end; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 14px; animation: lg-press 5s ease infinite; }
@keyframes lg-press { 0%, 32% { transform: none; } 35% { transform: scale(.88); } 40%, 100% { transform: none; } }
.lg-base { height: 14px; margin: 0 -18px; border-radius: 0 0 14px 14px; background: linear-gradient(#d9dde6, #aab1c2); border: 3px solid #15172a; border-top: 0; }
.lg-class { position: absolute; width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; background: #fff; border: 3px solid #d8d3ea; color: var(--ink-3); box-shadow: var(--shadow-1); }
.lg-class.k1 { left: 420px; top: 30px; } .lg-class.k2 { left: 426px; top: 152px; } .lg-class.k3 { left: 420px; top: 272px; }
.lg-class.k2 { animation: lg-hot 5s ease infinite; }
@keyframes lg-hot { 0%, 50% { background: #fff; color: var(--ink-3); border-color: #d8d3ea; transform: none; } 56% { transform: scale(1.18); } 62%, 100% { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.05); } }
.lg-check { position: absolute; left: 486px; top: 140px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-weight: 900; opacity: 0; animation: lg-pop 5s ease infinite; }
@keyframes lg-pop { 0%, 58% { opacity: 0; transform: scale(.3); } 64%, 100% { opacity: 1; transform: none; } }
.lg-plane { position: absolute; left: 170px; top: 170px; width: 40px; height: 40px; opacity: 0; animation: lg-fly 5s cubic-bezier(.5, 0, .4, 1) infinite; }
@keyframes lg-fly { 0%, 36% { opacity: 0; transform: translate(0, 0) scale(.6); } 40% { opacity: 1; transform: translate(20px, -6px) scale(1); } 55% { opacity: 1; transform: translate(240px, 6px) scale(1) rotate(8deg); } 58%, 100% { opacity: 0; transform: translate(256px, 10px) scale(.6); } }
.lg-review { position: absolute; left: 150px; top: 300px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 12px 8px 8px; box-shadow: var(--shadow-2); opacity: 0; animation: lg-rev 5s ease infinite; }
@keyframes lg-rev { 0%, 70% { opacity: 0; transform: translateY(14px); } 76%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lg-photo { width: 54px; height: 42px; border-radius: 6px; background: repeating-linear-gradient(#fffdf6 0 9px, #cfe0f5 9px 10px); padding: 8px; display: grid; gap: 4px; align-content: start; }
.lg-photo i { height: 3px; border-radius: 2px; background: #26356a; opacity: .6; }
.lg-review b { font-family: var(--font-display); font-size: 16px; color: #d64545; border: 2.5px solid #d64545; border-radius: 8px; padding: 1px 8px; transform: rotate(-6deg); }
.lg-team { position: absolute; left: 10px; top: 20px; display: flex; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); font-weight: 900; font-size: 14px; }
.lg-team b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); border: 3px solid #fff; margin-right: -8px; }
.lg-team span { margin-left: 16px; color: var(--ink-2); }
/* parents: the evening list lands, ticks fill, the bag gets packed */
.lg-parent .lg-moon { position: absolute; right: 30px; top: 10px; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset -14px 6px 0 0 #ffc93c; }
.lg-star { position: absolute; color: #ffc93c; font-size: 18px; animation: twinkle-sky 1.6s ease-in-out infinite alternate; }
.lg-star.s1 { right: 110px; top: 30px; } .lg-star.s2 { right: 60px; top: 90px; font-size: 13px; animation-delay: -.8s; }
.lg-phone { position: absolute; left: 60px; top: 10px; width: 220px; height: 380px; border-radius: 36px; background: #fffbf5; border: 9px solid #15172a; padding: 40px 12px 14px; display: grid; gap: 10px; align-content: start; box-shadow: 0 40px 60px -30px rgba(28, 26, 46, .55); transform: rotate(-4deg); }
.lg-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 12px; background: #06070f; }
.lg-notif { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 16px; padding: 9px; box-shadow: var(--shadow-2); font-size: 12.5px; font-weight: 700; line-height: 1.25; animation: lg-drop 6s var(--spring) infinite; }
.lg-notif i { width: 28px; height: 28px; flex: none; border-radius: 8px; background: url(../public/media/brand/kuru-mark.svg) center / cover; }
.lg-notif b { display: block; font-size: 10.5px; color: var(--ink-3); }
@keyframes lg-drop { 0% { transform: translateY(-60px); opacity: 0; } 8%, 100% { transform: none; opacity: 1; } }
.lg-row { position: relative; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-weight: 800; font-size: 13.5px; animation: lg-row 6s ease infinite; }
.lg-row .tag { font-size: 10px; }
.lg-row em { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; color: #fff; background: var(--mint); transform: scale(0); animation: lg-tick 6s var(--spring) infinite; }
.lg-row.r2, .lg-row.r2 em { animation-delay: .15s; } .lg-row.r3, .lg-row.r3 em { animation-delay: .3s; }
.lg-row.r2 em { animation-name: lg-tick2; } .lg-row.r3 em { animation-name: lg-tick3; }
@keyframes lg-row { 0%, 10% { opacity: 0; transform: translateX(20px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes lg-tick { 0%, 34% { transform: scale(0); } 40%, 100% { transform: scale(1); } }
@keyframes lg-tick2 { 0%, 46% { transform: scale(0); } 52%, 100% { transform: scale(1); } }
@keyframes lg-tick3 { 0%, 58% { transform: scale(0); } 64%, 100% { transform: scale(1); } }
.lg-bag { position: absolute; left: 320px; top: 190px; width: 150px; height: 170px; border-radius: 44px; background: #2857a6; border: 4px solid #1c1a2e; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .15); }
.lg-bag::before { content: ""; position: absolute; top: -30px; left: 50%; width: 56px; height: 34px; margin-left: -28px; border: 8px solid #1c1a2e; border-bottom: 0; border-radius: 30px 30px 0 0; }
.lg-bag::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 22px; height: 60px; border-radius: 20px; background: #ffc93c; border: 4px solid #1c1a2e; }
.lg-face { position: absolute; z-index: 1; left: 50%; bottom: 44px; width: 40px; height: 16px; margin-left: -20px; border-bottom: 4px solid #1c1a2e; border-radius: 0 0 20px 20px; }
.lg-drop { position: absolute; left: 50%; top: -80px; width: 44px; height: 44px; margin-left: -22px; border-radius: 12px; background: #fff; border: 3px solid #1c1a2e; animation: lg-fall 6s ease-in infinite; z-index: 2; }
.lg-drop.d1 { background: #86b0ff; } .lg-drop.d2 { background: #6cc98f; border-radius: 50% 4px; animation-delay: .5s; }
@keyframes lg-fall { 0%, 60% { transform: translateY(-40px); opacity: 0; } 64% { opacity: 1; } 76% { transform: translateY(90px) rotate(20deg) scale(.7); opacity: 1; } 80%, 100% { transform: translateY(100px) scale(.4); opacity: 0; } }
.lg-lock { position: absolute; left: 330px; top: 70px; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; color: #5436c4; background: #fff; border-radius: 999px; padding: 8px 14px 8px 10px; box-shadow: var(--shadow-1); }
.lg-lock svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .lg-stage { min-height: 250px; margin-top: 4px; }
  .scene-kuru { display: none; }
  .scene-copy { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-art *, .lg-art *::before, .lg-art *::after { animation: none !important; }
  .lg-type span { clip-path: none; }
  .lg-row em, .lg-check, .lg-review { transform: none; opacity: 1; }
}
@keyframes route { to { stroke-dashoffset: -24; } }
@keyframes twinkle-sky { to { opacity: .35; } }
.lg-art { position: absolute; left: 50%; top: 50%; margin: -200px 0 0 -260px; }
.lg-phone { width: 236px; }
.lg-row { white-space: nowrap; font-size: 13px; }

/* a proper laptop: lid with camera, glass screen, key deck, trackpad */
.lg-laptop { width: 262px; transform: perspective(900px) rotateY(14deg); }
.lg-lid { position: relative; padding: 14px 10px 12px; border-radius: 16px 16px 6px 6px; background: #1a1c28; box-shadow: inset 0 0 0 1.5px #3b3e52, 0 30px 50px -28px rgba(28, 26, 46, .55); }
.lg-cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3f455c; }
.lg-laptop .lg-screen { height: 140px; border: 0; border-radius: 4px; box-shadow: none; }
.lg-deck { position: relative; height: 26px; margin: 0 -18px; background: linear-gradient(180deg, #eef0f5, #c9ced9); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.lg-keys { position: absolute; left: 13%; right: 13%; top: 4px; height: 12px;
  background: repeating-linear-gradient(90deg, #a9b0c1 0 9px, transparent 9px 11.5px) 0 0 / 100% 3px no-repeat, repeating-linear-gradient(90deg, #a9b0c1 0 9.5px, transparent 9.5px 12px) 2px 4.5px / 100% 3px no-repeat, repeating-linear-gradient(90deg, #a9b0c1 0 10px, transparent 10px 12.5px) 4px 9px / 100% 3px no-repeat; }
.lg-pad { position: absolute; left: 50%; bottom: 3px; width: 30%; height: 6px; margin-left: -15%; border-radius: 3px; background: rgba(28, 26, 46, .08); box-shadow: inset 0 0 0 1px rgba(28, 26, 46, .12); }
.lg-lip { position: relative; height: 8px; margin: 0 -20px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #c3c8d4, #8e95a8); }
.lg-lip::after { content: ""; position: absolute; left: 50%; top: 0; width: 56px; height: 3px; margin-left: -28px; border-radius: 0 0 5px 5px; background: #a5acbd; }
.lg-review { left: 164px; top: 318px; padding: 10px 14px 10px 10px; gap: 12px; }
.lg-photo { width: 64px; height: 50px; }
.lg-photo.hw { font-family: "Segoe Print", "Comic Sans MS", cursive; color: #26356a; padding: 6px 7px; gap: 2px; }
.lg-photo.hw em, .lg-photo.hw i { display: block; height: auto; background: none; opacity: 1; font-style: normal; font-weight: 700; font-size: 8.5px; line-height: 1.2; white-space: nowrap; }
.lg-photo.hw em { color: #c2185b; }
.lg-photo.hw { padding: 0 7px; gap: 0; } .lg-photo.hw em, .lg-photo.hw i { line-height: 10px; font-size: 8px; }
.lg-deck { height: 38px; margin: 0 -20px; background: none; clip-path: none; }
.lg-deck .kb { display: block; width: 100%; height: 100%; }
