*{box-sizing:border-box}
html{background:var(--amai-ivory);font-family:var(--amai-font);color:var(--amai-text);font-synthesis:none;-webkit-font-smoothing:antialiased}
.am-auth-body{margin:0}
.am-auth-body :is(button,input,select){font:inherit}
.am-auth-body button{cursor:pointer;touch-action:manipulation}
.am-auth-body button:disabled{cursor:not-allowed}
.am-auth-body :is(h1,h2,h3,p,figure){margin:0}
.am-auth-body a{color:inherit;text-underline-offset:4px}
.am-auth-body :focus-visible{outline:3px solid var(--amai-focus);outline-offset:4px}
.am-auth-body [hidden]{display:none!important}
.am-auth-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.am-auth-skip{position:fixed;top:-100px;left:24px;padding:12px 20px;background:var(--amai-petrol);color:white!important;z-index:30;border-radius:8px}
.am-auth-skip:focus{top:12px}
.am-auth-shell{height:calc(100dvh - 48px);min-height:420px;margin:24px;display:grid;grid-template-columns:minmax(380px,40%) minmax(0,1fr);border:1px solid #163c4314;border-radius:24px;overflow:hidden;background:white}
.am-auth-panel{padding:clamp(30px,6vh,64px) clamp(32px,4.5vw,88px) 28px;display:flex;flex-direction:column;min-width:0;overflow:auto;z-index:1;background:white}
.am-auth-brand{display:block;width:100%;max-width:384px;align-self:center;flex:none}
.am-auth-brand img{display:block;width:144px;height:auto}
.am-auth-form-area{margin:auto 0;padding:48px 0;width:100%;max-width:384px;align-self:center}
.am-auth-panel h1{font-size:clamp(29px,2.2vw,36px);font-weight:600;letter-spacing:-1.25px;line-height:1.2;text-wrap:balance}
.am-auth-lead{margin-top:12px!important;color:var(--amai-muted);font-size:14px;line-height:1.7;max-width:36ch;text-wrap:pretty}
.am-auth-lead b{font-weight:500;color:var(--amai-petrol);overflow-wrap:anywhere}
.am-auth-form{margin-top:32px;display:grid;gap:14px}
.am-auth-field{display:grid;gap:10px;font-size:13px;font-weight:500}
.am-auth-field input{height:52px;width:100%;border:1px solid #91A69D;border-radius:10px;background:white;color:var(--amai-petrol);padding:0 15px;font-size:15px;min-width:0;transition:border-color .15s,box-shadow .15s}
.am-auth-field input::placeholder{color:#64767C}
.am-auth-field input:hover{border-color:var(--amai-petrol)}
.am-auth-field input:focus-visible{outline:3px solid #333D6324;outline-offset:1px;border-color:var(--amai-indigo)}
.am-auth-field input[aria-invalid=true]{border-color:#983E36}
.am-auth-submit{min-height:52px;border:1px solid var(--amai-petrol);border-radius:10px;background:var(--amai-petrol);color:white;font-size:14px!important;font-weight:500!important;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:12px;transition:background .15s}
.am-auth-submit:hover{background:#244F57}
/* Desligado: opacidade total (o contraste continua mensurável); borda tracejada e cores de token o distinguem */
.am-auth-body :is(.am-auth-submit,.am-auth-field input,.am-auth-otp input):disabled{background:var(--amai-ivory);color:var(--amai-muted);border:1px dashed var(--amai-muted)}
.am-auth-submit[disabled]::before{content:'';width:15px;height:15px;border:2px solid var(--amai-sage);border-top-color:var(--amai-petrol);border-radius:50%;animation:am-auth-spin .8s linear infinite}
@keyframes am-auth-spin{to{transform:rotate(360deg)}}
.am-auth-hint{font-size:12px;color:var(--amai-muted);line-height:1.65;text-align:center;margin-top:1px}
.am-auth-otp{border:0;margin:0;padding:0;min-width:0}
.am-auth-otp legend{font-size:13px;font-weight:500;margin-bottom:12px}
.am-auth-otp>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.am-auth-otp input{width:100%;min-width:0;height:56px;text-align:center;border:1px solid #91A69D;border-radius:10px;background:white;color:var(--amai-petrol);font-size:24px;font-variant-numeric:tabular-nums;padding:8px 0;caret-color:var(--amai-indigo)}
.am-auth-error{padding:12px;border:1px solid #E0B5AE;border-radius:10px;background:#FAF0ED;color:#843B33;font-size:13px;line-height:1.65}
.am-auth-link-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.am-auth-link-row button{border:0;background:none;padding:8px 0;font-size:12px;color:var(--amai-indigo);text-decoration:underline;text-underline-offset:4px;min-height:40px}
.am-auth-body .am-auth-link-row button:disabled{color:var(--amai-muted);text-decoration-style:dashed}
.am-auth-expired{font-size:12px;line-height:1.6;color:#843B33;margin-top:12px!important}
.am-auth-delivery{font-size:12px;color:var(--amai-muted);margin-top:20px!important;line-height:1.7}
.am-auth-delivery a{color:var(--amai-indigo)}
.am-auth-panel-foot{width:100%;max-width:384px;align-self:center;flex:none;font-size:12px;color:var(--amai-muted)}
.am-auth-panel-foot>div{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.am-auth-panel-foot button{background:none;border:0;padding:8px 0;color:inherit;font-size:12px;min-height:40px}
.am-auth-panel-foot a{font-size:12px}
.am-auth-local{display:block;font-size:11px;margin-bottom:8px;color:var(--amai-muted)}
.am-auth-mobile-motion{display:none}
.am-auth-hero{position:relative;isolation:isolate;overflow:hidden;min-width:0;display:flex;flex-direction:column;background:var(--amai-petrol);color:var(--amai-ivory);padding:34px clamp(28px,3.5vw,64px) 40px}
.am-auth-hero :focus-visible{outline-color:var(--amai-ivory)}
.am-auth-arcos{position:absolute;top:35px;right:39px;width:42px;height:auto;opacity:.85;z-index:2}
.am-auth-trails{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;fill:none;stroke:#b8c9bc;stroke-width:1;opacity:.13}
.am-auth-figure{flex:1;min-height:0;position:relative;margin:-20px -32px -12px!important}
.am-auth-viewport{width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:0;position:relative}
.am-motion-stage{width:100%;height:100%;min-height:0;display:grid;place-items:center;position:relative}
.am-motion-stage>svg{display:block;width:100%;height:100%;overflow:visible}
.am-auth-hero-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;z-index:2;flex:none}
.am-auth-story h2{font-weight:500;font-size:clamp(35px,3.6vw,58px);letter-spacing:-2.2px;line-height:1.04}
.am-auth-story>p{margin-top:16px;color:var(--amai-sage);font-size:13px;line-height:1.5}
.am-auth-transport{display:flex;align-items:center;gap:3px;padding-bottom:1px;flex:none}
.am-auth-transport button{display:grid;place-items:center;width:40px;height:40px;padding:10px;border-radius:50%;color:var(--amai-ivory);border:1px solid transparent;background:transparent;transition:background .15s}
.am-auth-transport button:hover{background:#B8C9BC24}
.am-auth-transport button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.am-auth-transport #motion-play{background:#B8C9BC20;border-color:#B8C9BC38}
.am-auth-transport #catalog-open{margin-left:9px;border-left:1px solid #B8C9BC38;border-radius:0}
.am-auth-transport :is(button,#motion-play):disabled{border:1px dashed var(--amai-sage);background:transparent;color:var(--amai-sage)}
.am-auth-body dialog{width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--amai-sage);border-radius:22px;background:var(--amai-ivory);color:var(--amai-petrol);overscroll-behavior:contain;box-shadow:0 30px 100px #001c2440}
.am-auth-body dialog::backdrop{background:#08272E99;backdrop-filter:blur(4px)}
.am-auth-dialog-head{padding:26px 28px;border-bottom:1px solid #163C4320;display:flex;align-items:flex-start;gap:24px}
.am-auth-dialog-head h2{font-size:23px;font-weight:600;letter-spacing:-.6px}
.am-auth-dialog-head p{font-size:13px;line-height:1.65;color:var(--amai-muted);margin-top:7px}
.am-auth-close{width:40px;height:40px;flex:none;display:grid;place-items:center;margin-left:auto;border-radius:50%;border:1px solid #163C4328;background:none;color:var(--amai-petrol);font-size:24px!important}
.am-auth-dialog-body{padding:24px 28px}
.am-auth-dialog-body p,.am-auth-dialog-body li{font-size:13px;line-height:1.8;color:var(--amai-muted)}
.am-auth-dialog-body ol{padding-left:18px}
.am-auth-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.am-auth-catalog-grid button{padding:0;text-align:left;border:1px solid #163C4324;border-radius:12px;overflow:hidden;background:white;color:var(--amai-petrol);min-width:0}
.am-auth-catalog-grid button[aria-pressed=true]{outline:2px solid var(--amai-indigo);outline-offset:2px}
.am-auth-catalog-grid .am-auth-thumbnail{height:115px;display:block;background:var(--amai-petrol);overflow:hidden}
.am-auth-thumbnail svg{width:100%;height:100%;display:block}
.am-auth-catalog-grid b{font-weight:500;font-size:11px;line-height:1.5;display:block;padding:10px 12px;min-height:50px}
.am-auth-review-note{font-size:11px!important;margin-top:20px!important}
.am-auth-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 20px;border-radius:10px;max-width:calc(100vw - 32px);background:var(--amai-indigo);color:white;font-size:13px;line-height:1.6;z-index:40}
@media(min-width:1450px){.am-auth-panel{align-items:center}.am-auth-shell{grid-template-columns:38% minmax(0,1fr)}}
@media(max-width:1150px){.am-auth-panel{padding-inline:32px}.am-auth-hero{padding:28px 28px 34px}.am-auth-arcos{right:30px}.am-auth-transport{gap:0}.am-auth-transport button{width:34px;height:38px;padding:8px}.am-auth-transport #catalog-open{margin-left:3px}.am-auth-story h2{font-size:41px}.am-auth-hero-bottom{gap:12px}}
@media(max-width:1000px){.am-auth-shell{display:flex;flex-direction:column;min-height:calc(100dvh - 32px);height:auto;margin:16px}.am-auth-panel{min-height:calc(100dvh - 34px);padding:40px clamp(24px,12vw,130px) 24px;align-items:center}.am-auth-brand{align-self:center;width:100%;max-width:384px}.am-auth-brand img{width:128px}.am-auth-form-area{padding:48px 0}.am-auth-hero{display:none}.am-auth-mobile-motion{display:block;margin-top:8px!important}.am-auth-show-motion .am-auth-hero{display:flex;height:690px}.am-auth-show-motion .am-auth-figure{min-height:420px}.am-auth-story h2{font-size:46px}.am-auth-transport button{width:44px;height:44px}.am-auth-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.am-auth-shell{margin:0;min-height:100dvh;border:0;border-radius:0}.am-auth-panel{min-height:100dvh;padding:40px max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-bottom))}.am-auth-form-area{padding:36px 0;max-width:360px}.am-auth-brand,.am-auth-panel-foot{max-width:360px}.am-auth-panel h1{font-size:31px}.am-auth-hero{padding:30px 24px}.am-auth-show-motion .am-auth-hero{height:600px}.am-auth-show-motion .am-auth-figure{min-height:340px}.am-auth-story h2{font-size:37px;letter-spacing:-1.5px}.am-auth-transport button{width:34px;height:40px}.am-auth-story>p{font-size:11px;max-width:18ch}.am-auth-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.am-auth-dialog-head,.am-auth-dialog-body{padding:20px}.am-auth-dialog-head p{font-size:12px}}
@media(max-height:720px) and (min-width:1001px){.am-auth-shell{margin:16px;height:calc(100dvh - 32px)}.am-auth-panel{padding-top:32px;padding-bottom:20px}.am-auth-form-area{padding:28px 0}.am-auth-hero{padding-bottom:28px}.am-auth-story h2{font-size:38px}.am-auth-story>p{margin-top:10px}.am-auth-figure{margin-top:-28px!important}.am-auth-arcos{top:26px}}
@media(pointer:coarse){.am-auth-transport button,.am-auth-panel-foot :is(a,button),.am-auth-link-row button{min-width:44px;min-height:44px}.am-auth-panel-foot a{display:inline-flex;align-items:center}}
@media(prefers-reduced-motion:reduce){.am-motion-stage *{animation:none!important;transition:none!important}.am-auth-submit[disabled]::before{animation:none}}
@media print{.am-auth-shell{height:auto;min-height:0;margin:0;border:0}.am-auth-panel{min-height:0}.am-auth-hero,.am-auth-submit,.am-auth-panel-foot,dialog{display:none!important}}
