/* Login ZOE 360 — pacote aprovado (claro, compacto, vidro). Tudo limitado a .zoe-login-page. */
/* ZOE 360 — login claro e compacto. Todos os seletores são isolados. */
.zoe-login-page {
  --zoe-text: #101535;
  --zoe-muted: #626a8a;
  --zoe-blue: #227aff;
  --zoe-violet: #8e2dff;
  --zoe-border: rgba(135, 121, 218, 0.27);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 32px;
  overflow: hidden;
  color: var(--zoe-text);
  background: #f3f1fc;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.zoe-login-page,
.zoe-login-page *,
.zoe-login-page *::before,
.zoe-login-page *::after { box-sizing: border-box; }
.zoe-login-page::before,
.zoe-login-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.zoe-login-page::before {
  inset: -12%;
  background:
    radial-gradient(ellipse at 15% 22%, rgba(120, 189, 255, 0.16), transparent 46%),
    radial-gradient(ellipse at 84% 28%, rgba(193, 161, 255, 0.19), transparent 48%),
    radial-gradient(ellipse at 50% 82%, rgba(168, 158, 255, 0.16), transparent 42%),
    linear-gradient(125deg, #fafaff 0%, #f4f1fe 55%, #f4f2ff 100%);
  animation: zoe-atmosphere 24s ease-in-out infinite alternate;
}
.zoe-login-page::after {
  width: 880px;
  height: 880px;
  top: -720px;
  left: calc(50% - 600px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.zoe-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 100px;
  animation: zoe-enter 650ms ease-out both;
}
.zoe-hero { min-width: 0; }
.zoe-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.zoe-brand img { display: block; width: 44px; height: 44px; }
.zoe-wordmark {
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.zoe-wordmark span {
  margin-left: 7px;
  color: #6550f4;
  background: linear-gradient(105deg, #248bff 0%, #922aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zoe-hero-title {
  margin: 34px 0 12px;
  font-size: clamp(32px, 3.05vw, 41px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -1.8px;
}
.zoe-hero-title span { display: block; }
.zoe-hero-description {
  max-width: 440px;
  margin: 0;
  color: #444c6d;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.zoe-orb-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 4 / 3;
  margin: 24px auto 10px;
  perspective: 1000px;
}
.zoe-orb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  animation: zoe-orb-drift 13s ease-in-out infinite;
}
.zoe-copyright,
.zoe-mobile-footer {
  margin: 16px 0 0;
  color: #68708d;
  font-size: 11px;
  line-height: 1.5;
}
.zoe-copyright strong,
.zoe-mobile-footer strong { color: #313957; font-weight: 650; }
.zoe-mobile-footer { display: none; text-align: center; }
.zoe-card {
  position: relative;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.63);
  box-shadow:
    0 20px 65px -28px rgba(111, 82, 194, 0.29),
    0 0 0 1px rgba(151, 124, 232, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .zoe-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.47), rgba(255,255,255,0.25));
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    backdrop-filter: blur(24px) saturate(130%);
  }
}
.zoe-card-header { margin-bottom: 24px; text-align: center; }
.zoe-card-icon { display: block; width: 38px; height: 38px; margin: 0 auto 12px; }
.zoe-card-title {
  margin: 0 0 5px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.9px;
}
.zoe-card-description {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #505878;
}
.zoe-form { margin: 0; }
.zoe-field { display: block; margin: 0 0 16px; }
.zoe-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.zoe-input-wrap { position: relative; }
.zoe-login-page .zoe-input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--zoe-border);
  border-radius: 9px;
  background: rgba(234, 233, 253, 0.27);
  color: var(--zoe-text);
  box-shadow: inset 0 1px 2px rgba(117, 103, 166, 0.025);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}
.zoe-input::placeholder { color: #747a9a; opacity: 1; }
.zoe-input:focus {
  outline: 0;
  border-color: #7471ec;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 0 0 3px rgba(103, 100, 233, 0.12);
}
.zoe-input[aria-invalid="true"] { border-color: #ba3656; }
.zoe-password-input { padding-right: 44px !important; }
.zoe-login-page button { font-family: inherit; }
.zoe-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #454b73;
  cursor: pointer;
}
.zoe-password-toggle svg { width: 18px; height: 18px; }
.zoe-password-toggle .zoe-eye-off { display: none; }
.zoe-password-toggle[aria-pressed="true"] .zoe-eye { display: none; }
.zoe-password-toggle[aria-pressed="true"] .zoe-eye-off { display: block; }
.zoe-password-toggle:hover { background: rgba(115, 104, 220, 0.07); }
.zoe-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 19px;
  color: #4c5474;
  font-size: 12px;
  cursor: pointer;
}
.zoe-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6e52f5;
  cursor: pointer;
}
.zoe-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.33);
  border-radius: 10px;
  background: linear-gradient(106deg, #18b9f0 0%, #3979ff 38%, #8a32ff 83%, #a526f5 100%);
  box-shadow: 0 7px 20px -11px rgba(109, 56, 242, 0.65);
  color: white;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 180ms, box-shadow 180ms, filter 180ms;
}
.zoe-submit svg { width: 19px; height: 19px; transition: transform 180ms; }
.zoe-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px -10px rgba(109, 56, 242, 0.55);
}
.zoe-submit:hover svg { transform: translateX(3px); }
.zoe-submit:active { transform: translateY(0); }
.zoe-login-page :where(button, input, a):focus-visible {
  outline: 3px solid #7866e9;
  outline-offset: 3px;
}
.zoe-login-page button:disabled { cursor: wait; opacity: 0.68; transform: none; }
.zoe-login-page input:disabled { opacity: 0.7; }
.zoe-card-links {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(134, 119, 202, 0.18);
}
.zoe-text-button {
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #434b70;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.zoe-text-button:hover { color: #543cc4; }
.zoe-text-button-primary { color: #4e48bb; text-decoration: underline; text-underline-offset: 3px; }
.zoe-feedback {
  margin: 14px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(171, 48, 77, 0.15);
  border-radius: 8px;
  background: rgba(255, 238, 242, 0.75);
  color: #8f2341;
  font-size: 12px;
  line-height: 1.55;
}
.zoe-feedback[data-kind="preview"] {
  border-color: rgba(107, 86, 203, 0.16);
  background: rgba(241, 236, 255, 0.72);
  color: #554578;
}
.zoe-feedback[hidden] { display: none; }
.zoe-feedback:focus { outline: 0; }
.zoe-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.36);
  border-top-color: white;
  border-radius: 50%;
  animation: zoe-spin 800ms linear infinite;
}
@keyframes zoe-orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.1deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.1deg); }
}
@keyframes zoe-atmosphere {
  from { transform: translate3d(-0.5%, -0.5%, 0); }
  to { transform: translate3d(1%, 1.3%, 0); }
}
@keyframes zoe-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoe-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .zoe-shell { max-width: 870px; gap: 64px; grid-template-columns: minmax(0, 1fr) 350px; }
  .zoe-hero-title { font-size: 36px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .zoe-login-page { padding-top: 24px; padding-bottom: 24px; }
  .zoe-hero-title { margin-top: 27px; font-size: 36px; }
  .zoe-orb-stage { width: 310px; margin-top: 16px; }
  .zoe-copyright { margin-top: 8px; }
}
@media (max-width: 760px) {
  .zoe-login-page { padding: 30px 20px; }
  .zoe-shell { max-width: 360px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .zoe-hero { text-align: center; }
  .zoe-brand { gap: 11px; }
  .zoe-brand img { width: 40px; height: 40px; }
  .zoe-wordmark { font-size: 27px; }
  .zoe-hero-title,
  .zoe-hero-description,
  .zoe-orb-stage,
  .zoe-copyright { display: none; }
  .zoe-card { padding: 26px 24px; border-radius: 23px; }
  .zoe-card-icon { display: none; }
  .zoe-card-header { margin-bottom: 24px; }
  .zoe-card-title { font-size: 26px; }
  .zoe-card-description { font-size: 12px; }
  .zoe-login-page .zoe-input { font-size: 16px; height: 44px; }
  .zoe-password-toggle { height: 44px; }
  .zoe-label { font-size: 13px; }
  .zoe-remember,
  .zoe-text-button { font-size: 13px; }
  .zoe-submit { min-height: 46px; }
  .zoe-mobile-footer { display: block; margin-top: 0; }
}
@media (max-width: 360px) {
  .zoe-login-page { padding-left: 14px; padding-right: 14px; }
  .zoe-card { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .zoe-login-page::before,
  .zoe-shell,
  .zoe-orb,
  .zoe-spinner { animation: none !important; }
  .zoe-login-page *,
  .zoe-login-page *::before,
  .zoe-login-page *::after { transition: none !important; scroll-behavior: auto !important; }
  .zoe-submit:hover,
  .zoe-submit:hover svg { transform: none; }
}

/* ---- Integração com a ZOE ---- */
/* Nome da empresa no endereço próprio dela (connectlink.zoe360.com.br), acima do "Bem-vindo". */
.zoe-login-page .zoe-empresa { display: table; margin: 0 auto 8px; padding: 3px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  color: #4b3fd6; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .22); }
/* Janela de ajuda (Esqueceu a senha / Fale com o administrador). */
.zoe-login-page dialog { width: min(400px, calc(100% - 32px)); padding: 24px; border: 1px solid rgba(124, 108, 240, .25); border-radius: 20px;
  background: rgba(255, 255, 255, .96); color: #1b1f3b; box-shadow: 0 24px 70px rgba(60, 48, 140, .22); }
.zoe-login-page dialog::backdrop { background: rgba(40, 32, 90, .25); backdrop-filter: blur(4px); }
.zoe-login-page dialog h2 { margin: 0 0 10px; font-size: 19px; }
.zoe-login-page dialog p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #464c6b; }
.zoe-login-page dialog button { margin-top: 10px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; font-weight: 700;
  background: linear-gradient(100deg, #2b9bf4, #5b5cf6 55%, #8b2cf0); cursor: pointer; }

/* ---- Ajuste ZOE: esfera grande e viva atrás do vidro, e tudo cabendo sem rolagem ---- */
@media (min-width: 761px) {
  .zoe-login-page { --orb: clamp(420px, 42vw, 640px); }
  .zoe-shell { position: relative; }
  /* O texto fica por cima da esfera; o cartão de vidro também (e a desfoca por trás). */
  .zoe-brand, .zoe-hero-title, .zoe-hero-description, .zoe-copyright { position: relative; z-index: 1; }
  .zoe-card { z-index: 2; }
  /* A esfera sai do fluxo (não aumenta a altura): grande, centrada na borda do cartão,
     metade no espaço livre e metade atrás do vidro. */
  .zoe-orb-stage {
    position: absolute; z-index: 0; margin: 0; pointer-events: none;
    width: var(--orb); right: calc(360px - var(--orb) / 2 + 20px);
    top: 50%; transform: translateY(-50%);
  }
  .zoe-orb-stage::before {
    content: ""; position: absolute; inset: 14% 12%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(124, 92, 255, .28), rgba(56, 160, 255, .12) 55%, transparent 100%);
    filter: blur(24px); animation: zoe-orb-glow 7s ease-in-out infinite;
  }
  .zoe-orb { position: relative; animation: zoe-orb-float 9s ease-in-out infinite, zoe-orb-turn 14s ease-in-out infinite alternate; }
  .zoe-hero-description { max-width: 380px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .zoe-orb-stage { right: calc(350px - var(--orb) / 2 + 20px); }
}
@keyframes zoe-orb-float {
  0%, 100% { translate: 0 0; scale: 1; }
  50% { translate: 0 -14px; scale: 1.03; }
}
@keyframes zoe-orb-turn { from { rotate: -7deg; } to { rotate: 7deg; } }
@keyframes zoe-orb-glow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* Telas baixas (notebook, zoom do Windows em 125%/150%): mais compacto, sem rolagem */
@media (max-height: 700px) and (min-width: 761px) {
  .zoe-login-page { padding-top: 16px; padding-bottom: 16px; }
  .zoe-hero-title { margin: 22px 0 10px; font-size: 34px; }
  .zoe-card { padding: 22px 26px; }
  .zoe-card-header { margin-bottom: 16px; }
  .zoe-card-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .zoe-card-title { font-size: 24px; }
  .zoe-field { margin-bottom: 12px; }
  .zoe-remember { margin-bottom: 14px; }
  .zoe-card-links { margin-top: 14px; padding-top: 12px; gap: 4px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .zoe-hero-title { font-size: 30px; margin-top: 16px; }
  .zoe-card { padding: 18px 24px; }
  .zoe-card-icon { display: none; }
  .zoe-login-page .zoe-input, .zoe-password-toggle { height: 38px; }
  .zoe-submit { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .zoe-orb, .zoe-orb-stage::before { animation: none !important; }
}
