/* ============================================================
   LGL Design System — Painel do Parceiro (tema claro)
   Tokens e componentes base, espelhando o painel admin.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cores — marca */
  --blue: #1240C4;
  --blue-dk: #0A1E7A;
  --blue-lt: #EEF3FF;

  /* Cores — neutros */
  --white: #fff;
  --gray-50: #F7F8FC;
  --gray-100: #EDEEF4;
  --gray-200: #DFE1ED;
  --gray-400: #9AA0B8;
  --gray-600: #565D78;
  --gray-900: #0D1021;

  /* Cores — status */
  --green: #16a34a;
  --green-lt: #dcfce7;
  --amber: #d97706;
  --amber-lt: #fef3c7;
  --red: #dc2626;
  --red-lt: #fee2e2;
  --cyan: #22d3ee;

  /* Tipografia */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Raios */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-pill: 999px;

  /* Sombras / foco */
  --shadow-card: 0 2px 12px rgba(18, 64, 196, .06);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .4);
  --ring: 0 0 0 3px rgba(18, 64, 196, .1);

  /* Superfícies especiais */
  --topbar-bg: rgba(8, 12, 42, .94);
  --hero-grad: linear-gradient(150deg, #071D6E, #0D30A0 48%, #1245B0);
}

/* ---------- Reset base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Topbar escura ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  color: var(--white);
}

.topbar img {
  height: 34px;
  width: auto;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* ---------- Input ---------- */
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input::placeholder {
  color: var(--gray-400);
}

.input:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

/* Rótulo de campo */
.field {
  display: block;
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

/* ---------- Botão primário ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn-primary:hover {
  background: var(--blue-dk);
}

.btn-primary:focus-visible {
  box-shadow: var(--ring);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Botão secundário / texto */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-md);
  transition: background .15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .2);
}

/* ---------- Utilitários ---------- */
.text-muted {
  color: var(--gray-600);
}

.text-center {
  text-align: center;
}

.link-sm {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Mensagem de erro/aviso inline */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  color: var(--red);
  background: var(--red-lt);
}

.alert-warn {
  color: var(--amber);
  background: var(--amber-lt);
}

.alert-ok {
  color: var(--green);
  background: var(--green-lt);
}
