/* Port từ customer-theme.css (phần auth) + auth-motion.css của bản gốc. */
@font-face{font-family:BBInter;src:url('../font/Inter-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:BBInter;src:url('../font/Inter-SemiBold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{--bb-purple:#5b3fd5;--bb-orange:#ff8a00;--bb-border:#d6d9de;--bb-gray:#f3f4f5;--bb-muted:#747a82}
*{margin:0;padding:0;box-sizing:border-box}
html{background:#fff}
body[data-page]{font-family:BBInter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;background:#fff!important;color:#17191d!important;overflow-x:hidden}
body[data-page=login],body[data-page=register]{display:grid!important;place-items:center;min-height:100vh;padding:24px!important;background:radial-gradient(circle at 14% 18%,#e8e2ff 0,transparent 28%),radial-gradient(circle at 88% 82%,#dfe8ff 0,transparent 30%),#f5f6fb!important;color:#1b1d31!important}
body[data-page=login] .container,body[data-page=register] .container{width:min(100%,980px)!important;max-width:980px!important;min-height:640px!important;display:grid!important;grid-template-columns:44% 56%;overflow:hidden;border:1px solid #e8e7f0;border-radius:28px;background:#fff!important;box-shadow:0 30px 90px rgba(35,24,92,.16),0 2px 8px rgba(35,24,92,.04);animation:authAppear .65s cubic-bezier(.2,.75,.2,1) both}
body[data-page=login] .auth-hero,body[data-page=register] .auth-hero{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;height:auto;min-height:640px;padding:38px!important;overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#211b5c 0%,#4d32b5 48%,#6b4cde 100%)!important;color:#fff}
.auth-hero::before,.auth-hero::after{content:"";position:absolute;z-index:-1;border:1px solid rgba(255,255,255,.14);border-radius:50%;pointer-events:none;animation:authOrbit 18s linear infinite}
.auth-hero::before{width:480px;height:480px;left:-245px;bottom:-245px}
.auth-hero::after{width:340px;height:340px;right:-190px;top:88px;animation-direction:reverse;animation-duration:24s}
.auth-glow{position:absolute;z-index:-1;width:240px;height:240px;border-radius:50%;filter:blur(8px);opacity:.6;pointer-events:none}
.auth-glow.one{top:17%;right:-80px;background:radial-gradient(circle,#ad7dfb,transparent 70%);animation:authFloat 8s ease-in-out infinite}
.auth-glow.two{bottom:1%;left:-110px;background:radial-gradient(circle,#4f96ff,transparent 70%);animation:authFloat 10s ease-in-out -3s infinite}
.auth-brand{display:flex;align-items:center;gap:11px;position:relative;z-index:1;font-size:19px;font-weight:800;letter-spacing:.05em}
.auth-brand-mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid rgba(255,255,255,.34);border-radius:12px;background:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.24)}
.auth-brand-mark svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-hero-content{position:relative;z-index:1;max-width:340px;animation:authSlideUp .8s .12s both}
.auth-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.1);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.auth-kicker::before{content:"";width:6px;height:6px;border-radius:50%;background:#a8ffd4;box-shadow:0 0 12px #a8ffd4;animation:authPulse 2.8s ease-in-out infinite}
.auth-hero-content h2{margin:20px 0 12px;font-size:clamp(35px,4vw,53px);line-height:1.08;letter-spacing:-.045em;font-weight:750}
.auth-hero-content h2 span{color:#c9baff}
.auth-hero-content p{max-width:300px;color:#e0dcff;font-size:15px;line-height:1.6}
.auth-hero-foot{position:relative;z-index:1;color:#e0dcff;font-size:12px;letter-spacing:.02em}
body[data-page=login] .form-container.auth-panel,body[data-page=register] .form-container.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:50px clamp(30px,5vw,72px)!important;min-width:0;background:#fff;animation:authSlideUp .72s .12s both}
.auth-tabs{display:flex;gap:6px;width:max-content;margin-bottom:34px;padding:5px;border:1px solid #ebe9f2;border-radius:13px;background:#f6f5fb}
.auth-tabs a{display:inline-flex;align-items:center;justify-content:center;min-width:106px;height:35px;padding:0 16px;border-radius:9px;color:#74758b;text-decoration:none;font-size:13px;font-weight:700;transition:background .2s,color .2s,transform .2s}
.auth-tabs a:hover{color:#5034b9;transform:translateY(-1px)}
.auth-tabs a.active{background:#fff;color:#5137c4;box-shadow:0 2px 8px rgba(35,24,92,.1)}
body[data-page=login] .bb-auth-heading,body[data-page=register] .bb-auth-heading{display:block;height:auto;margin:0 0 28px}
body[data-page=login] .form-title,body[data-page=register] .form-title{height:auto!important;margin:0 0 7px!important;color:#1b1d31!important;font-size:31px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:-.035em;text-align:left!important}
.auth-subtitle{color:#77798e;font-size:14px;line-height:1.5}
body[data-page=login] .form-group,body[data-page=register] .form-group{margin-bottom:18px!important}
body[data-page=login] .form-label,body[data-page=register] .form-label{display:block;margin-bottom:8px!important;color:#34364b!important;font-size:13px!important;font-weight:700!important}
body[data-page=login] .input-wrapper,body[data-page=register] .input-wrapper{display:flex;align-items:center;gap:12px;height:52px;padding:0 14px!important;border:1px solid #e2e2eb!important;border-radius:13px!important;background:#fafaff!important;box-shadow:none!important;transition:border-color .22s,box-shadow .22s,background .22s,transform .22s}
body[data-page=login] .input-wrapper:hover,body[data-page=register] .input-wrapper:hover{border-color:#bab1ea!important;background:#fff!important}
body[data-page=login] .input-wrapper:focus-within,body[data-page=register] .input-wrapper:focus-within{border-color:#7457df!important;background:#fff!important;box-shadow:0 0 0 4px rgba(100,70,219,.1)!important;transform:translateY(-1px)}
.auth-input-icon{flex:0 0 19px;width:19px;height:19px;stroke:#9798aa;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .22s}
.input-wrapper:focus-within .auth-input-icon{stroke:#6444d8}
body[data-page=login] .form-input,body[data-page=register] .form-input{flex:1;min-width:0;width:100%;height:48px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#202138;font-size:14px!important;box-shadow:none!important;outline:none!important}
body[data-page=login] .form-input::placeholder,body[data-page=register] .form-input::placeholder{color:#a2a3b3}
.auth-eye{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#9898aa;cursor:pointer;transition:color .2s,background .2s}
.auth-eye:hover{color:#5b3ec8;background:#f0edfb}
.auth-eye svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-eye[aria-pressed=true]{color:#5b3ec8}
body[data-page=login] .bb-forgot{margin:0 0 4px;color:#5b3ec8;font-size:13px;font-weight:700;text-align:right;text-decoration:none;display:block}
body[data-page=login] .bb-forgot:hover{text-decoration:underline}
body[data-page=login] .auth-submit,body[data-page=register] .auth-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%!important;height:52px!important;margin-top:25px!important;overflow:hidden;border:0!important;border-radius:13px!important;background:linear-gradient(110deg,#5335c7,#7354e6)!important;color:#fff!important;font-size:15px!important;font-weight:750!important;letter-spacing:.01em;box-shadow:0 12px 24px rgba(83,53,199,.22)!important;cursor:pointer;transition:transform .2s,box-shadow .2s,filter .2s}
.auth-submit::before{content:"";position:absolute;inset:0 auto 0 -70%;width:55%;transform:skewX(-25deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transition:left .55s}
.auth-submit:hover::before{left:120%}
body[data-page=login] .auth-submit:hover,body[data-page=register] .auth-submit:hover{transform:translateY(-2px);box-shadow:0 16px 28px rgba(83,53,199,.28)!important;filter:brightness(1.04)}
body[data-page=login] .auth-submit:active,body[data-page=register] .auth-submit:active{transform:translateY(0)}
.auth-submit svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.auth-submit:hover svg{transform:translateX(3px)}
.auth-submit[disabled]{opacity:.75;cursor:wait}
.auth-secondary{margin:22px 0 0;color:#85869a;font-size:13px;text-align:center}
.auth-secondary a{color:#5b3ec8;font-weight:700;text-decoration:none}
.auth-secondary a:hover{text-decoration:underline}
body[data-page=login] .error-message,body[data-page=register] .error-message{margin-bottom:20px;padding:12px 14px;border:1px solid #ffd5d3;border-radius:11px;background:#fff3f3;color:#ae3535;font-size:13px;animation:authShake .35s both}
body[data-page=register] .success-message{margin-bottom:20px;padding:12px 14px;border:1px solid #c8ead1;border-radius:11px;background:#effcf2;color:#237747;font-size:13px}
body[data-page=register] .success-message a{color:#237747;font-weight:700}
@media(max-width:700px){body[data-page=login],body[data-page=register]{display:block!important;padding:0!important;background:#fff!important}body[data-page=login] .container,body[data-page=register] .container{display:block!important;min-height:100svh!important;max-width:480px!important;border:0;border-radius:0;box-shadow:none;overflow:visible}body[data-page=login] .auth-hero,body[data-page=register] .auth-hero{min-height:260px;height:260px;padding:26px 26px 56px!important}.auth-brand{font-size:17px}.auth-brand-mark{width:35px;height:35px}.auth-hero-content h2{margin:14px 0 7px;font-size:34px}.auth-hero-content p{font-size:13px;line-height:1.45}.auth-hero-foot{display:none}body[data-page=login] .form-container.auth-panel,body[data-page=register] .form-container.auth-panel{position:relative;min-height:calc(100svh - 230px);margin-top:-28px;padding:30px 24px 34px!important;border-radius:27px 27px 0 0}.auth-tabs{margin-bottom:25px}body[data-page=login] .form-title,body[data-page=register] .form-title{font-size:27px!important}}
@media(max-width:380px){body[data-page=login] .form-container.auth-panel,body[data-page=register] .form-container.auth-panel{padding-left:18px!important;padding-right:18px!important}.auth-hero-content h2{font-size:30px}}
@keyframes authAppear{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes authSlideUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes authFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-16px,18px,0)}}
@keyframes authOrbit{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes authPulse{0%,100%{opacity:1;box-shadow:0 0 12px #a8ffd4}50%{opacity:.5;box-shadow:0 0 3px #a8ffd4}}
@keyframes authShake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}100%{transform:none}}
