:root {
  --bg: #08070F;
  --card: #0C0B16;
  --purple: #6C2BD9;
  --purple-2: #7C3AED;
  --purple-light: #A855F7;
  --purple-neon: #9333EA;
  --text: #FFFFFF;
  --text-secondary: #B7B7C6;
  --text-disabled: #71717A;
  --border: rgba(255, 255, 255, 0.06);
  --border-purple: rgba(139, 92, 246, 0.20);
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
.hidden { display: none !important; }

.auth-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: auth-fade-in 400ms ease forwards;
}
@keyframes auth-fade-in { to { opacity: 1; } }

.auth-page::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.18), transparent 55%);
  pointer-events: none;
}
.auth-page::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 70% 40%, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

/* Limita e centraliza a composição — sem isso, em monitores largos o card
   de login fica pequeno e flutuando à direita, com um vão vazio no meio. */
.auth-container {
  max-width: 1360px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 1;
}

/* ---------- Esquerda ---------- */
.auth-left {
  flex: 1 1 56%;
  min-width: 0;
  padding: 48px 56px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(108, 43, 217, 0.45)); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--text); }

.auth-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 32px 0;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.auth-badge svg { width: 14px; height: 14px; }

.auth-headline {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}
.auth-headline .accent { color: var(--purple-light); }

.auth-subheadline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 450px;
  line-height: 1.5;
  margin: 0 0 32px;
}

.feature-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  min-height: 68px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: background 200ms ease, border-color 200ms ease;
}
.feature-card:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(139, 92, 246, 0.2); }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 17px; height: 17px; color: var(--purple-light); }
.feature-copy strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feature-copy p { margin: 0; font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ---------- Preview do dashboard (decorativo) ---------- */
.dash-preview {
  max-width: 480px;
  transform: perspective(1200px) rotateX(6deg) rotateY(-4deg);
  transform-origin: top left;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: linear-gradient(160deg, #14122C, #0B0A12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.dash-preview-inner { display: flex; }
.dash-preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 12px;
  background: #08070F;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-preview-logo { width: 18px; height: 18px; margin-bottom: 6px; }
.dash-preview-logo svg { width: 100%; height: 100%; }
.dash-preview-sidebar svg:not(.dash-preview-logo svg) { width: 16px; height: 16px; color: var(--text-disabled); }
.dash-preview-sidebar i { width: 16px; height: 16px; color: var(--text-disabled); }
.dash-preview-sidebar i.active { color: var(--purple-light); }
.dash-preview-main { flex: 1; padding: 20px 24px; min-width: 0; }
.dash-preview-main h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--text); }
.dash-preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.dash-stat-label { font-size: 10px; color: var(--text-secondary); }
.dash-stat-value { font-size: 17px; font-weight: 700; color: var(--text); }
.dash-stat-delta { font-size: 9px; color: var(--purple-light); }
.dash-preview-recent-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); }
.dash-preview-link { color: var(--purple-light); }

/* ---------- Direita ---------- */
.auth-right {
  flex: 1 1 44%;
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 580px;
  background: rgba(12, 11, 22, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.30);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(124, 58, 237, 0.06);
}

.login-card-head { margin-bottom: 28px; }
.login-card-head h1 { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.login-card-head p { font-size: 15px; color: var(--text-secondary); margin: 0; }

.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--danger);
  font-size: 13px;
}
.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.login-input-wrap:focus-within {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}
.login-input-wrap svg { width: 18px; height: 18px; color: var(--text-disabled); flex-shrink: 0; }
.login-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.login-input-wrap input::placeholder { color: var(--text-disabled); }
.login-eye-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-disabled);
  display: flex;
  align-items: center;
}
.login-eye-btn:hover { color: var(--text-secondary); }
.login-eye-btn svg { width: 18px; height: 18px; }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 13px;
}
.login-checkbox { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); cursor: pointer; }
.login-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple-2);
  cursor: pointer;
}
.login-link { color: var(--purple-light); transition: opacity 200ms ease; }
.login-link:hover { opacity: 0.8; }

.login-submit {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #7C3AED, #9333EA, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
  transition: filter 200ms ease;
}
.login-submit:hover:not(:disabled) { filter: brightness(1.1); }
.login-submit:disabled { cursor: not-allowed; opacity: 0.75; }
.login-submit svg { width: 18px; height: 18px; }

.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: login-spin 0.7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  font-size: 13px;
  color: var(--text-disabled);
}
.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.login-google {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.login-google:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.2); }

.login-footer { text-align: center; margin: 24px 0 0; font-size: 14px; color: var(--text-secondary); }
.login-footer a { color: var(--purple-light); }
.login-footer a:hover { opacity: 0.8; }

/* ---------- auth_info.html (esqueci senha / criar conta) ---------- */
.auth-info-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-info-card {
  max-width: 440px;
  width: 100%;
  background: rgba(12, 11, 22, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.30);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.auth-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-info-icon svg { width: 26px; height: 26px; color: var(--purple-light); }
.auth-info-card h1 { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.auth-info-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 28px; }
.auth-info-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(90deg, #7C3AED, #9333EA);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.auth-info-back svg { width: 16px; height: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .auth-left { padding: 40px 40px 32px; }
  .auth-right { flex-basis: 42%; padding: 32px; }
  .auth-headline { font-size: 36px; }
  .login-card { padding: 36px; }
}

@media (max-width: 900px) {
  .auth-container { flex-direction: column; min-height: auto; }
  .auth-page { min-height: auto; overflow-y: auto; }
  .auth-left { padding: 28px 20px 0; flex: none; }
  .auth-content { padding: 24px 0; max-width: 100%; }
  .auth-badge, .feature-cards, .dash-preview { display: none; }
  .auth-headline { font-size: 28px; }
  .auth-subheadline { font-size: 15px; margin-bottom: 0; max-width: 100%; }
  .auth-right { flex: none; width: 100%; padding: 24px 20px 48px; }
  .login-card { border: none; background: transparent; box-shadow: none; padding: 0; max-width: 100%; }
}
