/* CASI Contabilidade — Formulário de Constituição/Alteração */
:root {
  --purple: #3B2D7E;
  --purple-lt: #5B4BA8;
  --purple-dim: rgba(59,45,126,.08);
  --gold: #C5A63D;
  --gold-lt: #D4B84E;
  --gold-dim: rgba(197,166,61,.10);
  --bg: #F5F5F8;
  --bg-card: #fff;
  --border: #E2E0ED;
  --text: #1F1F33;
  --text2: #5A5770;
  --text3: #8C89A0;
  --green: #16a34a;
  --red: #dc2626;
  /* Tokens do padrão CASI (alinhado ao Controle de Ponto) — usados no painel admin */
  --c-bg: #f3f4f6;
  --c-card: #ffffff;
  --c-text: #0f172a;
  --c-muted: #64748b;
  --c-subtle: #94a3b8;
  --c-border: #e5e7eb;
  --c-border-soft: #f1f5f9;
  --c-accent: #3D2A9E;
  --c-accent-soft: #ece9f7;
  --c-gold: #C5A632;
  --c-gold-soft: #faf3d4;
  --c-success: #16a34a; --c-success-soft: #dcfce7; --c-success-text: #166534;
  --c-warning: #f59e0b; --c-warning-soft: #fef3c7; --c-warning-text: #92400e;
  --c-danger: #dc2626;  --c-danger-soft: #fee2e2;  --c-danger-text: #991b1b;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.08);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 999px;
}

/* ============ DARK MODE — sobrescreve tokens ============ */
:root[data-theme="dark"] {
  --bg:             #0a0e1a;
  --bg-card:        #161b2a;
  --border:         #232a3d;
  --text:           #f1f5f9;
  --text2:          #cbd5e1;
  --text3:          #94a3b8;
  --purple-dim:     rgba(139,120,240,.15);
  --gold-dim:       rgba(212,184,78,.15);
  --c-bg:           #0a0e1a;
  --c-card:         #161b2a;
  --c-text:         #f1f5f9;
  --c-muted:        #94a3b8;
  --c-subtle:       #64748b;
  --c-border:       #232a3d;
  --c-border-soft:  #1a2030;
  --c-accent:       #8b78f0;
  --c-accent-soft:  rgba(139,120,240,.16);
  --c-gold:         #d4b84e;
  --c-gold-soft:    rgba(212,184,78,.12);
  --c-success-soft: rgba(34,197,94,.18);  --c-success-text: #4ade80;
  --c-warning-soft: rgba(245,158,11,.18); --c-warning-text: #fbbf24;
  --c-danger-soft:  rgba(220,38,38,.18);  --c-danger-text:  #fca5a5; --c-danger: #f87171;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.55);
}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
:root[data-theme="dark"] select, :root[data-theme="dark"] textarea {
  background: rgba(255,255,255,.04) !important; color: var(--c-text); border-color: var(--c-border);
}
:root[data-theme="dark"] input::placeholder { color: var(--c-subtle); }

