/* /login/ (R6): the marketing wrapper only. Felt colours, felt doors, a promise row. Every id, class and data attribute login.js uses is untouched. */
body.app--login { background: var(--cream); }
.lg__kick { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 16px 8px 10px; border-radius: var(--pill); background: var(--sun); color: var(--ink-on-sun); font: 800 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--sh-felt-sm); rotate: -2deg; }
.lg__kick img { width: 24px; height: 24px; }
.lg__head h1 { font-family: var(--font-display); letter-spacing: -.025em; }
.door__frame { background: var(--white); border-radius: 50% 50% 28px 28px / 36% 36% 28px 28px; box-shadow: var(--sh-felt); }
.door__frame::before { box-shadow: 0 24px 40px -18px rgba(30, 42, 90, .45); }
.door__room { border-radius: 50% 50% 20px 20px / 35% 35% 20px 20px; box-shadow: none; }
.door__room::after { border-radius: 0; box-shadow: none; }
.door--student { --room: var(--sky); --floor: var(--mint); }
.door--parent { --room: var(--coral-soft); --floor: var(--sun); }
.door--teacher { --room: var(--mint); --floor: var(--sky); }
.door--school { --room: var(--lav); --floor: var(--cream-deep); }
.dp { filter: drop-shadow(0 8px 8px rgba(60, 40, 10, .22)); }
.door__name { font-family: var(--font-display); letter-spacing: -.015em; }
.lg__promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; list-style: none; }
.lg__promise li { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--font-body); color: var(--ink-2); }
.lg__promise img { width: 44px; height: 44px; object-fit: contain; }
.lg__links { margin-top: 18px; text-align: center; font: 700 15.5px/1.6 var(--font-body); color: var(--ink-2); }
.lg__links a { color: var(--blue); }
/* R6 demo access: the legal line closes the sign-in sheet. */
.acct > .acct__legal { margin: 0; padding: 0 var(--pad) var(--pad); }
.dm .hint b { overflow-wrap: anywhere; }
.dm .acct__links { margin-top: 2px; }

/* ====================================================================================================================
   R6 pass 2: the four door pictures (felt cast, one scale), the door that slides open, and the sample visitor pass.
   Every figure is sized from its own pixel height with --k, so a person is the same size on all four doors; the room is a
   size container, so --k is a fraction of the room's height (cqh). Feet stand on the ground band (bottom 6 to 8 %).
   ==================================================================================================================== */
.door__room { container-type: size; --k: .0745cqh; }
.dp--person { transform-origin: 50% 100%; }
.dp--girl { height: calc(745 * var(--k)); width: auto; right: 4%; bottom: 7%; z-index: 4; }
.dp--kuru { height: calc(395 * var(--k)); width: auto; left: 3%; bottom: 26%; z-index: 3; }
.dp--books { width: 38%; height: auto; left: 2%; bottom: 7%; z-index: 2; }
.dp--amma { height: calc(863 * var(--k)); width: auto; left: 5%; bottom: 7%; z-index: 3; }
.dp--appa { height: calc(889 * var(--k)); width: auto; right: 5%; bottom: 7%; z-index: 3; }
.dp--phone { height: calc(400 * var(--k)); width: auto; left: 50%; bottom: 20%; z-index: 2; }
.dp--board { width: 60%; height: auto; left: 8%; top: 25%; z-index: 1; }
.dp--teacher { height: calc(870 * var(--k)); width: auto; right: 4%; bottom: 7%; z-index: 3; }
.dp--office { height: calc(881 * var(--k)); width: auto; left: 3%; bottom: 7%; z-index: 3; }
.dp--principal { height: calc(862 * var(--k)); width: auto; right: 3%; bottom: 7%; z-index: 3; }
.dp--nila { height: calc(360 * var(--k)); width: auto; left: 50%; top: 15%; z-index: 2; }
.dp--laptop { width: 25%; height: auto; left: 50%; bottom: 8%; z-index: 2; }
/* the phone, Nila and the laptop are centred with translate */
.dp--phone, .dp--nila, .dp--laptop { translate: -50% 0; }
.door__plate { padding-top: 2px; }

