/* Faithful animated lamp + sign-in + code-editor composition */
body.hb-auth.hb-animation-page{--lamp-color:#f5b85e;margin:0;min-height:100vh;background:#070a0c;color:#f7f7f2;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.hb-animation-page.auth-page{min-height:100vh;padding:0 0 24px;overflow:hidden;background:radial-gradient(ellipse at 29% 45%,color-mix(in srgb,var(--lamp-color) 13%,transparent),transparent 37%),linear-gradient(180deg,#090d10,#080b0d 60%,#050708)}
.hb-animation-page .auth-shell{width:min(1180px,calc(100% - 64px));min-height:560px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:7%;align-items:center;position:relative}
.anim-topbar{height:54px;display:flex;align-items:center;gap:12px;padding:0 30px;border-bottom:1px solid #ffffff12;background:#0b0f12;color:#e9ece8;font-size:12px;letter-spacing:.02em}
.anim-dot{width:8px;height:8px;border-radius:50%;background:var(--lamp-color);box-shadow:0 0 12px var(--lamp-color)}
.anim-topbar-tag{margin-left:auto;color:#657078;font-size:9px;letter-spacing:.16em}
.hb-animation-page .auth-showcase{min-height:510px;justify-content:center;padding:45px 0 25px 6%;position:relative}
.hb-animation-page .auth-showcase .brand{top:20px;left:6%;color:#f3f5f2;font-size:16px}
.hb-animation-page .auth-showcase .brand span{color:var(--lamp-color);transition:color 1s}
.hb-animation-page .auth-showcase h2{font-size:clamp(38px,4.7vw,60px);line-height:.98;letter-spacing:-.055em;max-width:470px;margin:0 0 16px}
.hb-animation-page .auth-showcase>p{max-width:400px;color:#9aa5a9;font-size:13px;line-height:1.7}
.hb-animation-page .auth-points{gap:10px;margin-top:20px}
.hb-animation-page .auth-point{font-size:11px;color:#b7c0c0}
.hb-animation-page .auth-point i{background:color-mix(in srgb,var(--lamp-color) 16%,transparent);color:var(--lamp-color)}
.hb-animation-page .auth-lamp{position:absolute;left:2%;bottom:0;width:380px;height:330px;pointer-events:none;z-index:0;opacity:1}
.hb-animation-page .lamp-base{position:absolute;left:42px;bottom:15px;width:138px;height:17px;border-radius:50%;background:linear-gradient(180deg,#b6b9b1,#424b4b 45%,#171e22);box-shadow:0 15px 35px #000}
.hb-animation-page .lamp-stem{position:absolute;left:105px;bottom:27px;width:11px;height:180px;border-radius:12px;background:linear-gradient(90deg,#303b40,#d4d8d1 42%,#626d6d 70%,#1a2226);transform:rotate(13deg);transform-origin:bottom;box-shadow:4px 0 9px #0008}
.hb-animation-page .lamp-joint{position:absolute;left:145px;bottom:195px;width:21px;height:21px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f3f4e9,#687477 55%,#1c2528);box-shadow:0 0 0 4px #263034}
.hb-animation-page .lamp-arm{position:absolute;left:151px;bottom:207px;width:133px;height:10px;border-radius:8px;background:linear-gradient(180deg,#e1e4d9,#667276 55%,#283237);transform:rotate(-34deg);transform-origin:left;box-shadow:0 4px 10px #0009}
.hb-animation-page .lamp-head{position:absolute;left:260px;bottom:252px;width:17px;height:17px;border-radius:50%;background:linear-gradient(135deg,#e6e7db,#515c5e);box-shadow:0 0 0 4px #273135}
.hb-animation-page .lamp-shade{position:absolute;left:263px;bottom:223px;width:112px;height:66px;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);border-radius:18px 18px 8px 8px;background:linear-gradient(100deg,#252e32,#b8bdb4 48%,#394448);transform:rotate(-12deg);filter:drop-shadow(0 12px 12px #000b)}
.hb-animation-page .lamp-shade:after{content:"";position:absolute;left:2px;right:2px;bottom:0;height:9px;border-radius:50%;background:var(--lamp-color);box-shadow:0 0 22px 8px var(--lamp-color);transition:background 1.2s,box-shadow 1.2s}
.hb-animation-page .lamp-beam{position:absolute;left:263px;bottom:0;width:420px;height:270px;clip-path:polygon(38% 0,63% 0,100% 100%,0 100%);background:linear-gradient(180deg,color-mix(in srgb,var(--lamp-color) 35%,transparent),color-mix(in srgb,var(--lamp-color) 3%,transparent));filter:blur(12px);transform:rotate(-10deg);transform-origin:50% 0;opacity:.9;transition:background 1.2s}
.hb-animation-page .lamp-glow{position:absolute;left:180px;bottom:0;width:420px;height:310px;background:radial-gradient(ellipse,color-mix(in srgb,var(--lamp-color) 17%,transparent),transparent 68%);filter:blur(25px);transition:background 1.2s}
.hb-animation-page .auth-card{position:relative;z-index:2;width:100%;box-sizing:border-box;padding:31px 29px;border:1px solid color-mix(in srgb,var(--lamp-color) 42%,#ffffff22);border-radius:13px;background:linear-gradient(145deg,#171e22f2,#0c1115f5);box-shadow:0 25px 90px #000b,0 0 45px color-mix(in srgb,var(--lamp-color) 10%,transparent);backdrop-filter:blur(16px);color:#f7f7f2;animation:cardReveal 1.1s .8s both;transition:border-color 1.2s,box-shadow 1.2s}
.hb-animation-page .auth-card .eyebrow{color:var(--lamp-color);letter-spacing:.2em}
.hb-animation-page .auth-card h1{font-size:32px;color:#f7f7f2}
.hb-animation-page .auth-field input{border-color:#ffffff24!important;background:#090e12!important}
.hb-animation-page .auth-actions .primary{background:var(--lamp-color)!important;color:#101416!important;box-shadow:0 5px 25px color-mix(in srgb,var(--lamp-color) 25%,transparent);transition:background 1.2s}
.hb-animation-page .auth-actions .secondary{border-color:#ffffff25!important;background:#ffffff08!important}
.hb-animation-page .password-toggle,.hb-animation-page .auth-foot a{color:var(--lamp-color)}
.hb-animation-page .password-meter span.on{background:var(--lamp-color)}
.hb-animation-page .code-console{width:min(1180px,calc(100% - 64px));margin:0 auto;border:1px solid #222c32;border-radius:9px;background:#0b1014;box-shadow:0 20px 60px #0008;overflow:hidden;position:relative;z-index:2}
.code-title{height:39px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid #202a30;color:#9ba8ac;font:10px ui-monospace,monospace}
.code-lights{display:flex;gap:5px}.code-lights i{width:7px;height:7px;border-radius:50%;background:#ed7066}.code-lights i:nth-child(2){background:#e8bd5a}.code-lights i:nth-child(3){background:#65c889}
.code-live{margin-left:auto;color:#78d69a;font-size:9px}
.code-console pre{margin:0;padding:13px 18px 15px;overflow:hidden;color:#d6e0df;font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}
.code-muted{color:#52616a}.code-purple{color:#c59cff}.code-string{color:#a6d995}.code-number{color:#f0bd79}.code-function{color:#70c9e8}
.code-status{height:28px;padding:0 14px;display:flex;align-items:center;gap:7px;border-top:1px solid #202a30;color:#74848a;font:9px ui-monospace,monospace}
.code-status>span{color:#79d69a}.code-status-right{margin-left:auto;color:#58676e}
@keyframes cardReveal{from{opacity:0;transform:translateY(18px) scale(.985);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@media(max-width:820px){.hb-animation-page.auth-page{padding-bottom:14px}.hb-animation-page .auth-shell{width:calc(100% - 32px);min-height:unset;grid-template-columns:1fr;gap:14px;padding:20px 0 24px}.hb-animation-page .auth-showcase{min-height:230px;padding:45px 0 10px 4%}.hb-animation-page .auth-showcase .brand{top:0;left:4%}.hb-animation-page .auth-showcase h2{font-size:37px;max-width:310px}.hb-animation-page .auth-showcase>p{max-width:300px;font-size:11px}.hb-animation-page .auth-points{display:none}.hb-animation-page .auth-lamp{left:auto;right:-12px;bottom:-5px;transform:scale(.57);transform-origin:bottom right;opacity:.68}.hb-animation-page .auth-card{max-width:440px;margin:0 auto;padding:23px 20px}.hb-animation-page .code-console{width:calc(100% - 32px)}.code-console pre{font-size:9px;line-height:1.55}.anim-topbar{padding:0 16px}.anim-topbar-tag{font-size:7px}}
@media(max-width:420px){.anim-topbar-tag{display:none}.hb-animation-page .auth-showcase{min-height:200px}.hb-animation-page .auth-showcase h2{font-size:32px}.hb-animation-page .auth-showcase>p{max-width:230px}.hb-animation-page .auth-lamp{transform:scale(.43)}.code-status-right{font-size:8px}}
@media(prefers-reduced-motion:reduce){.hb-animation-page .auth-card{animation:none}.hb-animation-page *{transition:none!important}}

/* Interactive physical lamp controls */
.hb-animation-page .scene-lamp{pointer-events:auto;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.hb-animation-page .scene-lamp.is-dragging{cursor:grabbing}
.hb-animation-page .lamp-switch{position:absolute;left:92px;bottom:3px;z-index:5;width:34px;height:34px;border:2px solid #aeb8b5;border-radius:50%;padding:0;background:radial-gradient(circle at 35% 30%,#fff,#778487 42%,#263237 75%);box-shadow:0 2px 8px #000b,inset 0 1px 2px #fff9;cursor:pointer;display:grid;place-items:center;touch-action:manipulation}
.hb-animation-page .lamp-switch span{width:9px;height:9px;border-radius:50%;background:var(--lamp-color);box-shadow:0 0 9px 3px var(--lamp-color);transition:background .3s,box-shadow .3s}
.hb-animation-page .lamp-switch:focus-visible{outline:3px solid var(--lamp-color);outline-offset:4px}
.hb-animation-page .scene-lamp:after{content:"DRAG DOWN · OFF / UP · ON";position:absolute;left:12px;bottom:-7px;color:#879398;font:8px ui-monospace,monospace;letter-spacing:.1em;white-space:nowrap}
.hb-animation-page.lamp-is-off .lamp-beam,.hb-animation-page.lamp-is-off .lamp-glow{opacity:0!important}
.hb-animation-page.lamp-is-off .lamp-shade:after{background:#3b4447!important;box-shadow:none!important}
.hb-animation-page.lamp-is-off .lamp-switch span{background:#657075!important;box-shadow:none!important}
.hb-animation-page.lamp-is-off .auth-card{border-color:#ffffff22;box-shadow:0 25px 90px #000b}
.hb-animation-page.lamp-is-off .anim-dot{background:#596367;box-shadow:none}
@media(max-width:820px){.hb-animation-page .scene-lamp:after{font-size:7px}.hb-animation-page .lamp-switch{width:42px;height:42px;left:86px;bottom:0}}

/* Responsive layout pass: wide desktop, tablet, portrait phones and short screens */
*,*::before,*::after{box-sizing:border-box}
.hb-animation-page.auth-page{width:100%;min-width:0;overflow-x:clip}
.hb-animation-page .auth-shell{width:min(1180px,calc(100% - clamp(24px,5vw,64px)));min-height:clamp(480px,68vw,560px);grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:clamp(24px,5vw,72px)}
.hb-animation-page .auth-showcase{min-width:0}
.hb-animation-page .auth-card{min-width:0;max-width:100%}
.hb-animation-page .auth-field input{min-width:0;max-width:100%}
.hb-animation-page .code-console{width:min(1180px,calc(100% - clamp(24px,5vw,64px)));min-width:0}
.hb-animation-page .code-console pre{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.hb-animation-page .scene-lamp{max-width:100%}
@media (max-width:1050px) and (min-width:761px){
 .hb-animation-page .auth-shell{grid-template-columns:minmax(0,1fr) minmax(285px,350px);gap:24px;width:calc(100% - 40px)}
 .hb-animation-page .auth-showcase{padding-left:2%}
 .hb-animation-page .auth-showcase h2{font-size:clamp(34px,4.3vw,48px)}
 .hb-animation-page .auth-lamp{transform:scale(.78);transform-origin:bottom left;left:-12px}
 .hb-animation-page .auth-card{padding:25px 22px}
 .hb-animation-page .code-console{width:calc(100% - 40px)}
}
@media (max-width:760px){
 .hb-animation-page.auth-page{padding-bottom:14px}
 .hb-animation-page .auth-shell{display:flex;flex-direction:column;align-items:stretch;gap:18px;width:calc(100% - 28px);min-height:0;padding:18px 0 20px}
 .hb-animation-page .auth-showcase{min-height:clamp(205px,54vw,270px);padding:43px 0 12px 4%;justify-content:flex-start;overflow:visible}
 .hb-animation-page .auth-showcase .brand{top:0;left:4%}
 .hb-animation-page .auth-showcase h2{position:relative;z-index:2;font-size:clamp(29px,7vw,40px);max-width:58%;overflow-wrap:anywhere}
 .hb-animation-page .auth-showcase>p{position:relative;z-index:2;max-width:55%;font-size:clamp(10px,2.5vw,12px);line-height:1.55}
 .hb-animation-page .auth-points{display:none}
 .hb-animation-page .auth-lamp{left:auto;right:-4px;bottom:-2px;transform:scale(clamp(.42,.55, .58));transform-origin:bottom right;opacity:.88}
 .hb-animation-page .auth-card{width:100%;max-width:480px;margin:0 auto;padding:clamp(20px,5vw,28px);animation:cardReveal .8s .2s both}
 .hb-animation-page .auth-card h1{font-size:clamp(26px,6vw,32px)}
 .hb-animation-page .code-console{width:calc(100% - 28px);margin:0 auto}
 .hb-animation-page .code-console pre{font-size:clamp(8px,2.2vw,10px);line-height:1.55;padding:11px 12px}
 .hb-animation-page .code-title{padding:0 10px}
 .hb-animation-page .code-status{padding:0 10px}
 .anim-topbar{height:46px;padding:0 14px;font-size:11px}
 .anim-topbar-tag{font-size:7px;letter-spacing:.08em}
}
@media (max-width:430px){
 .hb-animation-page .auth-shell{width:calc(100% - 22px);gap:14px}
 .hb-animation-page .auth-showcase{min-height:205px;padding-top:39px}
 .hb-animation-page .auth-showcase h2{font-size:clamp(27px,8vw,34px);max-width:62%}
 .hb-animation-page .auth-showcase>p{max-width:58%;font-size:10px}
 .hb-animation-page .auth-lamp{right:-18px;transform:scale(.43);transform-origin:bottom right}
 .hb-animation-page .lamp-switch{width:42px;height:42px;left:86px;bottom:0}
 .hb-animation-page .auth-card{padding:20px 16px;border-radius:11px}
 .hb-animation-page .auth-field input{font-size:16px}
 .hb-animation-page .auth-foot{font-size:9px}
 .hb-animation-page .code-console{width:calc(100% - 22px)}
 .hb-animation-page .code-console pre{font-size:8px;overflow-x:auto}
 .anim-topbar-tag{display:none}
 .code-status-right{font-size:7px}
}
@media (max-width:350px){
 .hb-animation-page .auth-showcase{min-height:185px}
 .hb-animation-page .auth-showcase h2{font-size:26px;max-width:64%}
 .hb-animation-page .auth-showcase>p{max-width:61%;font-size:9px}
 .hb-animation-page .auth-lamp{transform:scale(.36);right:-24px}
 .hb-animation-page .auth-card{padding:18px 13px}
 .hb-animation-page .auth-meta{font-size:8px}
 .hb-animation-page .code-console pre{font-size:7px}
}
@media (max-height:650px) and (min-width:761px){
 .hb-animation-page .auth-shell{min-height:450px}
 .hb-animation-page .auth-showcase{min-height:430px}
 .hb-animation-page .auth-card{padding-top:20px;padding-bottom:20px}
 .hb-animation-page .auth-showcase h2{font-size:clamp(34px,4vw,48px)}
}
@media (prefers-reduced-motion:reduce){
 .hb-animation-page .auth-card{animation:none}
 .hb-animation-page *{scroll-behavior:auto!important}
}
.hb-animation-page .scene-lamp:focus-visible{outline:3px solid var(--lamp-color);outline-offset:6px;border-radius:12px}
