/* =========================================================================
   AzambujaMais — página: autenticação (login do cliente + login do admin)
   Layout em duas colunas (estilo Asaas): à esquerda um "hero" com gráfico em
   órbita (logo central + cards de benefícios); à direita o formulário limpo.
   ========================================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: #fff;
}

/* ============================ Coluna esquerda (hero) ==================== */
.auth-hero {
  flex: 1 1 52%;
  min-width: 0;
  margin: 0.9rem 0 0.9rem 0.9rem;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 20% 15%, #f4f8ff 0%, rgba(244, 248, 255, 0) 60%),
    linear-gradient(155deg, #e9f1ff 0%, #d7e6fb 55%, #cadcf7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem) 3rem;
  overflow: hidden;
}
.auth-hero-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------- Gráfico em órbita ------- */
.orbit {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.5rem;
}
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(14, 95, 192, 0.14);
}
.orbit-ring--1 { width: 40%; height: 40%; }
.orbit-ring--2 { width: 66%; height: 66%; border-style: dashed; border-color: rgba(14, 95, 192, 0.1); }
.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(14, 95, 192, 0.12);
}
.orbit-dot--1 { top: 17%; left: 50%; }
.orbit-dot--2 { top: 50%; left: 83%; background: var(--accent); box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.15); }
.orbit-dot--3 { top: 83%; left: 50%; }
.orbit-dot--4 { top: 50%; left: 17%; }

/* Núcleo (símbolo AzambujaMais em círculo branco, bem clean) */
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 33%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(15, 40, 90, 0.16), 0 0 0 9px rgba(255, 255, 255, 0.55);
}
.orbit-core img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  display: block;
}

/* Cards satélites */
.orbit-sat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 40, 90, 0.12);
  max-width: 47%;
}
.orbit-sat .sat-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand);
}
.orbit-sat .sat-ico svg { width: 21px; height: 21px; }
.orbit-sat .sat-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.orbit-sat .sat-txt strong { font-size: 0.82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.orbit-sat .sat-txt small { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }

/* Cores dos satélites — só azul e laranja (as cores do símbolo).
   Prefixo .orbit-sat p/ vencer a especificidade da regra base .orbit-sat .sat-ico. */
.orbit-sat .sat-ico--azul    { background: #0e5fc0; }
.orbit-sat .sat-ico--laranja { background: #f39200; }

/* Posições — 3 à esquerda (ícone à direita), 3 à direita (ícone à esquerda) */
.orbit-sat--tl, .orbit-sat--ml, .orbit-sat--bl { flex-direction: row-reverse; text-align: right; }
.orbit-sat--tl .sat-txt, .orbit-sat--ml .sat-txt, .orbit-sat--bl .sat-txt { align-items: flex-end; }
.orbit-sat--tl { top: 7%;  left: 0; }
.orbit-sat--ml { top: 42%; left: -6%; }
.orbit-sat--bl { top: 77%; left: 2%; }
.orbit-sat--tr { top: 7%;  right: 0; }
.orbit-sat--mr { top: 42%; right: -6%; }
.orbit-sat--br { top: 77%; right: 2%; }

/* ------- Texto do hero ------- */
.auth-hero-copy { text-align: center; max-width: 460px; }
.auth-hero-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.auth-hero-copy p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: #46566e;
  line-height: 1.55;
}
.auth-hero-note {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================ Coluna direita (form) ==================== */
.auth-panel {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-logo { display: block; margin-bottom: 2rem; }
.auth-logo img { height: 46px; width: auto; }
.auth-form-wrap h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}
.auth-form-wrap .subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Inputs no estilo Asaas (preenchimento suave) */
.auth-panel .input {
  padding: 0.9rem 1rem;
  background: #f6f8fd;
  border-color: #e6ebf4;
}
.auth-panel .input:focus {
  background: #fff;
}

.forgot {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}
.forgot:hover { text-decoration: underline; }

.alert {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  font-size: 0.88rem;
}

/* Botão principal (largura total, arredondado) */
.auth-form-wrap .btn-entrar {
  margin-top: 1.75rem;
  border-radius: 14px;
  font-size: 1.02rem;
}

.auth-alt {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-alt a { color: var(--brand); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }

.test-note {
  margin-top: 1.25rem;
  padding: 0.65rem 0.9rem;
  background: var(--brand-50);
  border: 1px dashed rgba(14, 95, 192, 0.35);
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.test-note strong { color: var(--brand); }

.auth-foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #94a0b3;
}
.auth-foot a { color: #6b7688; font-weight: 500; }
.auth-foot a:hover { color: var(--brand); }

/* ============================ Elementos flutuantes ==================== */
.auth-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 40, 90, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.auth-back:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 40, 90, 0.16); }
.auth-back svg { color: var(--brand); }

.admin-link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(15, 40, 90, 0.08);
  transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
}
.admin-link:hover { transform: translateY(-1px); color: var(--brand); box-shadow: 0 8px 22px rgba(15, 40, 90, 0.14); }
.admin-link svg { color: var(--brand); }

.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.85rem;
  background: var(--brand-50);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================ Variante: login do admin ================ */
.auth-page--admin .auth-hero {
  background:
    radial-gradient(120% 80% at 18% 12%, rgba(47, 111, 208, 0.35) 0%, rgba(47, 111, 208, 0) 55%),
    linear-gradient(155deg, #0c3f86 0%, #0a2f66 60%, #071f47 100%);
}
.auth-page--admin .orbit-ring { border-color: rgba(255, 255, 255, 0.16); }
.auth-page--admin .orbit-ring--2 { border-color: rgba(255, 255, 255, 0.12); }
.auth-page--admin .orbit-dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.auth-page--admin .orbit-core { background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 9px rgba(255, 255, 255, 0.1); }
.auth-page--admin .orbit-sat { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.12); }
.auth-page--admin .orbit-sat .sat-txt strong { color: #fff; }
.auth-page--admin .orbit-sat .sat-txt small { color: rgba(255, 255, 255, 0.6); }
.auth-page--admin .auth-hero-copy h2 { color: #fff; }
.auth-page--admin .auth-hero-copy p { color: rgba(255, 255, 255, 0.82); }
.auth-page--admin .auth-hero-note { color: rgba(255, 255, 255, 0.6); }

/* ============================ Responsivo ============================== */
@media (max-width: 960px) {
  .auth-hero { display: none; }
  .auth-panel { flex-basis: 100%; padding: 4.5rem 1.5rem 3.5rem; }
}
@media (max-width: 520px) {
  .auth-panel { padding: 4.5rem 1.25rem 3rem; }
  .auth-back { top: 1rem; left: 1rem; }
}