/* the door breathes; the person peeks (a 4 px lift and a small turn) when the door is hovered or focused; the mascots float.
   Only transform properties. Loops step on twos (12 a second). */
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .dp--person { animation: lg-breathe 4.2s steps(25, jump-none) infinite alternate; }
  html:not(.rm) .dp--person:nth-of-type(odd) { animation-delay: -1.7s; }
  html:not(.rm) .dp--kuru { animation: lg-float 3.8s steps(25, jump-none) infinite alternate; }
  html:not(.rm) .dp--nila { animation: lg-floatc 5.6s steps(25, jump-none) infinite alternate -2s; }
  html:not(.rm) .dp--phone { animation: lg-floatc 4.4s steps(25, jump-none) infinite alternate -1s; }
  html:not(.rm) .door:focus-visible .dp--person { animation: lg-breathe 4.2s steps(25, jump-none) infinite alternate, lg-peek 640ms steps(1, end) both; }
  html:not(.rm) .door:focus-visible .dp--kuru { animation: lg-float 3.8s steps(25, jump-none) infinite alternate, lg-hop 640ms steps(1, end) both; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  html:not(.rm) .door:hover .dp--person { animation: lg-breathe 4.2s steps(25, jump-none) infinite alternate, lg-peek 640ms steps(1, end) both; }
  html:not(.rm) .door:hover .dp--kuru { animation: lg-float 3.8s steps(25, jump-none) infinite alternate, lg-hop 640ms steps(1, end) both; }
  html:not(.rm) .door:hover .dp--person:nth-of-type(even) { animation-delay: 0s, 90ms; }
}
@keyframes lg-breathe { from { scale: 1; } to { scale: 1.014 1.02; } }
@keyframes lg-float { from { translate: 0 0; } to { translate: 0 -3px; } }
@keyframes lg-floatc { from { translate: -50% 0; } to { translate: -50% -3px; } }
/* the lift is 4 px at most; the turn is about the feet */
@keyframes lg-peek { 0% { translate: 0 0; rotate: 0deg; } 17% { translate: 0 -3px; rotate: -2.5deg; } 33% { translate: 0 -4px; rotate: 2deg; } 50% { translate: 0 -3px; rotate: -2deg; } 67% { translate: 0 -1px; rotate: 1deg; } 83%, 100% { translate: 0 0; rotate: 0deg; } }
@keyframes lg-hop { 0% { translate: 0 0; } 25% { translate: 0 -4px; } 50% { translate: 0 -2px; } 75% { translate: 0 -4px; } 100% { translate: 0 0; } }

