@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root { --rose:#831843; --rose-soft:#fce7f3; --cream:#fffaf7; --ink:#35252b; --muted:#786b70; --line:#eee2e5; --success:#176b45; --danger:#a1263d; font-family:'DM Sans',sans-serif; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--cream); }
[hidden] { display:none !important; }
.topbar { display:flex; align-items:center; gap:14px; padding:18px clamp(18px,5vw,64px); background:#fff; border-bottom:1px solid var(--line); }
.brand-mark { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--rose); color:white; font-weight:700; }
h1,h2,h3,p { margin-top:0; } h1 { margin-bottom:3px; font-size:18px; } .topbar p { margin:0; color:var(--muted); font-size:12px; }
.environment { margin-left:auto; padding:7px 10px; border-radius:20px; background:#f1f1f1; color:var(--muted); font-size:11px; font-weight:700; }
.environment.connected { background:#e6f5ec; color:var(--success); } .environment.disconnected { background:#fce8ec; color:var(--danger); }
.container { width:min(1100px,90%); margin:42px auto; }
.welcome { padding:34px; border-radius:22px; background:linear-gradient(135deg,#831843,#a33d65); color:white; }
.eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.12em; opacity:.8; }
.welcome h2 { max-width:620px; margin-bottom:10px; font:700 clamp(28px,4vw,42px) 'Playfair Display',serif; }
.welcome p:last-child { max-width:620px; margin-bottom:0; color:#fcecf2; line-height:1.6; }
.auth-layout { display:grid; grid-template-columns:1fr minmax(300px,440px); align-items:center; gap:clamp(24px,6vw,80px); margin:28px 0; }
.auth-intro h2,.dashboard-heading h2 { margin-bottom:10px; font:700 clamp(25px,3vw,34px) 'Playfair Display',serif; }
.auth-intro p,.dashboard-heading p { color:var(--muted); line-height:1.6; }
.auth-benefits { display:grid; gap:10px; margin-top:22px; color:var(--success); font-size:13px; }
.auth-card { padding:26px; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 12px 32px rgba(70,30,45,.06); }
.auth-tabs { display:flex; gap:8px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.tab-button { flex:1; padding:10px; border:0; border-radius:10px; background:transparent; color:var(--muted); font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.tab-button.active { background:var(--rose-soft); color:var(--rose); }
.field { display:grid; gap:7px; margin-bottom:16px; }
.field label { font-size:12px; font-weight:700; }
.field input { width:100%; padding:12px 13px; border:1px solid var(--line); border-radius:10px; background:#fffdfc; color:var(--ink); font:14px 'DM Sans',sans-serif; outline:none; }
.field input:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(131,24,67,.1); }
.primary-button,.secondary-button { border:0; border-radius:10px; padding:12px 16px; font:700 13px 'DM Sans',sans-serif; cursor:pointer; }
.primary-button { width:100%; margin-top:4px; background:var(--rose); color:#fff; }
.primary-button:disabled,.secondary-button:disabled,.text-button:disabled { opacity:.55; cursor:wait; }
.text-button { display:block; margin:14px auto 0; border:0; background:none; color:var(--rose); font:600 12px 'DM Sans',sans-serif; cursor:pointer; }
.form-message { min-height:18px; margin:14px 0 0; font-size:12px; line-height:1.5; }
.form-message.success { color:var(--success); } .form-message.error { color:var(--danger); }
.dashboard { margin-top:30px; }
.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.dashboard-heading h2 { margin-bottom:4px; } .dashboard-heading p { margin-bottom:0; font-size:13px; }
.secondary-button { background:#fff; border:1px solid var(--line); color:var(--rose); }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:22px; }
.card { padding:22px; background:white; border:1px solid var(--line); border-radius:18px; }
.card span { color:var(--rose); font-size:12px; font-weight:700; } .card h3 { margin:14px 0 6px; font-size:16px; }
.card p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.notice { margin-top:22px; padding:16px 18px; border:1px solid #f0d9e2; border-radius:14px; background:#fff; font-size:13px; }
footer { padding:20px; text-align:center; color:var(--muted); font-size:11px; }
@media (max-width:720px) { .auth-layout { grid-template-columns:1fr; } .auth-intro { max-width:560px; } .dashboard-heading { align-items:flex-start; flex-direction:column; } .welcome { padding:26px; } }

/* Módulos de gestão */
.module-nav { display:flex; gap:8px; padding:6px; margin:26px 0 20px; border:1px solid var(--line); border-radius:14px; background:#fff; width:max-content; max-width:100%; }
.module-tab { padding:10px 16px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.module-tab.active { background:var(--rose-soft); color:var(--rose); }
.module-panel { margin-bottom:36px; }
.section-heading { margin:22px 0; }
.section-heading h2,.future-panel h2 { margin:0 0 6px; font:700 28px 'Playfair Display',serif; }
.section-heading p:last-child { color:var(--muted); font-size:13px; }
.management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.management-card { min-width:0; padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.management-card h3 { margin-bottom:18px; font-size:17px; }
.management-card .primary-button { width:auto; min-width:130px; margin:0; }
.management-card .field { margin-bottom:13px; }
.management-card select,.management-card input:not([type=checkbox]) { width:100%; min-width:0; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#fffdfc; color:var(--ink); font:13px 'DM Sans',sans-serif; }
.management-card select:focus,.management-card input:focus { outline:2px solid rgba(131,24,67,.16); border-color:var(--rose); }
.check-field { display:flex; align-items:center; gap:8px; margin:4px 0 16px; color:var(--muted); font-size:12px; }
.form-actions { display:flex; flex-wrap:wrap; gap:8px; }
.date-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.list-heading { display:flex; justify-content:space-between; align-items:center; margin:24px 0 10px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; }
.list-heading span { color:var(--muted); font-size:12px; }
.data-list { display:grid; gap:9px; }
.data-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:11px; }
.data-main { display:grid; gap:6px; min-width:0; }
.data-main strong { overflow-wrap:anywhere; font-size:13px; }
.data-main span:not(.status) { color:var(--muted); font-size:11px; }
.status { width:max-content; padding:3px 8px; border-radius:20px; font-size:10px; font-weight:700; }
.status.active { background:#e6f5ec; color:var(--success); }
.status.inactive { background:#f2eeee; color:var(--muted); }
.row-actions { display:flex; flex-shrink:0; gap:5px; }
.small-button { padding:6px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--rose); font:600 10px 'DM Sans',sans-serif; cursor:pointer; }
.small-button.danger { color:var(--danger); }
.empty-state { padding:14px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); font-size:12px; line-height:1.5; }
.future-panel { padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
@media(max-width:800px) { .management-grid { grid-template-columns:1fr; } }
@media(max-width:520px) { .module-nav { width:100%; } .module-tab { flex:1; padding:9px 8px; font-size:11px; } .management-card { padding:16px; } .data-row { align-items:flex-start; flex-direction:column; } .row-actions { align-self:flex-end; } .date-grid { grid-template-columns:1fr; gap:0; } }