.theme-toggle-btn {
  background: var(--c-accent-soft); color: var(--c-accent);
  border: 1px solid transparent;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background .15s, transform .2s;
}
.theme-toggle-btn:hover { background: var(--c-accent); color: #fff; transform: rotate(15deg); }

/* Classes utilitárias responsivas ao tema */
.tag-pill-info { display: inline-block; background: var(--c-accent-soft); color: var(--c-accent); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.tag-warn { background: var(--c-warning-soft, var(--c-gold-soft)); color: var(--c-warning-text, var(--c-gold)); padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.tag-info { background: var(--c-accent-soft); color: var(--c-accent); padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.btn-warn { background: var(--c-warning-soft, var(--c-gold-soft)); color: var(--c-warning-text, var(--c-gold)); border: 1px solid var(--c-gold); padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all .15s; }
.btn-warn:hover { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.btn-danger-soft { background: var(--c-danger-soft); color: var(--c-danger-text); border: 1px solid var(--c-danger-soft); padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all .15s; }
.btn-danger-soft:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: var(--purple); }

.page { max-width: 1260px; margin: 0 auto; padding: 30px 20px 60px; }

/* Layout com stepper lateral */
.form-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.form-layout > form { min-width: 0; }

.stepper { position: sticky; top: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.stepper-title { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; padding: 0 8px 12px; border-bottom: 2px solid var(--gold-dim); margin-bottom: 10px; }
.stepper-nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.step { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: var(--text2); font-size: 13px; font-weight: 500; position: relative; transition: all .15s; }
.step + .step::before { content: ''; position: absolute; left: 23px; top: -2px; width: 2px; height: 4px; background: var(--border); }
.step-num { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--text3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; border: 2px solid var(--border); transition: all .15s; }
.step-label { flex: 1; }
.step:hover { background: var(--gold-dim); color: var(--purple); cursor: pointer; }
.step:hover .step-num { border-color: var(--gold); }
.step.active { background: var(--purple-dim); color: var(--purple); font-weight: 700; }
.step.active .step-num { background: var(--purple); color: var(--gold); border-color: var(--purple); box-shadow: 0 0 0 4px rgba(59,45,126,.12); }
.step.done { color: var(--text2); }
.step.done .step-num { background: var(--gold); color: var(--purple); border-color: var(--gold); }
.stepper-progress { height: 4px; background: var(--border); border-radius: 99px; margin: 14px 8px 8px; overflow: hidden; }
.stepper-progress-bar { height: 100%; background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 99px; transition: width .3s ease; }
.stepper-hint { font-size: 10.5px; color: var(--text3); text-align: center; padding: 0 8px; margin-top: 4px; line-height: 1.4; }

@media (max-width: 960px) {
  .page { padding: 20px 14px 60px; }
  .form-layout { grid-template-columns: 1fr; gap: 12px; }
  .intro, .section, .error-box { width: 100%; }
  .stepper {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -14px 8px;
    padding: 8px 10px 10px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(1.4) blur(6px);
    -webkit-backdrop-filter: saturate(1.4) blur(6px);
  }
  .stepper-title, .stepper-hint { display: none; }
  .stepper-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding: 2px 2px 4px; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
  .stepper-nav::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 auto; flex-direction: column; gap: 4px; padding: 6px 10px; min-width: 72px; text-align: center; font-size: 11px; scroll-snap-align: start; }
  .step-num { width: 26px; height: 26px; font-size: 11px; }
  .step-label { font-size: 10.5px; line-height: 1.2; }
  .step + .step::before { display: none; }
  .stepper-progress { margin: 8px 2px 0; height: 3px; }
}
.header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.header-logo-img { height: 58px; width: auto; display: block; }
.header-text h1 { font-size: 22px; color: var(--purple); font-weight: 800; line-height: 1.25; }
.header-text p { font-size: 12px; color: var(--text3); margin-top: 2px; }
.header-text .header-kicker { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
@media (max-width: 520px) { .header-logo-img { height: 44px; } .header-text h1 { font-size: 18px; } }

.intro { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.intro h2 { font-size: 14px; color: var(--purple); margin-bottom: 6px; }
.intro p { font-size: 13px; color: var(--text2); }

.section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.section-title { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--gold-dim); }
.section-num { background: var(--purple); color: var(--gold); width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.section-title h3 { font-size: 14px; color: var(--purple); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.col-2 { grid-column: span 2; }
.col-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .col-2 { grid-column: span 1; } }

.field { display: flex; flex-direction: column; }
.field label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: #FFFBEA; outline: none; transition: all .15s; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-dim); background: #fff; }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 11px; color: var(--text3); margin-top: 4px; }

.checkgroup, .radiogroup { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 6px 0; }
.checkgroup label, .radiogroup label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; }
.checkgroup input, .radiogroup input { width: auto; padding: 0; }

.tipo-toggle { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 4px; }
.tipo-toggle label { flex: 1; padding: 8px 16px; cursor: pointer; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--text2); text-align: center; transition: all .15s; }
.tipo-toggle input { display: none; }
.tipo-toggle input:checked + span { background: var(--purple); color: var(--gold); display: inline-block; padding: 8px 16px; border-radius: 7px; }

.socio-card { background: #fafaff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.socio-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.socio-title { font-size: 13px; font-weight: 700; color: var(--purple); display: flex; align-items: center; gap: 8px; }
.socio-title::before { content: '🔹'; }
.btn-remove-socio { background: rgba(220,38,38,.08); color: var(--red); border: 1px solid rgba(220,38,38,.2); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; }
.btn-remove-socio:hover { background: var(--red); color: #fff; }
.btn-add-socio { background: var(--gold-dim); color: var(--purple); border: 1px dashed var(--gold); padding: 12px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; width: 100%; margin-top: 8px; transition: all .15s; }
.btn-add-socio:hover { background: var(--gold); color: var(--purple); border-style: solid; }
.btn-add-socio:disabled { opacity: .5; cursor: not-allowed; }

.upload-list { display: flex; flex-direction: column; gap: 4px; }
.file-input { padding: 8px 10px !important; background: #fff !important; border: 1px dashed var(--border) !important; cursor: pointer; }

.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.btn { padding: 12px 24px; border-radius: 10px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-primary { background: var(--gold); color: var(--purple); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197,166,61,.3); }
.btn-secondary { background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-muted); }
.btn-secondary:hover { background: var(--c-border-soft); color: var(--c-text); }

.error-box { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.3); color: var(--red); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }

.success-page { text-align: center; padding: 60px 20px; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--green); color: #fff; font-size: 40px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.success-page h1 { font-size: 26px; color: var(--purple); margin-bottom: 12px; }
.success-page p { font-size: 14px; color: var(--text2); max-width: 540px; margin: 0 auto 12px; }
.protocolo { display: inline-block; background: var(--gold-dim); border: 1px solid var(--gold); color: var(--purple); padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 16px; margin-top: 16px; font-family: 'Courier New', monospace; }

/* ============================================================
   Painel admin — padrão CASI (alinhado ao Controle de Ponto)
   ============================================================ */
.admin-layout { background: var(--c-bg); min-height: 100vh; color: var(--c-text); }

/* Topbar clara, estilo "card" flutuante */
.admin-bar { background: var(--c-card); padding: 14px 28px; color: var(--c-text); display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--c-border); flex-wrap: wrap; gap: 12px; }
.admin-bar .brand { font-weight: 800; color: var(--c-accent); display: flex; align-items: center; gap: 12px; font-size: 16px; letter-spacing: -.01em; }
.admin-bar .brand-logo { height: 34px; width: auto; display: block; }
.admin-bar .brand-icon { background: var(--c-accent); color: #fff; width: 30px; height: 30px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.admin-bar a { color: var(--c-muted); text-decoration: none; font-size: 13px; transition: color .15s; }
.admin-bar a:hover { color: var(--c-accent); }
.admin-bar .admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-bar .admin-nav a { padding: 8px 14px; border-radius: var(--radius-sm); margin-left: 0; font-weight: 500; transition: all .15s; }
.admin-bar .admin-nav a:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.admin-bar .admin-nav a.active { background: var(--c-accent); color: #fff; font-weight: 600; }
@media (max-width: 768px) { .admin-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; } .admin-bar .admin-nav { width: 100%; } }

.admin-content { max-width: 1200px; margin: 28px auto; padding: 0 24px; }

/* Cards arredondados com sombra suave */
.admin-card { background: var(--c-card); border: none; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.admin-card h2 { font-size: 13px; color: var(--c-text); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border-soft); }

/* ===== App-shell com SIDEBAR (navegação lateral) ===== */
.app-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--c-card); border-right: 1px solid var(--c-border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--c-border-soft); }
.sidebar-brand img { height: 36px; width: auto; }
.sidebar-brand .t { font-weight: 800; color: var(--c-accent); font-size: 15px; line-height: 1.15; letter-spacing: -.01em; }
.sidebar-brand .t small { display: block; font-size: 9.5px; color: var(--c-subtle); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 1px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-nav .nav-sec { font-size: 10px; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 14px 12px 5px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--c-muted); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all .12s; }
.sidebar-nav a .ic { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.sidebar-nav a:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.sidebar-nav a.active { background: var(--c-accent); color: #fff; font-weight: 600; box-shadow: var(--shadow-sm); }
.sidebar-user { font-size: 12px; color: var(--c-muted); padding: 12px; border-top: 1px solid var(--c-border-soft); margin-top: 8px; }
.sidebar-user strong { color: var(--c-text); display: block; font-size: 13px; }
.sidebar-user .role { font-size: 10.5px; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .04em; }

.main-area { min-width: 0; padding: 26px 32px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 22px; color: var(--c-text); font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { font-size: 13px; color: var(--c-muted); margin-top: 3px; }

/* KPIs clicáveis (filtros por status) */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 15px 17px; text-decoration: none; display: block; transition: all .15s; box-shadow: var(--shadow-sm); }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--c-accent-soft); }
.kpi.active { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.kpi .kpi-label { font-size: 11px; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; display: flex; align-items: center; }
.kpi .kpi-value { font-size: 28px; font-weight: 800; color: var(--c-text); margin-top: 5px; line-height: 1; }
.kpi .kpi-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; }

.search-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-bar input[type=text], .search-bar input[type=search] { padding: 9px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); font-size: 13px; min-width: 240px; outline: none; background: var(--c-card); transition: all .15s; }
.search-bar input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: column; padding: 12px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav a { padding: 8px 12px; }
  .sidebar-nav .nav-sec { display: none; }
  .sidebar-user { border: 0; margin: 0; padding: 6px 12px; }
  .main-area { padding: 18px 16px 40px; }
}

/* Botões de exportação no painel */
.btn-export { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-accent); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-export:hover { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); }

