/* Welcome / sign-in page. Reuses the shared tokens from base.css and pages.css. */
.navpill { color: #fff !important; font-weight: 900; } .navpill.blue { background: var(--blue); } .navpill.green { background: #139a7b; }
.nav a.navpill:hover { filter: brightness(1.08); background: inherit; }
.welcome { position: relative; min-height: calc(100vh - 62px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #bfe0ff 0, #dcecff 32%, #fff3d6 72%, #fff8ec 100%); background-size: cover; background-position: center top; animation: w-in .4s ease both; }
.welcome.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 248, 236, .8)); }
@keyframes w-in { from { opacity: 0; } to { opacity: 1; } }

/* decorative layer (behind everything, never blocks clicks) */
.wdeco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wdeco .cloud { position: absolute; background: #fff; border-radius: 99px; opacity: .85; filter: blur(.3px); }
.wdeco .cloud::before, .wdeco .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.wdeco .c1 { width: 170px; height: 46px; left: 4%; top: 9%; animation: w-drift 38s linear infinite alternate; } .wdeco .c1::before { width: 70px; height: 70px; left: 22px; top: -34px; } .wdeco .c1::after { width: 52px; height: 52px; left: 86px; top: -22px; }
.wdeco .c2 { width: 210px; height: 54px; right: 6%; top: 16%; animation: w-drift 46s linear infinite alternate-reverse; } .wdeco .c2::before { width: 84px; height: 84px; left: 30px; top: -42px; } .wdeco .c2::after { width: 62px; height: 62px; left: 110px; top: -26px; }
.wdeco .c3 { width: 150px; height: 40px; left: 38%; bottom: 14%; opacity: .6; animation: w-drift 52s linear infinite alternate; } .wdeco .c3::before { width: 58px; height: 58px; left: 18px; top: -28px; } .wdeco .c3::after { width: 44px; height: 44px; left: 74px; top: -18px; }
.wdeco .st { position: absolute; color: #ffc533; text-shadow: 0 0 8px rgba(255, 197, 51, .8); animation: w-twinkle 3.6s ease-in-out infinite; }
.wdeco .s1 { left: 6%; top: 40%; font-size: 1.6rem; } .wdeco .s2 { left: 46%; top: 6%; font-size: 1.2rem; animation-delay: .6s; } .wdeco .s3 { right: 5%; top: 46%; font-size: 1.8rem; animation-delay: 1.2s; color: #ff8a78; } .wdeco .s4 { right: 30%; bottom: 10%; font-size: 1.4rem; animation-delay: 1.8s; } .wdeco .s5 { left: 3%; bottom: 8%; font-size: 1.1rem; animation-delay: 2.2s; color: #8b6cf0; } .wdeco .s6 { right: 14%; top: 5%; font-size: 1.3rem; animation-delay: 2.6s; color: #2fc9a1; }
.wdeco .sym { position: absolute; font-size: 2.2rem; opacity: .32; } .wdeco .y1 { left: 44%; top: 30%; } .wdeco .y2 { right: 2%; bottom: 30%; } .wdeco .y3 { left: 1%; top: 62%; } .wdeco .y4 { right: 44%; bottom: 4%; }
.wdeco .deco-img { position: absolute; right: 0; top: 0; width: min(46vw, 640px); opacity: .85; }
@keyframes w-drift { to { transform: translateX(60px); } } @keyframes w-twinkle { 50% { opacity: .35; transform: scale(.8); } }

.wmain { max-width: 1320px; padding-top: 28px; }
.whero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.wlogo { display: block; width: clamp(190px, 22vw, 260px); height: auto; margin: 0 0 8px; filter: drop-shadow(0 4px 6px rgba(38, 48, 77, .18)); }
.logo-h1 { margin: 0; }
.wtitle { font-family: var(--font-display, inherit); font-weight: 900; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.02; color: var(--navy, #1f2a4d); margin: 4px 0 10px; letter-spacing: .01em; text-shadow: 0 3px 0 rgba(255, 255, 255, .9); } .wtitle span { color: #e8590c; }
.wsub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; color: #3b4770; max-width: 34em; margin-bottom: 14px; }
.wperks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.wperks li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 99px; background: rgba(255, 255, 255, .85); font-weight: 900; color: var(--navy, #1f2a4d); box-shadow: var(--shadow-s); }
.pi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; } .p1 { background: #cfe0ff; } .p2 { background: #ffe9a8; } .p3 { background: #c9f5e8; }

/* authentication panel */
.authpanel { background: rgba(255, 253, 247, .97); border-radius: 28px; padding: 18px 22px 22px; box-shadow: 0 14px 40px rgba(38, 48, 77, .18); max-width: 580px; }
.atabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 5px; border-radius: 99px; background: #efe9db; margin-bottom: 14px; }
.atab { border: 0; border-radius: 99px; padding: 10px 6px; min-height: 46px; font: inherit; font-weight: 900; font-size: .98rem; color: #4a4a5e; background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.atab:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .7); }
.atab.t-guest.on { background: var(--yellow); color: #4a3500; box-shadow: 0 3px 0 var(--yellow-d); } .atab.t-in.on { background: var(--blue-d); color: #fff; box-shadow: 0 3px 0 #1c43a0; } .atab.t-up.on { background: #139a7b; color: #fff; box-shadow: 0 3px 0 #0c6f59; }
.atab:focus-visible { outline: 4px solid var(--purple); outline-offset: 2px; }
.apane h2 { font-size: 1.5rem; color: var(--navy, #1f2a4d); margin-bottom: 6px; } .apane > p { font-weight: 700; color: #3b4770; }
.apane .field { margin-bottom: 12px; } .apane label { font-weight: 900; display: block; margin-bottom: 4px; }
.arow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.btn.wide { width: 100%; min-height: 58px; margin-top: 4px; font-family: var(--font-display, inherit); letter-spacing: .04em; transition: transform .15s, filter .15s; } .btn.wide:hover { transform: translateY(-2px); }
.anote { text-align: center; margin: 10px 0 0 !important; color: var(--ink-2) !important; font-weight: 700; } .anote.strong { font-weight: 900; color: #0f7d64 !important; font-size: 1.1rem; margin-top: 12px !important; }
.alinks { margin: 12px 0 0; text-align: center; font-weight: 700; color: #3b4770; } .linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 900; color: var(--blue-d); text-decoration: underline; cursor: pointer; min-height: 32px; }
.pwrow { position: relative; } .pwrow input { padding-right: 56px; } .pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 1.3rem; cursor: pointer; } .pwtoggle:hover { background: var(--blue-l); }
.hint.good { color: #0f7d64; font-weight: 800; }
.aerr { background: #ffe3df; color: #8f2418; border: 2px solid #ffb4aa; border-radius: 14px; padding: 8px 12px; font-weight: 800; margin: 0 0 12px; } .aok { background: var(--mint-l); border-radius: 12px; padding: 8px 12px; font-weight: 800; margin-top: 10px; }
.gwrap { margin-top: 12px; display: grid; justify-items: center; gap: 4px; }
.spin { width: 1.1em; height: 1.1em; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); border-top-color: currentColor; animation: w-spin .7s linear infinite; display: inline-block; } .btn.yellow .spin { border-color: rgba(74, 53, 0, .25); border-top-color: #4a3500; }
@keyframes w-spin { to { transform: rotate(360deg); } }

/* artwork showcase: big front card, two behind, two small, Book at the side */
.wright { position: relative; min-height: 610px; border-radius: 36px; background-size: cover; background-position: center; }
.showcase { position: relative; width: 100%; height: 100%; min-height: 610px; }
.sc { position: absolute !important; margin: 0; transition: transform .25s var(--ease-pop, ease), z-index 0s; will-change: transform; }
.sc:hover { z-index: 9 !important; } .sc .cardart-btn:hover, .sc .cardart-btn:focus-visible { transform: scale(1.08); }
.sc figcaption { display: none; }
.sc-main { width: 40%; left: 30%; top: 2%; z-index: 5; animation: w-fl 6s ease-in-out infinite; }
.sc-main img { box-shadow: 0 18px 36px rgba(38, 48, 77, .4); }
.sc-l { width: 34%; left: 2%; top: 14%; z-index: 3; transform: rotate(-11deg); animation: w-fl-l 7s ease-in-out infinite .5s; }
.sc-r { width: 34%; right: 2%; top: 12%; z-index: 3; transform: rotate(10deg); animation: w-fl-r 6.5s ease-in-out infinite 1s; }
.sc-l2 { width: 22%; left: 8%; top: 62%; z-index: 4; transform: rotate(-6deg); animation: w-fl-l 7.5s ease-in-out infinite 1.4s; }
.sc-r2 { width: 22%; right: 6%; top: 64%; z-index: 4; transform: rotate(8deg); animation: w-fl-r 7s ease-in-out infinite .2s; }
@keyframes w-fl { 50% { transform: translateY(-9px); } } @keyframes w-fl-l { 50% { transform: translateY(-7px) rotate(-8deg); } } @keyframes w-fl-r { 50% { transform: translateY(-7px) rotate(13deg); } }
.wbook { position: absolute; left: 38%; bottom: -2%; z-index: 6; display: grid; justify-items: center; animation: w-fl 3.6s ease-in-out infinite; }
.wbook svg, .wbook .art-img { max-width: 180px; height: auto; filter: drop-shadow(0 8px 10px rgba(38, 48, 77, .3)); }
.wbubble { position: relative; background: #fff; border: 3px solid #3f7cff; border-radius: 18px; padding: 8px 14px; font-weight: 900; color: var(--navy, #1f2a4d); max-width: 230px; text-align: center; margin-bottom: 8px; min-height: 3.2em; display: grid; place-items: center; box-shadow: var(--shadow-s); }
.wbubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 16px; height: 16px; background: #fff; border-right: 3px solid #3f7cff; border-bottom: 3px solid #3f7cff; transform: translateX(-50%) rotate(45deg); }

/* features */
.wfeat { margin-top: 38px; text-align: center; } .wfeat h2 { color: var(--navy, #1f2a4d); margin-bottom: 16px; text-shadow: 0 2px 0 rgba(255, 255, 255, .9); }
.wfgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.wf { border-radius: 24px; padding: 18px 20px 20px; background: #fff; box-shadow: var(--shadow); border-top: 8px solid var(--c); display: grid; justify-items: center; align-content: start; gap: 2px; } .wf h3 { color: var(--navy, #1f2a4d); font-size: 1.15rem; margin: 6px 0 4px; } .wf p { margin: 0; font-weight: 700; color: #3b4770; }
.wf1, .wf.f1 { --c: #3f7cff; } .wf.f2 { --c: #ffc533; } .wf.f3 { --c: #8b6cf0; }
.wfi { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--c) 22%, white); }

/* responsive */
@media (max-width: 1100px) { .whero { gap: 20px; } .wright, .showcase { min-height: 480px; } .atab { font-size: .9rem; } }
@media (max-width: 900px) {
  .whero { grid-template-columns: 1fr; } .wleft { order: 1; } .wright { order: 2; min-height: 440px; max-width: 560px; margin: 0 auto; width: 100%; } .showcase { min-height: 440px; }
  .authpanel { max-width: none; } .wfgrid { grid-template-columns: 1fr; } .wmain { padding-top: 14px; }
}
@media (max-width: 520px) {
  .atab { font-size: .8rem; padding: 8px 2px; } .arow2 { grid-template-columns: 1fr; } .authpanel { padding: 14px 14px 18px; border-radius: 22px; }
  .wright, .showcase { min-height: 380px; } .wbook svg, .wbook .art-img { max-width: 130px; } .wdeco .sym { display: none; }
}
@media (prefers-reduced-motion: reduce) { .welcome, .sc, .wbook, .wdeco .st, .wdeco .cloud { animation: none !important; } .atab, .btn.wide { transition: none; } }
html.reduce-motion .welcome, html.reduce-motion .sc, html.reduce-motion .wbook, html.reduce-motion .wdeco .st, html.reduce-motion .wdeco .cloud { animation: none !important; }
.wleft, .wright, .authpanel { min-width: 0; }
@media (max-width: 520px) { .atab { white-space: normal; line-height: 1.1; font-size: .78rem; } .atabs { gap: 4px; } }

.authpanel.pulse { animation: w-pulse 1.4s ease-out 1; }
@keyframes w-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 197, 51, .95), 0 14px 40px rgba(38, 48, 77, .18); } 100% { box-shadow: 0 0 0 26px rgba(255, 197, 51, 0), 0 14px 40px rgba(38, 48, 77, .18); } }
@media (prefers-reduced-motion: reduce) { .authpanel.pulse { animation: none; outline: 4px solid var(--yellow); } }
