:root{--forest:#17251f;--forest-2:#253a31;--sage:#52665a;--gold:#c5a76d;--gold-soft:#ead5a8;--ivory:#f3eddf;--ink:#27312d;--line:rgba(211,183,128,.42);--glass:rgba(243,237,223,.92)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--forest);color:var(--ivory);font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}button,input{font:inherit}.gateway-body{overflow:hidden}.gateway-skip{position:fixed;left:1rem;top:-5rem;z-index:100;background:var(--ivory);color:var(--ink);padding:.7rem 1rem}.gateway-skip:focus{top:1rem}.gateway-nav{position:fixed;z-index:20;top:0;left:0;right:0;height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(1.25rem,4vw,4.5rem);border-bottom:1px solid rgba(234,213,168,.16);background:linear-gradient(180deg,rgba(12,24,19,.72),transparent)}.gateway-brand{display:flex;align-items:center;gap:.9rem;color:var(--ivory);text-decoration:none;font-family:"Noto Serif TC","Songti TC",serif;letter-spacing:.16em}.gateway-brand small{display:block;font-family:serif;font-size:.48rem;letter-spacing:.2em;color:rgba(243,237,223,.55)}.gateway-seal{width:42px;height:42px;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold-soft);transform:rotate(45deg)}.gateway-seal::first-letter{transform:rotate(-45deg)}.gateway-return{color:rgba(243,237,223,.82);text-decoration:none;font-size:.84rem;letter-spacing:.12em;padding:.55rem 0;border-bottom:1px solid var(--gold)}.gateway-return span{opacity:.48;margin-right:.5rem}
.gateway{position:relative;width:100%;height:100svh;min-height:640px;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,#1b2b24 0%,#31483d 53%,#1c2b25 100%)}.gateway::before{content:"";position:absolute;inset:0;z-index:-4;background:radial-gradient(circle at 50% 31%,rgba(225,198,137,.19),transparent 18%),radial-gradient(ellipse at 50% 100%,rgba(139,164,145,.18),transparent 48%),linear-gradient(110deg,rgba(8,17,14,.58),transparent 37%,transparent 64%,rgba(8,17,14,.58))}.gateway-atmosphere{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.gateway-atmosphere::before{content:"";position:absolute;left:-10%;right:-10%;bottom:5%;height:29%;background:rgba(225,231,218,.11);filter:blur(50px);animation:mist-drift 16s ease-in-out infinite alternate}.gateway-atmosphere i{position:absolute;width:28vw;height:60vh;top:-18%;background:linear-gradient(150deg,rgba(235,220,178,.09),transparent 70%);filter:blur(16px);transform:rotate(-13deg);animation:light-shift 12s ease-in-out infinite alternate}.gateway-atmosphere i:nth-child(1){left:18%}.gateway-atmosphere i:nth-child(2){left:46%;animation-delay:-4s}.gateway-atmosphere i:nth-child(3){right:3%;animation-delay:-8s}.gateway-courtyard{position:absolute;inset:0;z-index:-1}.gateway-moon{position:absolute;width:min(30vw,470px);aspect-ratio:1;border-radius:50%;left:50%;top:8%;transform:translateX(-50%);background:radial-gradient(circle,rgba(238,216,169,.35),rgba(196,167,110,.08) 50%,transparent 70%);filter:blur(2px)}.gateway-eaves{position:absolute;width:min(1000px,76vw);height:126px;left:50%;top:15%;transform:translateX(-50%);background:linear-gradient(180deg,#14201c,#0f1916);clip-path:polygon(7% 47%,0 71%,41% 66%,50% 9%,59% 66%,100% 71%,93% 47%,65% 42%,50% 0,35% 42%);filter:drop-shadow(0 11px 3px rgba(3,8,7,.48))}.gateway-eaves-back{width:min(1180px,88vw);top:10%;opacity:.58}.gateway-building{position:absolute;width:min(720px,60vw);height:58%;left:50%;bottom:10%;transform:translateX(-50%);background:linear-gradient(90deg,#24251f,#51432f 12%,#2d332b 33%,#34392f 67%,#51432f 88%,#24251f);border-top:8px solid #8e754d;box-shadow:0 18px 60px rgba(2,9,6,.62)}.gateway-pillar{position:absolute;top:0;bottom:-4%;width:20px;background:linear-gradient(90deg,#4e3325,#936845,#4b3022);box-shadow:0 8px 20px #111}.gateway-pillar.left{left:10%}.gateway-pillar.right{right:10%}.gateway-door{position:absolute;top:9%;bottom:0;width:40%;background:repeating-linear-gradient(90deg,#3c2a20 0,#3c2a20 16px,#684932 17px,#4c3426 22px);border:1px solid #927347;box-shadow:inset 0 0 38px rgba(0,0,0,.48);display:grid;place-items:center;transition:transform .9s cubic-bezier(.76,0,.24,1)}.gateway-door.left{left:10%;transform-origin:left center}.gateway-door.right{right:10%;transform-origin:right center}.gateway-door b{font:400 clamp(2rem,4vw,4.2rem) "Noto Serif TC","Songti TC",serif;color:rgba(232,207,156,.66);text-shadow:0 2px 7px #1b130e}.gateway-light{position:absolute;top:12%;bottom:0;left:50%;width:3%;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#f3d796,transparent);filter:blur(4px);opacity:.42;transition:width .9s ease,opacity .8s}.gateway-stairs{position:absolute;left:17%;right:17%;bottom:0;height:16%;background:repeating-linear-gradient(180deg,#53645c 0,#53645c 9px,#314038 10px,#314038 21px);clip-path:polygon(13% 0,87% 0,100% 100%,0 100%);box-shadow:0 -14px 30px rgba(10,20,16,.55)}.gateway-water{position:absolute;bottom:0;width:22%;height:18%;background:repeating-radial-gradient(ellipse at center,#607c70 0,#31493e 3px,#20362d 8px);opacity:.42}.gateway-water.left{left:0;clip-path:polygon(0 30%,100% 0,85% 100%,0 100%)}.gateway-water.right{right:0;clip-path:polygon(0 0,100% 30%,100% 100%,15% 100%)}
.gateway-intro{position:absolute;z-index:6;left:50%;top:47%;transform:translate(-50%,-50%);text-align:center;width:min(92vw,760px);transition:opacity .55s ease,transform .65s ease,visibility .65s}.gateway-kicker{margin:0;color:var(--gold);font-size:.72rem;letter-spacing:.5em}.gateway-intro h1{margin:.5rem 0 1rem;font:500 clamp(3.5rem,7vw,7rem)/1.2 "Noto Serif TC","Songti TC",serif;letter-spacing:.16em;text-shadow:0 7px 28px rgba(0,0,0,.42)}.gateway-intro>p:not(.gateway-kicker){font-family:"Noto Serif TC","Songti TC",serif;letter-spacing:.22em;color:rgba(243,237,223,.82);font-size:clamp(.88rem,1.3vw,1.1rem)}.gateway-enter{margin-top:2rem;min-width:190px;height:58px;border:1px solid rgba(226,197,139,.65);background:rgba(15,27,22,.62);color:var(--ivory);letter-spacing:.2em;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:1.2rem;backdrop-filter:blur(8px);transition:background .3s,border-color .3s,transform .3s}.gateway-enter:hover{background:rgba(197,167,109,.2);border-color:var(--gold-soft);transform:translateY(-2px)}.gateway-enter i{font:normal 1rem serif;color:var(--gold);border-left:1px solid var(--line);padding-left:1rem}
.gateway-panel{position:absolute;z-index:8;top:50%;right:clamp(2rem,8vw,10rem);width:min(520px,calc(100vw - 3rem));max-height:calc(100svh - 128px);overflow:auto;transform:translateY(-45%);opacity:0;visibility:hidden;color:var(--ink);background:linear-gradient(145deg,rgba(250,246,237,.94),rgba(225,218,200,.88));border:1px solid rgba(225,192,128,.58);border-radius:24px;padding:clamp(1.5rem,3vw,2.5rem);box-shadow:0 35px 90px rgba(3,11,8,.45),inset 0 1px rgba(255,255,255,.72);backdrop-filter:blur(22px);transition:opacity .65s ease .22s,transform .8s cubic-bezier(.22,1,.36,1) .18s,visibility .8s}.gateway-panel::before{content:"";position:absolute;inset:8px;border:1px solid rgba(154,121,67,.18);border-radius:18px;pointer-events:none}.panel-heading{text-align:center;margin-bottom:1.3rem}.panel-heading p{margin:0;color:#927546;font-size:.66rem;letter-spacing:.35em}.panel-heading h2{margin:.25rem 0;font:500 clamp(1.7rem,2.5vw,2.25rem) "Noto Serif TC","Songti TC",serif;letter-spacing:.12em}.panel-heading span{font-size:.85rem;color:#68736c}.gateway-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid rgba(66,75,69,.16);margin-bottom:1.3rem}.gateway-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:.7rem .2rem;color:#6e756f;font-size:.76rem;cursor:pointer;white-space:nowrap}.gateway-tabs button[aria-selected=true]{color:#6f5227;border-color:#b79152}.gateway-tab-panel form{display:flex;flex-direction:column;gap:.9rem}.gateway-field{display:block}.gateway-field>span:first-child{display:flex;justify-content:space-between;align-items:end;margin-bottom:.35rem}.gateway-field b{font-size:.88rem;font-weight:600;letter-spacing:.08em}.gateway-field small{font-size:.69rem;color:#7b817d}.gateway-field input{width:100%;height:50px;border:1px solid rgba(53,67,59,.2);border-radius:10px;background:rgba(255,253,247,.7);padding:0 .9rem;outline:0;transition:border-color .2s,box-shadow .2s}.gateway-field input:focus{border-color:#a98a52;box-shadow:0 0 0 3px rgba(169,138,82,.12)}.password-wrap{display:block!important;position:relative}.password-wrap button{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#7d6845;font-size:.72rem;cursor:pointer;padding:.5rem}.password-wrap input{padding-right:4rem}.gateway-submit{height:51px;border:0;border-radius:10px;background:linear-gradient(100deg,#9d7a43,#c3a466);color:#fffdf7;letter-spacing:.12em;cursor:pointer;box-shadow:0 10px 24px rgba(115,83,37,.2);transition:transform .2s,box-shadow .2s}.gateway-submit:hover{transform:translateY(-1px);box-shadow:0 13px 30px rgba(115,83,37,.28)}.gateway-submit i{font-style:normal;margin-left:.7rem}.gateway-links{display:flex;justify-content:space-between;margin-top:1rem}.gateway-links a,.subtle-action{color:#715a34;font-size:.74rem;text-decoration:none;border-bottom:1px solid rgba(113,90,52,.25)}.gateway-privacy{text-align:center;margin:1.4rem 0 0;color:#7f867f;font-size:.64rem}.panel-copy{font-size:.8rem;color:#69736d;line-height:1.7;margin:0 0 .3rem}.gateway-notice{position:relative;margin:-.3rem 0 .9rem;padding:.7rem .9rem;border-radius:9px;font-size:.78rem;text-align:center}.gateway-notice.error{background:#eee0d7;color:#814d3e}.gateway-notice.success{background:#dfe9df;color:#42604d}.dev-otp{display:flex;align-items:center;justify-content:space-between;background:#e4ecdf;border:1px dashed #758c70;padding:.65rem .8rem;border-radius:9px}.dev-otp small{color:#526653}.dev-otp strong{font:600 1.25rem monospace;letter-spacing:.18em}.otp-field input{font-size:1.35rem;letter-spacing:.35em;text-align:center}.subtle-action{display:table;margin:1rem auto 0}.qr-panel{text-align:center;padding:.5rem 1rem}.qr-panel h3{font:500 1.05rem "Noto Serif TC","Songti TC",serif}.qr-panel p{font-size:.78rem;line-height:1.7;color:#6a756e}.qr-symbol{width:104px;height:104px;margin:0 auto 1rem;border:2px solid #80663d;padding:9px;display:grid;grid-template-columns:1fr 1fr;position:relative;background:repeating-conic-gradient(#52635a 0 25%,transparent 0 50%) 50%/16px 16px}.qr-symbol span{border:5px double #4a5b52;background:#eee8da;width:27px;height:27px}.qr-symbol span:nth-child(2){justify-self:end}.qr-symbol span:nth-child(3){align-self:end}.qr-symbol i{position:absolute;right:11px;bottom:11px;width:28px;height:28px;background:#b69255;color:#fff;display:grid;place-items:center;font:normal .75rem serif}.qr-status{display:flex;align-items:center;gap:.7rem;margin:1rem auto 0;padding:.7rem 1rem;width:max-content;max-width:100%;background:rgba(60,81,70,.07);text-align:left;font-size:.74rem}.qr-status>i{width:8px;height:8px;border-radius:50%;background:#b5945c}.qr-status small{color:#7a817c}
.gateway.is-opening .gateway-door.left,.gateway.is-open .gateway-door.left{transform:perspective(700px) rotateY(-72deg)}.gateway.is-opening .gateway-door.right,.gateway.is-open .gateway-door.right{transform:perspective(700px) rotateY(72deg)}.gateway.is-opening .gateway-light,.gateway.is-open .gateway-light{width:82%;opacity:.76}.gateway.is-opening .gateway-intro,.gateway.is-open .gateway-intro{opacity:0;visibility:hidden;transform:translate(-50%,-54%)}.gateway.is-open .gateway-panel{opacity:1;visibility:visible;transform:translateY(-50%)}.gateway.is-open::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,18,14,.24),rgba(9,18,14,.05) 48%,rgba(9,18,14,.23));z-index:5;pointer-events:none}
.welcome-return{height:100svh;min-height:560px;background:#182720;position:relative;overflow:hidden;display:grid;place-items:center}.welcome-doors{position:absolute;inset:0;display:flex}.welcome-doors>div{width:50%;height:100%;background:repeating-linear-gradient(90deg,#28352e 0,#28352e 32px,#33443a 33px,#243129 39px);border-color:#9e7c47;transition:transform 1.25s cubic-bezier(.76,0,.24,1) .25s;z-index:2}.welcome-doors .left{border-right:2px solid #9e7c47;transform-origin:left}.welcome-doors .right{border-left:2px solid #9e7c47;transform-origin:right}.welcome-doors>span{position:absolute;inset:0;background:radial-gradient(circle,#efd89d 0,rgba(200,167,102,.46) 25%,#31483d 70%)}.welcome-return.is-revealed .welcome-doors .left{transform:perspective(1000px) rotateY(-82deg)}.welcome-return.is-revealed .welcome-doors .right{transform:perspective(1000px) rotateY(82deg)}.welcome-copy{position:relative;z-index:3;text-align:center;opacity:0;transform:translateY(16px);transition:opacity .75s ease .55s,transform .75s ease .55s}.welcome-return.is-revealed .welcome-copy{opacity:1;transform:none}.welcome-copy p{color:var(--gold-soft);font-size:.68rem;letter-spacing:.4em}.welcome-copy h1{font:500 clamp(2.7rem,6vw,5rem) "Noto Serif TC","Songti TC",serif;letter-spacing:.14em;margin:.5rem}.welcome-copy span{font-family:"Noto Serif TC","Songti TC",serif;color:rgba(255,253,246,.82);letter-spacing:.1em}.noscript-link{position:absolute;z-index:5;bottom:2rem}.noscript-link a{color:white}
@keyframes mist-drift{to{transform:translateX(9%);opacity:.58}}@keyframes light-shift{to{transform:translateX(5%) rotate(-9deg);opacity:.55}}
@media(max-width:900px){.gateway-nav{height:72px}.gateway-building{width:76vw}.gateway-eaves{width:94vw}.gateway-panel{right:50%;transform:translate(50%,-45%)}.gateway.is-open .gateway-panel{transform:translate(50%,-50%)}}
@media(max-width:600px){.gateway-body{overflow:hidden}.gateway{min-height:600px}.gateway-nav{height:68px;padding:0 1rem}.gateway-brand{font-size:.92rem}.gateway-brand small{display:none}.gateway-seal{width:34px;height:34px}.gateway-return{font-size:.75rem}.gateway-return span{display:none}.gateway-eaves{top:18%;height:76px}.gateway-eaves-back{top:14%}.gateway-building{width:88vw;height:53%;bottom:8%}.gateway-stairs{left:3%;right:3%;height:14%}.gateway-water{display:none}.gateway-intro{top:45%;padding:0 1rem}.gateway-intro h1{font-size:clamp(2.8rem,14vw,4.3rem);letter-spacing:.12em}.gateway-intro>p:not(.gateway-kicker){font-size:.83rem;letter-spacing:.09em}.gateway-enter{margin-top:1.4rem;width:190px;height:54px}.gateway-panel{position:absolute;left:0;right:0;top:auto;bottom:0;width:100%;max-height:calc(100svh - 66px);border-radius:24px 24px 0 0;padding:1.5rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .72s cubic-bezier(.22,1,.36,1),visibility .72s;opacity:1}.gateway.is-open .gateway-panel{transform:none}.gateway-panel::before{inset:7px;border-radius:18px 18px 0 0}.panel-heading{margin-bottom:.8rem}.panel-heading h2{font-size:1.65rem}.gateway-tabs{overflow-x:auto;display:flex;scrollbar-width:none;margin-bottom:1rem}.gateway-tabs::-webkit-scrollbar{display:none}.gateway-tabs button{min-width:88px;flex:1}.gateway-field input{height:48px}.gateway-submit{height:49px}.gateway-privacy{margin-top:1rem}.gateway-links{gap:1rem}.gateway-links a{text-align:center}.qr-symbol{width:88px;height:88px}.qr-panel{padding:0}.gateway.is-open::after{background:rgba(7,15,12,.32)}}
@media(max-height:760px) and (min-width:601px){.gateway-panel{top:52%;max-height:calc(100svh - 100px);padding:1.25rem 1.6rem}.panel-heading{margin-bottom:.8rem}.panel-heading h2{font-size:1.65rem}.gateway-field input{height:44px}.gateway-submit{height:45px}.gateway-tab-panel form{gap:.65rem}.gateway-privacy{margin-top:.8rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.gateway:not(.is-open) .gateway-intro{display:none}.gateway:not(.is-open) .gateway-panel{opacity:1;visibility:visible;transform:translateY(-50%)}.welcome-doors{display:none}.welcome-copy{opacity:1;transform:none}}

/* Login redesign: quiet architectural brand panel beside the working auth form. */
.gateway-body{background:#17251f;overflow:auto}
.gateway{height:auto;min-height:100svh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);align-items:stretch;background:linear-gradient(125deg,#263b32,#17251f 58%);overflow:hidden}
.gateway-atmosphere,.gateway-courtyard{display:none}
.gateway-intro{position:relative;inset:auto;transform:none;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(7rem,12vw,11rem) clamp(2rem,8vw,8rem);width:auto;text-align:left;background:linear-gradient(135deg,rgba(46,68,57,.72),rgba(20,34,27,.28)),radial-gradient(circle at 30% 35%,rgba(212,183,119,.2),transparent 34%)}
.gateway-intro h1{font-size:clamp(2.6rem,5vw,5.3rem);margin:.5rem 0 .9rem;text-shadow:0 5px 20px rgba(0,0,0,.28)}
.gateway-intro>p:not(.gateway-kicker){font-size:clamp(.9rem,1.4vw,1.15rem);letter-spacing:.16em}
.gateway-panel,.gateway.is-open .gateway-panel{position:relative;inset:auto;z-index:2;width:auto;max-height:none;min-height:100svh;overflow:auto;transform:none;opacity:1;visibility:visible;border:0;border-left:1px solid rgba(226,196,133,.28);border-radius:0;padding:clamp(6rem,11vw,10rem) clamp(2rem,7vw,7rem);display:flex;flex-direction:column;justify-content:center;background:rgba(20,37,29,.9);box-shadow:-20px 0 70px rgba(5,12,9,.22);backdrop-filter:blur(18px)}
.gateway-panel::before{inset:clamp(1rem,3vw,2.5rem);border:1px solid rgba(220,186,119,.2);border-radius:4px}
.panel-heading{text-align:left;margin-bottom:2rem}.panel-heading p{color:#d8b978}.panel-heading h2{color:#f3eddf;font-size:clamp(1.7rem,2.8vw,2.5rem)}.panel-heading span{color:rgba(243,237,223,.72)}
.gateway-tabs{border-color:rgba(229,202,151,.2)}.gateway-tabs button{color:rgba(243,237,223,.62)}.gateway-tabs button[aria-selected=true]{color:#f0d29a;border-color:#c5a76d}
.gateway-field b{color:#f3eddf}.gateway-field input{background:rgba(7,18,13,.48);border-color:rgba(218,187,123,.35);color:#fffdf7;border-radius:4px}.gateway-field input::placeholder{color:rgba(255,255,255,.5)}.gateway-field input:focus{border-color:#d1ae68;box-shadow:0 0 0 3px rgba(209,174,104,.12)}
.password-wrap button{color:#e4c481}.gateway-submit{border:1px solid #c9a766;border-radius:4px;background:#263d31;color:#fffdf7;box-shadow:0 8px 18px rgba(5,12,9,.22)}.gateway-submit:hover{background:#31503f;box-shadow:0 10px 22px rgba(5,12,9,.3)}
.gateway-links a,.subtle-action{color:#e2c481;border-color:rgba(226,196,129,.35)}.gateway-privacy{color:rgba(243,237,223,.55)}
.gateway-seal{font-size:0;background:url('../images/brand-emblem.webp') center/cover no-repeat;transform:none;border:0;filter:drop-shadow(0 3px 8px rgba(0,0,0,.28))}.gateway-seal::first-letter{transform:none}
.register-gateway{display:flex;align-items:center;justify-content:center;min-height:100svh;height:auto;padding:6rem 1rem 3rem;background:linear-gradient(rgba(25,39,31,.2),rgba(25,39,31,.42)),url('../images/general-garden.png') center/cover no-repeat}.register-gateway .gateway-intro{display:none}.register-panel{width:min(520px,100%)!important;min-height:0!important}.register-copy{display:block;margin-top:.45rem;color:rgba(255,248,232,.72);font-size:.78rem}.register-panel form{display:flex;flex-direction:column;gap:.9rem}.register-back{justify-content:center;margin-top:1.1rem;gap:1.2rem}.register-back a{color:#e2c487}
@media(max-width:600px){.register-gateway{align-items:flex-start;padding:5.5rem 1rem 1.5rem}.register-panel{padding:2rem 1.1rem 1.5rem!important}.register-copy{font-size:.72rem}.register-back{flex-direction:column;align-items:center;gap:.45rem}}
/* Immersive memorial garden login: one centered glass card over the existing local artwork. */
.gateway{display:flex;align-items:center;justify-content:center;min-height:100svh;height:auto;padding:clamp(6rem,10vh,8rem) 1rem 3rem;background:linear-gradient(rgba(25,39,31,.2),rgba(25,39,31,.42)),url('../images/general-garden.png') center/cover no-repeat}
.gateway-intro{display:none}
.gateway-panel,.gateway.is-open .gateway-panel{position:relative;inset:auto;width:min(520px,100%);min-height:0;max-height:none;padding:clamp(2rem,4vw,3rem);display:block;transform:none;opacity:1;visibility:visible;border:1px solid rgba(221,190,126,.52);border-radius:16px;background:rgba(23,38,30,.74);box-shadow:0 28px 80px rgba(10,18,13,.36),inset 0 1px rgba(255,255,255,.14);backdrop-filter:blur(20px);animation:login-card-in .7s ease both}
.gateway-panel::before{inset:10px;border:1px solid rgba(225,195,135,.2);border-radius:11px}
.gateway-panel::after{content:'✦';display:block;position:absolute;top:1.15rem;left:50%;transform:translateX(-50%);color:#d8b978;font-size:.9rem;opacity:.9}
.panel-heading{text-align:center;margin:1rem 0 1.5rem}.panel-heading p{color:#d9bb7e;letter-spacing:.32em}.panel-heading h2{margin:.35rem 0;color:#fffaf0;font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:.12em}.panel-heading span{color:rgba(255,248,232,.8);font-size:.82rem}
.gateway-tabs{margin-bottom:1.35rem;border-bottom-color:rgba(225,194,132,.28)}.gateway-tabs button{color:rgba(231,211,170,.7);font-size:.78rem;transition:color .25s,border-color .25s}.gateway-tabs button[aria-selected=true]{color:#f2d49a;border-bottom-color:#d1ad66}
.gateway-field input{height:52px;background:rgba(9,20,15,.5);border-color:rgba(220,188,125,.4);color:#fffdf6;border-radius:6px}.gateway-field input::placeholder{color:rgba(255,248,232,.5)}
.gateway-submit{height:54px;border:1px solid #d0ae6a;border-radius:6px;background:#263f32;color:#fffdf6;box-shadow:0 8px 20px rgba(6,14,10,.25);transition:background .25s,box-shadow .25s}.gateway-submit:hover{background:#345440;box-shadow:0 10px 24px rgba(6,14,10,.32)}
.gateway-links{justify-content:center;gap:1.5rem}.gateway-links a{color:#e2c487}.gateway-privacy{color:rgba(255,248,232,.55)}
@keyframes login-card-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:600px){.gateway{align-items:flex-start;padding:5.5rem 1rem 1.5rem;min-height:100svh;background-position:center}.gateway-panel,.gateway.is-open .gateway-panel{width:100%;padding:2rem 1.1rem 1.5rem;border-radius:14px}.panel-heading{margin-top:.65rem}.gateway-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.gateway-tabs button{min-width:0;padding:.72rem .2rem}.gateway-links{flex-direction:column;align-items:center;gap:.65rem}.gateway-field input,.gateway-submit{height:52px}}
@media(prefers-reduced-motion:reduce){.gateway-panel{animation:none}}
/* Final login composition */
.gateway-intro{background:linear-gradient(90deg,rgba(17,31,24,.3),rgba(17,31,24,.78)),url('../images/halls-main-new.png') center/cover no-repeat;justify-content:flex-end;padding:clamp(7rem,10vw,10rem) clamp(2rem,8vw,8rem);min-height:100svh}.gateway-intro>p:not(.gateway-kicker){margin:0;color:#fffdf5;font:500 clamp(1.25rem,2.5vw,2.1rem)/1.35 "Noto Serif TC",serif;letter-spacing:.16em;text-shadow:0 2px 12px rgba(0,0,0,.55)}.gateway-intro small{display:block;margin-top:.65rem;color:rgba(255,250,235,.86);font:400 clamp(.75rem,1.1vw,.95rem)/1.8 "Noto Serif TC",serif;letter-spacing:.1em;text-shadow:0 2px 8px rgba(0,0,0,.55)}.gateway-panel,.gateway.is-open .gateway-panel{padding:clamp(5rem,9vw,8rem) clamp(2rem,7vw,7rem)}.panel-heading h2{font-size:clamp(1.8rem,3vw,2.55rem)}.gateway-tabs button{color:rgba(255,249,235,.82);font-size:.78rem}.gateway-tabs button[aria-selected=true]{color:#f2d394}
@media(max-width:900px){.gateway{display:flex;flex-direction:column}.gateway-intro{min-height:150px;height:150px;padding:5.4rem 1.25rem 1rem;justify-content:flex-end;align-items:flex-start;text-align:left;background-position:center 48%}.gateway-intro>p:not(.gateway-kicker){font-size:1.1rem}.gateway-intro small{font-size:.72rem;margin-top:.25rem}.gateway-panel,.gateway.is-open .gateway-panel{padding:1.7rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom));border-radius:0;min-height:calc(100svh - 150px);justify-content:flex-start}.panel-heading{text-align:left;margin-bottom:1rem}.panel-heading h2{font-size:1.75rem}.gateway-tabs button{min-width:0;font-size:.72rem;padding:.65rem .1rem}}
@media(max-width:900px){.gateway{grid-template-columns:1fr;min-height:100svh}.gateway-intro{min-height:230px;padding:6.5rem 1.5rem 2rem;align-items:center;text-align:center}.gateway-intro h1{font-size:clamp(2.3rem,11vw,3.6rem)}.gateway-panel,.gateway.is-open .gateway-panel{min-height:0;padding:2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));border-left:0;border-top:1px solid rgba(226,196,133,.28);border-radius:18px 18px 0 0}.gateway-panel::before{inset:7px;border-radius:12px 12px 0 0}.panel-heading{text-align:center;margin-bottom:1.2rem}}
