*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  color:#1d2b33;overflow-x:hidden;
  background:#0b2730;
}

/* ---------- Fundo: cores líquidas da marca (verde-azulado e ameixa) se misturando devagar ---------- */
.liquid{position:fixed;inset:0;overflow:hidden;z-index:0;
  background:radial-gradient(120% 90% at 0% 0%,#0d3a44 0%,transparent 60%),
             radial-gradient(110% 90% at 100% 100%,#2a1a38 0%,transparent 60%),
             linear-gradient(135deg,#0b2f38 0%,#14252f 50%,#221830 100%)}
.liquid span{position:absolute;display:block;filter:blur(70px);opacity:.85;mix-blend-mode:screen;will-change:transform,border-radius}
.liquid .b1{width:62vmax;height:62vmax;left:-18vmax;top:-22vmax;background:radial-gradient(circle at 40% 40%,#00a3b4,#008596 55%,transparent 72%);
  animation:morph 12s ease-in-out infinite,vagar1 15s ease-in-out infinite}
.liquid .b2{width:56vmax;height:56vmax;right:-20vmax;bottom:-24vmax;background:radial-gradient(circle at 60% 60%,#7a4f97,#432d50 58%,transparent 74%);
  animation:morph 14s ease-in-out infinite reverse,vagar2 17s ease-in-out infinite}
.liquid .b3{width:40vmax;height:40vmax;left:34vw;top:18vh;background:radial-gradient(circle,#2bb7c4,#127a8a 60%,transparent 75%);opacity:.55;
  animation:morph 10s ease-in-out infinite,vagar3 13s ease-in-out infinite}
.liquid .b4{width:34vmax;height:34vmax;left:8vw;bottom:-12vmax;background:radial-gradient(circle,#3c4f9a,#2a3470 60%,transparent 76%);opacity:.6;
  animation:morph 13s ease-in-out infinite reverse,vagar4 14s ease-in-out infinite}
.liquid .b5{width:26vmax;height:26vmax;right:14vw;top:-6vmax;background:radial-gradient(circle,#d9e6ea,#9fb7bf 55%,transparent 75%);opacity:.22;
  animation:morph 11s ease-in-out infinite,vagar2 12s ease-in-out infinite reverse}
@keyframes morph{
  0%,100%{border-radius:42% 58% 63% 37% / 41% 44% 56% 59%}
  33%{border-radius:63% 37% 38% 62% / 55% 61% 39% 45%}
  66%{border-radius:37% 63% 54% 46% / 62% 36% 64% 38%}}
@keyframes vagar1{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(14vw,10vh) rotate(40deg)}}
@keyframes vagar2{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(-12vw,-12vh) rotate(-35deg)}}
@keyframes vagar3{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-16vw,14vh) scale(1.2)}}
@keyframes vagar4{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(18vw,-10vh) scale(.85)}}
/* granulado sutil e vinheta: tiram o aspecto "digital" do degradê */
.liquid::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at center,transparent 45%,rgba(4,14,18,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ---------- Painel ---------- */
.auth-wrap{position:relative;z-index:1;min-height:100%;display:grid;place-items:center;padding:24px 16px}
.auth-card{
  width:100%;max-width:390px;padding:40px 32px 34px;border-radius:26px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 #fff;
  animation:rise .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}

.logo-slot{display:flex;justify-content:center;margin-bottom:28px}
.logo-slot img{width:100%;max-width:290px;height:auto;object-fit:contain}
.logo-placeholder{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#008596,#432d50);
  box-shadow:0 14px 34px -8px rgba(0,133,150,.6)}
.logo-placeholder svg{width:34px;height:34px}

.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-form.center{align-items:center;text-align:center}
.auth-hello{text-align:center;font-size:20px;font-weight:600}
.auth-sub{text-align:center;color:#1b5f73;opacity:.8;font-size:14px;margin-top:-8px;margin-bottom:4px;line-height:1.5}
.auth-state{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:rgba(255,255,255,.7);color:#e11d48}

.field{position:relative;display:flex;align-items:center;
  background:#f3f6f7;border:1px solid #e1e8ea;border-radius:14px;
  transition:box-shadow .2s,border-color .2s,background .2s}
.field:focus-within{background:#fff;border-color:#2bb7c4;box-shadow:0 0 0 4px rgba(0,133,150,.18)}
.field>svg{position:absolute;left:16px;width:18px;height:18px;color:#008596;pointer-events:none}
.field input{flex:1;border:0;background:transparent;outline:0;font:inherit;font-size:15px;color:#1d2b33;
  padding:15px 16px 15px 46px;border-radius:16px;min-width:0}
.field input::placeholder{color:#6b7280}
.eye{border:0;background:transparent;color:#6b7280;padding:0 14px;cursor:pointer;display:grid;place-items:center;height:100%}
.eye svg{width:18px;height:18px}
.eye.on{color:#008596}

.btn-auth{margin-top:6px;display:flex;align-items:center;justify-content:center;gap:10px;
  border:0;border-radius:16px;padding:15px;font:inherit;font-weight:600;font-size:15px;color:#fff;cursor:pointer;
  text-decoration:none;width:100%;
  background:linear-gradient(120deg,#008596,#1b5f73 50%,#432d50);background-size:180% 180%;
  box-shadow:0 14px 30px -12px rgba(0,133,150,.75);
  transition:transform .15s,box-shadow .2s,background-position .4s}
.btn-auth:hover{transform:translateY(-1px);background-position:100% 50%;box-shadow:0 18px 36px -12px rgba(67,45,80,.7)}
.btn-auth:active{transform:translateY(1px)}
.btn-auth svg{width:18px;height:18px;transition:transform .2s}
.btn-auth:hover svg{transform:translateX(3px)}
.btn-auth.loading{pointer-events:none;opacity:.85}
.btn-auth.loading svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.auth-msg{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;
  font-size:13.5px;font-weight:500;padding:11px 14px;border-radius:14px}
.auth-msg svg{width:16px;height:16px;flex-shrink:0}
.auth-msg.error{background:rgba(254,226,226,.85);color:#b91c1c}
.auth-msg.success{background:rgba(209,250,229,.85);color:#047857}

@media (prefers-reduced-motion:reduce){.liquid span,.auth-card{animation:none}}
@media (max-width:420px){.auth-card{padding:32px 22px 26px;border-radius:24px}}

/* perfil da empresa (primeiro acesso do cliente) */
.auth-card.wide{max-width:640px}
.auth-steps{display:flex;flex-direction:column;gap:14px;text-align:left}
.auth-q{display:flex;flex-direction:column;gap:6px}
.auth-q b{font-size:14px;color:#1d2b33;display:flex;align-items:center;gap:8px}
.auth-q b svg{width:17px;height:17px;color:#008596}
.auth-q small{font-size:12.5px;color:#5b6b73}
.auth-q textarea{width:100%;min-height:96px;resize:vertical;font:inherit;font-size:14.5px;color:#1d2b33;padding:12px 14px;border-radius:14px;
  border:1px solid #e1e8ea;background:#f3f6f7;outline:0;transition:box-shadow .2s,border-color .2s,background .2s}
.auth-q textarea:focus{background:#fff;border-color:#2bb7c4;box-shadow:0 0 0 4px rgba(0,133,150,.18)}

/* solicitar acesso */
.btn-auth-sec{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:14px;border:1.5px dashed rgba(0,133,150,.45);
  font-size:14px;color:#1b5f73;text-decoration:none;transition:background .2s,border-color .2s}
.btn-auth-sec:hover{background:rgba(0,133,150,.08);border-color:#008596}
.btn-auth-sec svg{width:17px;height:17px;color:#008596}
.auth-grupo{margin-top:6px}
.auth-grupo b{display:flex;align-items:center;gap:8px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#1b5f73}
.auth-grupo b svg{width:16px;height:16px;color:#008596}
.auth-duas{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field-select select{flex:1;min-width:0;border:0;background:transparent;outline:0;font:inherit;font-size:15px;color:#1d2b33;padding:15px 16px 15px 46px;border-radius:16px;appearance:auto;cursor:pointer}
.field-area{align-items:flex-start}
.field-area>svg{top:16px}
.field-area textarea{flex:1;min-width:0;border:0;background:transparent;outline:0;font:inherit;font-size:15px;color:#1d2b33;padding:14px 16px 14px 46px;border-radius:16px;resize:vertical;min-height:84px}
.auth-isca{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.auth-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px;color:#1b5f73;text-decoration:none;font-weight:600}
.auth-link svg{width:15px;height:15px}
.auth-state-ok{color:#059669}
@media (max-width:560px){.auth-duas{grid-template-columns:1fr}}