/* a chosen door slides open before the page changes: a kraft leaf, hinged on the left, swings back over the room */
.door__frame::after { content: ""; position: absolute; inset: 6% 7% 6.5%; z-index: 6; pointer-events: none; opacity: 0; transform-origin: 0 50%;
  border-radius: 50% 50% 10px 11px / 37% 37% 9px 10px;
  background: radial-gradient(circle at 84% 58%, #B9791A 0 5px, #E9B84A 6px 8px, transparent 9px), var(--kraft) url(/assets/art/textures/kraft-tile.webp) 0 0 / 512px 512px;
  box-shadow: inset 0 0 0 3px rgba(90, 42, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .4), 6px 0 14px rgba(60, 30, 0, .3); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .door.is-opening .door__frame::after { animation: lg-leaf 420ms cubic-bezier(.45, 0, .25, 1) both; }
  html:not(.rm) .door.is-opening .dp--person { transition: scale 400ms var(--settle); scale: 1.05; animation: none; }
}
@keyframes lg-leaf { 0% { opacity: 0; transform: perspective(800px) rotateY(0deg); } 14% { opacity: 1; } 100% { opacity: 1; transform: perspective(800px) rotateY(-108deg); } }

/* ---------- the way in: two separate objects. Left, the sign-in sheet. Right, a sample visitor pass on a lanyard. */
.duo { display: grid; gap: 14px; align-items: start; }
@media (min-width: 760px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(290px, 336px); gap: clamp(26px, 3.4vw, 52px); }
  .duo--pass-first > .pass { order: 2; }
}
/* the three doors that have a pass get a wider panel; the doorway picture stays beside it only where there is room */
@media (min-width: 1180px) { #flow:not([data-door="student"]) .flow { grid-template-columns: minmax(0, 250px) minmax(0, 960px); } }
@media (min-width: 860px) and (max-width: 1179.98px) {
  #flow:not([data-door="student"]) .flow { grid-template-columns: minmax(0, 960px); }
  #flow:not([data-door="student"]) .flow__door { display: none; }
  #flow:not([data-door="student"]) .flow__who { display: flex; align-items: center; gap: 12px; }
}

.pass { --pass-paper: #FFE7A0; --pass-ink: #5A3A06; position: relative; display: grid; justify-items: center; padding-top: 84px; margin-top: 34px; }
@media (min-width: 760px) { .pass { margin-top: 0; padding-top: 70px; } }
/* the lanyard: two straps meeting at the clip, fading up into the page */
.pass__strap { position: absolute; top: 0; left: 50%; width: 150px; height: 106px; translate: -50% 0; background: var(--blue); z-index: 0;
  clip-path: polygon(6% 0, 24% 0, 56% 100%, 44% 100%, 94% 0, 76% 0, 44% 100%, 56% 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%); mask-image: linear-gradient(to bottom, transparent, #000 38%); }
.pass__swing { position: relative; z-index: 1; width: 100%; max-width: 360px; transform-origin: 50% 0; }
.pass__clip { position: absolute; z-index: 2; left: 50%; top: -22px; width: 34px; height: 30px; translate: -50% 0; border-radius: 8px 8px 6px 6px;
  background: linear-gradient(100deg, #C9CFDD, #F6F8FD 40%, #A9B1C4); box-shadow: 0 2px 3px rgba(30, 42, 90, .35), inset 0 0 0 1.5px rgba(30, 42, 90, .25); }
.pass__clip::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 7px; translate: -50% 0; border-radius: 4px; background: rgba(30, 42, 90, .45); }
.pass__card { --pp: clamp(16px, 2.4vw, 22px); position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 12px; padding: 0 var(--pp) var(--pp); rotate: 1.2deg;
  border-radius: 22px 25px 21px 26px / 25px 21px 26px 22px; color: var(--pass-ink);
  background: var(--pass-paper) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; background-blend-mode: multiply; box-shadow: var(--edge), var(--sh-lift); }
.pass__card::after { content: ""; position: absolute; inset: 7px; z-index: -1; border-radius: 17px; border: 2px dashed rgba(122, 74, 16, .42); pointer-events: none; }
.pass__band { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0 calc(-1 * var(--pp)); padding: 24px var(--pp) 10px;
  background: var(--ink) url(/assets/art/textures/night-paper-tile.webp) 0 0 / 256px 256px; color: #FFFFFF; font: 800 14.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.pass__band span:last-child { color: var(--ink-on-night); letter-spacing: .03em; text-transform: none; font-weight: 700; }
.pass__id { position: relative; display: flex; align-items: center; gap: 12px; min-height: 96px; padding-top: 4px; }
.pass__photo { flex: none; width: 80px; height: 80px; padding: 4px; border-radius: 6px; background: #FFFFFF; object-fit: cover; object-position: 50% 6%; rotate: -3deg; box-shadow: 0 3px 8px rgba(60, 30, 0, .28); }
.pass__who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pass__who b { font: 800 19px/1.15 var(--font-display); color: var(--ink); }
.pass__who span { font: 700 15.5px/1.3 var(--font-body); color: var(--pass-ink); }
.pass__stamp { --pk-ink: #B02A1E; --pk-rubber-fs: 23px; --pk-rubber-turn: -9deg; flex: none; margin-left: auto; margin-right: 2px; }
.pass__h { font: 800 clamp(21px, 2vw, 24px)/1.15 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.pass .hint { color: var(--pass-ink); font-weight: 700; }
.pass .field .input { background: #FFFFFF; }
.pass__bar { height: 26px; margin: 4px 0 0; border-radius: 3px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 11px, var(--ink) 11px 15px, transparent 15px 17px); }
.pass .nl__roles { grid-template-columns: minmax(0, 1fr); }
.pass .nl__note { color: var(--pass-ink); }
.pass .tag--sample { background: #FFFFFF; }

/* the pass swings in on its lanyard, then the SAMPLE stamp is pressed on (the kit's twos) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .flow__card.is-new .pass__swing { animation: pass-swing 1500ms both; }
}
@keyframes pass-swing {
  0% { opacity: 0; transform: translateY(-46px) rotate(-17deg); animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
  14% { opacity: 1; transform: translateY(0) rotate(-12deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  34% { transform: rotate(9deg); animation-timing-function: ease-in-out; }
  52% { transform: rotate(-5.5deg); animation-timing-function: ease-in-out; }
  68% { transform: rotate(3deg); animation-timing-function: ease-in-out; }
  82% { transform: rotate(-1.4deg); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}

/* beside the pass the sign-in buttons stack, so each keeps its label on one line */
@media (min-width: 760px) { .duo .acct__ways { grid-template-columns: minmax(0, 1fr); } }
