/* Public auth presentation: one premium modal for direct links and guest guards. */
.bb-auth-modal{position:fixed;inset:auto;margin:0;left:50%;top:calc(var(--bb-auth-top,0px) + var(--bb-auth-height,100dvh)/2);transform:translate(-50%,-50%);width:min(440px,calc(100% - 32px));max-width:none;max-height:calc(var(--bb-auth-height,100dvh) - 28px);padding:0;overflow:hidden;border:1px solid #d5a5f34d;border-radius:26px;background:radial-gradient(ellipse at 5% 0,#9655b633,transparent 58%),linear-gradient(155deg,#361b4ff7,#211139fa 65%,#251139fa);color:#fff5fb;color-scheme:dark;box-shadow:inset 0 1px #f8ddff30,0 5px #11071e66,0 28px 85px #0b031dc4,0 0 40px #a859cd18;font-family:'Nunito Sans','Segoe UI',sans-serif;line-height:1.5}
.bb-auth-modal[open]{display:flex;flex-direction:column;animation:bb-auth-open .2s ease-out both}
.bb-auth-modal::backdrop{background:radial-gradient(ellipse at 50% 35%,#1e0b3240,#0e051ebd);backdrop-filter:blur(8px) saturate(.85);-webkit-backdrop-filter:blur(8px) saturate(.85)}
.bb-auth-modal *,.bb-auth-modal *::before,.bb-auth-modal *::after{box-sizing:border-box}
.bb-auth-banner{position:relative;isolation:isolate;flex:0 0 90px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(0deg,#351b4f,#351b4f3b),url('/images/home-v2/magic-village-mobile.webp') center 43%/cover;border-bottom:1px solid #e4b3ff16}
.bb-auth-banner::before{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 50% 30%,#edb5ff26,transparent 65%)}
.bb-auth-logo{width:104px;height:70px;object-fit:contain;filter:drop-shadow(0 4px 5px #1a082d80)}
.bb-auth-orb{position:absolute;object-fit:contain;filter:drop-shadow(0 5px 5px #240e4670)}
.bb-auth-orb-purple{width:38px;height:38px;left:calc(50% - 122px);top:27px;transform:rotate(-16deg)}
.bb-auth-orb-blue{width:28px;height:28px;right:calc(50% - 114px);top:42px;transform:rotate(18deg)}
.bb-auth-spark{position:absolute;right:calc(50% - 90px);top:16px;color:#ffe092;font-size:14px}
.bb-auth-close{position:absolute;z-index:2;top:10px;right:10px;width:40px;height:40px;display:grid;place-items:center;border:1px solid #f3ccff40;border-radius:50%;background:#201032ad;box-shadow:inset 0 1px #f7dcff12;color:#f1dafa;cursor:pointer}
.bb-auth-close svg{width:18px;height:18px}
.bb-auth-close:hover{background:#58326b;border-color:#efc6ff80}
.bb-auth-tabs{flex:0 0 auto;display:flex;gap:5px;margin:14px 22px 0;padding:4px;border:1px solid #d39dfb35;border-radius:999px;background:#140a2680;box-shadow:inset 0 2px 6px #0d041f66}
.bb-auth-tabs button{flex:1;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:999px;background:transparent;color:#d0b4e2;cursor:pointer;font:800 13px/1.3 BubbleRound,'Segoe UI',sans-serif;letter-spacing:.2px;transition:background .15s,color .15s,box-shadow .15s}
.bb-auth-tabs button[aria-selected='true']{color:#fff;border-color:#f1c9ff66;background:linear-gradient(#eea0ff,#d04bfa 45%,#a125d5);box-shadow:inset 0 1px #fff7,0 3px #69127c}
.bb-auth-tabs button#bb-auth-tab-login[aria-selected='true']{background:linear-gradient(#9164c0,#573084);box-shadow:inset 0 1px #fff5,0 3px #16052666}
.bb-auth-tabs button[aria-selected='false']:hover{color:#fff4fc;background:#b177dd16}
.bb-auth-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b382d266 transparent;scroll-padding-block:16px}
.bb-auth-modal .bb-auth-form{font-weight:500;--text-dim:#e1c9eb;--input-font-size:16px;width:100%;max-width:none;padding:20px 22px 22px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.bb-auth-modal .bb-auth-form h1{margin:0;color:#fff5fb;font:800 27px/1.2 BubbleRound,'Segoe UI',sans-serif;text-align:center;letter-spacing:-.25px;text-shadow:0 2px #17092770}
.bb-auth-modal .bb-auth-form .muted{margin:8px auto 19px;max-width:340px;color:#d3bddf;font-size:12px;line-height:1.6;text-align:center}
.bb-auth-modal form{display:flex;flex-direction:column;gap:11px}
.bb-auth-modal .input-group{position:relative;margin:0;gap:0}
.bb-auth-modal .input{display:block;width:100%;height:50px;min-height:50px;padding:12px 14px 12px 43px;border:1px solid #bc8cdc40;border-radius:13px;background:linear-gradient(110deg,#29133fdd,#1b1032d9);color:#fff4fb;font:600 16px/1.4 'Nunito Sans','Segoe UI',sans-serif;outline:none;box-shadow:inset 0 1px 3px #0c03252b;caret-color:#ecc1ff}
.bb-auth-modal .input::placeholder{font-size:12px;color:#cfb5e0;opacity:1}
.bb-auth-modal .input:focus{border-color:#d79cffb3;background:#351847;box-shadow:0 0 0 3px #d5a0ff16,inset 0 1px #efcaff10}
.bb-auth-modal .input-group::before{content:'';position:absolute;z-index:1;left:15px;top:16px;width:18px;height:18px;background:#be94d6;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat;pointer-events:none}
.bb-auth-modal .input-group:has(input[autocomplete='name'])::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E")}
.bb-auth-modal .input-group:has(input[type='email'])::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E")}
.bb-auth-modal .input-group:has(input[type='tel'])::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E")}
.bb-auth-modal .input-group:has(.input-password)::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
.bb-auth-modal .input-group:focus-within::before{background:#eac5ff}
.bb-auth-modal .input-password .input{padding-right:46px}
.bb-auth-modal .input-eye{width:44px;color:#d4b8e9}
.bb-auth-modal .bb-auth-remember{display:flex;align-items:center;gap:9px;align-self:flex-start;min-height:32px;margin:-2px 0 0;padding:3px 0;color:#dbc3e8;font:600 12px/1.4 'Nunito Sans','Segoe UI',sans-serif;cursor:pointer}
.bb-auth-modal .bb-auth-remember input{appearance:none;flex:0 0 16px;width:16px;height:16px;margin:0;border:1px solid #c793e480;border-radius:4px;background:#211036;cursor:pointer;accent-color:#c974ed}
.bb-auth-modal .bb-auth-remember input:checked{border-color:#efc4ff;background:linear-gradient(#db90f5,#a943d4);box-shadow:inset 0 1px #fff3}
.bb-auth-modal .bb-auth-remember input:checked::after{content:'';display:block;width:5px;height:9px;margin:1px 0 0 5px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.bb-auth-modal .bb-auth-remember input:focus-visible{box-shadow:0 0 0 3px #d5a0ff38;border-color:#efc4ff}
.bb-auth-modal .bb-auth-remember input:disabled{opacity:.6;cursor:progress}
.bb-auth-modal .phone-country-prefix{left:43px;font-size:13px;color:#dfc6ef}
.bb-auth-modal .phone-country-input.has-value .input{padding-left:76px}
.bb-auth-modal .input:autofill{-webkit-text-fill-color:#fff5fb;box-shadow:inset 0 0 0 1000px #351847}
.bb-auth-modal .btn[type='submit']{position:relative;display:flex;align-items:center;justify-content:center;min-height:49px;height:49px;margin-top:3px;padding:12px 40px;border:1px solid #f1c9ff66;border-radius:999px;background:linear-gradient(#eea0ff,#d04bfa 45%,#a125d5);box-shadow:inset 0 1px #fff7,0 3px #69127c;color:#fff;font:800 15px/1.25 BubbleRound,'Segoe UI',sans-serif;letter-spacing:.25px;cursor:pointer;text-transform:uppercase;transition:filter .15s,transform .15s}
.bb-auth-modal .btn[type='submit']::after{content:'→';position:absolute;right:19px;font:700 21px/1 'Segoe UI',sans-serif;color:#f4d7ff}
.bb-auth-modal .btn[type='submit']:hover{filter:brightness(1.09);transform:translateY(-1px)}
.bb-auth-modal .btn[type='submit']:disabled{opacity:.7;cursor:progress;transform:none}
.bb-auth-modal .bb-auth-switch-row{margin:19px 0 0;padding-top:14px;border-top:1px solid #d3a4ef24;text-align:center;color:#ccb1dd;font-size:12px;line-height:1.5}
.bb-auth-modal .bb-auth-switch{padding:0;border:0;background:none;color:#ecc5ff;font:800 12px/1.5 'Nunito Sans','Segoe UI',sans-serif;cursor:pointer}
.bb-auth-modal .bb-auth-switch:hover{color:#fff0fb;text-decoration:underline}
.bb-auth-modal .alert{padding:11px 13px;margin:0 0 14px;border:1px solid #f1a2c952;border-radius:12px;background:#9f376224;color:#ffe4ef;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.bb-auth-modal .alert-success{border-color:#b6e4ce4d;background:#3764582e;color:#d9f6e8}
.bb-auth-modal :is(button,input):focus-visible{outline:none}
.bb-auth-modal button:focus-visible{filter:brightness(1.12)}
.bb-auth-modal .input:focus-visible{outline:none}
.bb-auth-modal[data-compact='true'] .bb-auth-banner{flex-basis:64px}
.bb-auth-modal[data-compact='true'] .bb-auth-logo{width:82px;height:56px}
.bb-auth-modal[data-compact='true'] .bb-auth-orb-purple{top:17px;width:30px;height:30px}
.bb-auth-modal[data-compact='true'] .bb-auth-orb-blue{top:30px;width:23px;height:23px}
@media(max-width:600px){.bb-auth-modal{width:calc(100% - 24px);max-height:calc(var(--bb-auth-height,100dvh) - 20px);border-radius:23px}.bb-auth-banner{flex-basis:80px}.bb-auth-logo{width:98px;height:65px}.bb-auth-tabs{margin:12px 18px 0}.bb-auth-modal .bb-auth-form{font-weight:500;--text-dim:#e1c9eb;--input-font-size:16px;padding:18px 18px 21px}.bb-auth-modal .bb-auth-form h1{font-size:25px}.bb-auth-modal .bb-auth-form .muted{font-size:11.5px;margin-bottom:17px}.bb-auth-tabs button{font-size:12px}.bb-auth-modal .input::placeholder{font-size:11px}}
@keyframes bb-auth-open{from{opacity:0;translate:0 8px;scale:.98}to{opacity:1;translate:0 0;scale:1}}
@media(prefers-reduced-motion:reduce){.bb-auth-modal,.bb-auth-modal *{animation:none!important;transition:none!important}}
