/* Sign-in page: the CURBI plaque on a wood wall. No inline styles (the page's
   content security policy forbids them), so every timing lives here. */
body.login { margin: 0; background: #2B1A0E; }
.wall {
  position: relative; min-height: 100vh; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 24px;
  background: linear-gradient(180deg, #3A2313 0%, #2B1A0E 55%, #20130A 100%);
  font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #FAF1DF;
}
.wall a { color: #E6C88F; }
.wall a:hover { color: #FAF1DF; }
.grain, .planks, .glow { position: absolute; inset: 0; width: 100%; height: 100%; }
.planks { background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 178px, rgba(0,0,0,.45) 178px, rgba(0,0,0,.45) 180px); }
.glow { background: radial-gradient(ellipse at 50% 42%, rgba(255,214,150,.16) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%); }

.inlay { position: absolute; left: 0; right: 0; height: 3px; transform-origin: left center; transform: scaleX(0); animation: inlay 1.2s ease-out forwards; }
.inlay-top { top: 88px; background: linear-gradient(90deg, #8A6B3A, #E6C88F 30%, #B8935A 60%, #F2D9A6 85%, #8A6B3A); }
.inlay-bottom { bottom: 88px; animation-delay: .25s; background: linear-gradient(90deg, #8A6B3A, #F2D9A6 20%, #B8935A 55%, #E6C88F 80%, #8A6B3A); }

.sign { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; max-width: 460px; }
.plaque { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); }
.entry { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; animation-delay: 3.3s; }
.tagline { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 17px; letter-spacing: .04em; color: #EBD9B4; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px;
  border-radius: 999px; background: #E6C88F; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 16px; text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.wall a.cta, .wall a.cta:hover { color: #2B1A0E; }
.cta:hover { background: #F2D9A6; }
.cta:focus-visible { outline: 3px solid #7DB84A; outline-offset: 3px; }
.hint { margin: 0; font-size: 14px; line-height: 1.5; color: #D9C7A2; }

.pile { position: absolute; right: 0; bottom: 0; width: 460px; max-width: 60%; height: auto; }
.pile use { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3,1.7,.5,1); }
.pile use:hover { transform: translateY(-22px) rotate(30deg) scale(1.15); }

/* The logo plays once. */
.stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
.rise { opacity: 0; animation: rise .7s ease-out forwards; }
.frame { stroke-linecap: square; animation-duration: 2.6s; animation-delay: .5s; }
.word { animation-duration: 1.6s; animation-delay: 2.6s; }
.rule { animation-duration: 1.8s; }
.rule-orange { animation-delay: 3.8s; }
.rule-green { animation-delay: 4.4s; }

/* Seeds, vine and pumpkin. login.js replays these every five minutes. */
.drop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: drop 1.3s cubic-bezier(.35,.05,.6,1) forwards; }
.s1 { animation-delay: 3.4s; } .s2 { animation-delay: 3.5s; } .s3 { animation-delay: 3.55s; }
.s4 { animation-delay: 3.6s; } .s5 { animation-delay: 3.75s; } .s6 { animation-delay: 3.9s; }
.s7 { animation-delay: 4s; } .s8 { animation-delay: 4.15s; } .s9 { animation-delay: 4.3s; }
.rock { transform-box: fill-box; transform-origin: center bottom; animation: rock 5s ease-in-out infinite; }
.rock-late { animation-delay: -2s; }
.sway { transform-box: fill-box; transform-origin: center bottom; animation: sway 6s ease-in-out infinite; }
.vine { animation-duration: 1.8s; animation-delay: 5s; }
.leaf { transform-box: fill-box; transform-origin: left center; transform: scale(0); animation: leaf .6s ease-out forwards; }
.l1 { animation-delay: 5.8s; } .l2 { animation-delay: 6.1s; } .l3 { animation-delay: 6.5s; }
.grow { transform-box: fill-box; transform-origin: center top; transform: scale(0); animation: leaf 8s ease-out 7s forwards; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes inlay { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drop {
  0% { transform: translateY(-820px) rotate(-50deg); opacity: 0; }
  6% { opacity: 1; }
  68% { transform: translateY(0) rotate(7deg); }
  82% { transform: translateY(-12px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}
@keyframes rock { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes leaf { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2deg); } }

@media (max-width: 640px) {
  .wall { padding: 110px 20px 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .stroke, .inlay, .rise, .drop, .rock, .leaf, .sway, .grow { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .pile use { transition: none; }
}

/* Request access form */
.wall-form { padding: 64px 20px; }
.card { position: relative; width: 100%; max-width: 480px; box-sizing: border-box; padding: 36px 36px 32px; border-radius: 16px; background: #FAF1DF; color: #3B2414; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.card-brand { margin: 0 0 18px; line-height: 0; }
.card-brand .logo { display: block; width: 84px; height: 84px; }
.card h1 { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.2; color: #3B2414; }
.card-lede { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: #5B4633; }
.card-problem { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #F7DDD3; color: #7A1F0E; font-size: 15px; line-height: 1.45; }
.card a { color: #7A4A1E; }
.card a:hover { color: #3B2414; }
.field { margin: 0 0 16px; }
.field label { display: block; margin: 0 0 6px; font-weight: 500; font-size: 15px; }
.optional { font-weight: 400; color: #6B5540; }
.field input, .field textarea { display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1.5px solid #B8A27A; border-radius: 12px; background: #FFFAF0; color: #2B1A0E; font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #5E9A35; outline-offset: 1px; border-color: #5B3A21; }
.field input[aria-invalid="true"] { border-color: #A8321A; }
.field-error { margin: 6px 0 0; font-size: 14px; color: #8F2A14; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.card .cta { border: 0; cursor: pointer; background: #5B3A21; box-shadow: none; }
.card .cta, .card a.cta, .card a.cta:hover { color: #FAF1DF; }
.card .cta:hover { background: #47301C; }
