
:root {
  --bg: #0b1020;
  --panel: rgba(18, 25, 49, 0.88);
  --panel-2: #121a33;
  --line: rgba(255,255,255,0.08);
  --text: #eef3ff;
  --muted: #aeb9d6;
  --primary: #6d7cff;
  --primary-2: #8a5bff;
  --danger: #e85d75;
  --success: #36c78b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109,124,255,0.20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(138,91,255,0.16), transparent 24%),
    linear-gradient(180deg, #070b16 0%, #0b1020 100%);
  color: var(--text);
}

a { color: inherit; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
}

.brand-panel,
.login-card,
.sidebar,
.card,
.stat,
.item,
.auth-links,
.info-chip {
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-panel {
  background: linear-gradient(180deg, rgba(20,29,58,0.88), rgba(13,18,37,0.88));
  border-radius: 28px;
  padding: 42px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: '';
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(109,124,255,0.35), transparent 70%);
  pointer-events: none;
}

.brand-panel h1,
.brand-panel h2 {
  margin: 0 0 12px;
}

.brand-logo {
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  max-height: 110px;
  display: block;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 50px rgba(108, 124, 255, 0.30));
}

.brand-copy {
  max-width: 560px;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-chip {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
}

.info-chip strong {
  display: block;
  margin-bottom: 6px;
}

.logo-badge,
.logo-mini {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 50px rgba(108, 124, 255, 0.30);
}

.logo-badge {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.login-card {
  background: rgba(16, 22, 43, 0.9);
  border-radius: 28px;
  padding: 32px;
  align-self: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.login-header h2 { margin: 10px 0 8px; }
.login-header p, .brand-panel p, .sidebar small, .muted-text { color: var(--muted); }

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(109,124,255,0.14);
  color: #cfd6ff;
  border: 1px solid rgba(109,124,255,0.28);
  font-size: 12px;
}

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #dbe4ff;
  font-size: 14px;
}

input, button, textarea, select {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  margin: 6px 0;
}

textarea { min-height: 90px; }

input::placeholder,
textarea::placeholder { color: #91a0c4; }

button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  font-weight: 700;
}

button.secondary-btn,
.auth-links a,
.outline-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

.auth-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 10px;
}

.auth-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}

.auth-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(109,124,255,0.08);
  border: 1px solid rgba(109,124,255,0.18);
  color: #dfe6ff;
  font-size: 14px;
}

.error-text { color: #ff9aad; min-height: 20px; }
.success-text { color: #8ef0c0; }

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(11, 16, 32, 0.84);
  padding: 20px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.logo-mini {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}

.logo-mini-img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(108,124,255,0.22);
}

.sidebar button {
  margin-bottom: 10px;
  text-align: left;
}

.sidebar .danger {
  background: linear-gradient(135deg, #d94c64, #b93060);
}

.content {
  padding: 24px;
}

.card {
  background: var(--panel);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.grid-form, .stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-form.tight {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stats { margin-bottom: 18px; }

.stat {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 16px;
}

.item {
  background: rgba(255,255,255,0.025);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.actions button,
.actions a {
  width: auto;
}

.pix-qr {
  max-width: 220px;
  display: block;
  margin-top: 12px;
  border-radius: 14px;
  background: white;
  padding: 8px;
}

.hidden { display: none; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.inner-card {
  margin: 0;
}

.tab-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:18px;
}

@media (max-width: 980px) {
  .auth-shell,
  .layout,
  .auth-highlights {
    grid-template-columns: 1fr;
  }
}
