
/* ── Reset / layout raiz ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: #f0f4f8;
  color: #1e293b;
  transition: background 0.25s ease, color 0.25s ease;
}

[data-bs-theme="dark"] body {
  background: #0d1117;
  color: #e2e8f0;
}

/* ── Wrapper split ── */
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   PAINEL ESQUERDO
   ══════════════════════════════════════════ */
.login-left {
  position: relative;
  flex: 1 1 55%;
  background: #060d1f;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

/* Glow suave de fundo */
.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 30% 85%, rgba(81, 112, 255, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 75% 15%, rgba(20, 230, 180, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Partículas de dados flutuantes ── */
.data-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--fs, 0.7rem);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-weight: 600;
  color: rgba(130, 160, 255, var(--op, 0.4));
  white-space: nowrap;
  letter-spacing: 0.04em;
  animation: floatUp var(--dur, 16s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  user-select: none;
}

/* Alternância de cor: alguns em verde-teal */
.particle:nth-child(3n) {
  color: rgba(20, 230, 180, var(--op, 0.4));
}

.particle:nth-child(5n) {
  color: rgba(255, 214, 0, calc(var(--op, 0.4) * 0.8));
}

@keyframes floatUp {
  0%   { transform: translateY(0)   translateX(0);    opacity: 0; }
  10%  { opacity: var(--op, 0.4); }
  45%  { transform: translateY(-38px) translateX(12px); }
  55%  { transform: translateY(-42px) translateX(-8px); }
  90%  { opacity: var(--op, 0.4); }
  100% { transform: translateY(-80px) translateX(5px);  opacity: 0; }
}

/* ── Conteúdo do painel esquerdo ── */
.login-left-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.left-logo {
  margin-bottom: 2rem;
}

.left-logo-img {
  height: 3.25rem;
  width: auto;
}

/* Light/dark logos esquerda */
.left-logo-dark { display: none; }

[data-bs-theme="dark"] .left-logo-light { display: none; }
[data-bs-theme="dark"] .left-logo-dark  { display: block; }

.left-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #14e6b4;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.left-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.left-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.25rem;
}

/* Mini KPIs */
.left-stats {
  flex-wrap: wrap;
}

.left-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.left-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #14e6b4;
}

.left-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   PAINEL DIREITO
   ══════════════════════════════════════════ */
.login-right {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  background: #fff;
  transition: background 0.25s ease;
}

[data-bs-theme="dark"] .login-right {
  background: #111827;
}

/* ── Toggle de tema ── */
.theme-toggle-wrap {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.theme-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid #dee2e6;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #adb5bd;
}

[data-bs-theme="dark"] .theme-toggle-btn {
  border-color: #374151;
  color: #9ca3af;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-icon-wrap {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
}

.icon-sun, .icon-moon {
  position: absolute;
  font-size: 0.9375rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  top: 0; left: 0;
}

.icon-sun  { opacity: 1; transform: rotate(0deg)   scale(1);   color: #f59e0b; }
.icon-moon { opacity: 0; transform: rotate(90deg)  scale(0.3); color: #818cf8; }

[data-bs-theme="dark"] .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.3); }
[data-bs-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg)   scale(1);   }

/* ── Card de login ── */
.login-card {
  width: 100%;
  max-width: 25rem;
}

/* ── Logos da marca (painel direito) ── */
.brand-icon {
  height: 4rem;
  width: auto;
}

.brand-icon-dark { display: none; }

[data-bs-theme="dark"] .brand-icon-light { display: none; }
[data-bs-theme="dark"] .brand-icon-dark  { display: inline-block; }

/* ── Labels dos campos ── */
.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6c757d;
  margin-bottom: 0.375rem;
}

[data-bs-theme="dark"] .field-label {
  color: #9ca3af;
}

/* ── Inputs ── */
.form-control, .input-group-text {
  border-radius: 0.5rem;
}

.input-group > .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.input-group > .btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

[data-bs-theme="dark"] .form-control {
  background: #1f2937;
  border-color: #374151;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #4b5563;
}

[data-bs-theme="dark"] .input-group-text {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

[data-bs-theme="dark"] .form-control:focus {
  background: #1f2937;
  border-color: #ffd600;
  box-shadow: 0 0 0 0.2rem rgba(255, 214, 0, 0.15);
  color: #e2e8f0;
}

/* ── Link esqueceu senha ── */
.link-forgot {
  color: #5170ff;
  text-decoration: none;
}
.link-forgot:hover { text-decoration: underline; }

[data-bs-theme="dark"] .link-forgot {
  color: #ffd600;
}

/* ── Botão Entrar ── */
.btn-login {
  border-radius: 0.5rem;
  padding: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: #5170ff;
  border-color: #5170ff;
  color: #fff;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
  background: #3d5ce0;
  border-color: #3d5ce0;
  box-shadow: 0 4px 14px rgba(81, 112, 255, 0.35);
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .btn-login {
  background: #ffd600;
  border-color: #ffd600;
  color: #0d1117;
}

[data-bs-theme="dark"] .btn-login:hover {
  background: #f0c800;
  border-color: #f0c800;
  box-shadow: 0 4px 14px rgba(255, 214, 0, 0.3);
}

/* ── Divisor ── */
.divider-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

[data-bs-theme="dark"] .divider-text::before,
[data-bs-theme="dark"] .divider-text::after {
  background: #374151;
}

/* ── Botão WhatsApp ── */
.btn-whatsapp {
  border-radius: 0.5rem;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #25d366;
  border-color: #25d366;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.08);
  color: #1da951;
  border-color: #1da951;
}

.btn-whatsapp .bi-whatsapp {
  color: #25d366;
  font-size: 1.05rem;
}

[data-bs-theme="dark"] .btn-whatsapp {
  color: #25d366;
  border-color: #1a3d26;
  background: rgba(37, 211, 102, 0.05);
}

[data-bs-theme="dark"] .btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
}

/* ── Tablet / Mobile ── */
@media (max-width: 991.98px) {
  .login-left  { display: none; }
  .login-right {
    flex: 1 1 100%;
    min-height: 100vh;
    max-width: 100%;
  }
}

/* ── Mobile pequeno ── */
@media (max-width: 480px) {
  .login-right {
    padding: 1.5rem 1.25rem;
  }
}