/* Tabelas mais arejadas */
table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--c-border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border-soft); font-size: 13.5px; color: var(--c-text); }
.admin-table tr:hover td { background: var(--c-border-soft); }
.admin-table a { color: var(--c-accent); text-decoration: none; font-weight: 600; }
.admin-table a:hover { text-decoration: underline; }

.status-pill { display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .2px; }

.detail-grid { display: grid; grid-template-columns: 210px 1fr; gap: 4px 18px; }
.detail-grid dt { font-size: 11px; font-weight: 700; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .04em; padding: 9px 0; }
.detail-grid dd { font-size: 13.5px; color: var(--c-text); padding: 9px 0; border-bottom: 1px solid var(--c-border-soft); word-break: break-word; }
@media (max-width: 600px) { .detail-grid { grid-template-columns: 1fr; gap: 0; } .detail-grid dt { padding-bottom: 0; } .detail-grid dd { padding-top: 2px; padding-bottom: 12px; margin-bottom: 4px; } }

/* Login moderno — fundo slate suave + card branco */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(1200px 600px at 50% -10%, var(--c-accent-soft), var(--c-bg) 60%); }
.login-card { background: var(--c-card); border-radius: var(--radius-xl, 20px); padding: 38px 34px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); }
.login-card h1 { color: var(--c-text); font-size: 22px; margin-bottom: 6px; text-align: center; font-weight: 800; letter-spacing: -.02em; }
.login-card p.sub { color: var(--c-muted); font-size: 12.5px; text-align: center; margin-bottom: 24px; }

/* Pílulas de filtro */
.filter-pill { padding: 7px 15px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); text-decoration: none; color: var(--c-muted); font-size: 12.5px; font-weight: 600; background: var(--c-card); transition: all .15s; outline: none; -webkit-tap-highlight-color: transparent; }
.filter-pill:hover { background: var(--c-accent-soft); color: var(--c-accent); border-color: transparent; }
.filter-pill:focus { outline: none; box-shadow: 0 0 0 3px var(--c-accent-soft); }
.filter-pill.active { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.filter-pill.active:hover { background: #32237f; color: #fff; }

/* Botões dentro do admin assumem o tom do padrão */
.admin-layout .btn-primary, .login-card .btn-primary { background: var(--c-accent); color: #fff; }
.admin-layout .btn-primary:hover, .login-card .btn-primary:hover { background: #32237f; box-shadow: var(--shadow-md); }
