:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --primary: #25D366;             /* WhatsApp green — usado em CTAs de validacao */
    --primary-dark: #128C7E;
    --advance-teal: #1B7E97;         /* cor primaria da marca Advance */
    --advance-teal-dark: #155E72;
    --advance-orange: #ED8222;       /* cor secundaria da marca Advance */
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
header.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
header.topbar a { color: var(--text); text-decoration: none; margin-right: 16px; }
header.topbar a:hover { color: var(--primary-dark); }
main { max-width: 960px; margin: 32px auto; padding: 0 24px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}
.btn {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: var(--muted); }
.btn.danger { background: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    font-family: inherit;
}
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.badge.success { background: #dcfce7; color: #166534; }
.badge.danger  { background: #fee2e2; color: #991b1b; }
.badge.muted   { background: #f3f4f6; color: #4b5563; }
.muted { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #fafafa; font-weight: 600; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
pre { background: #f3f4f6; padding: 12px; border-radius: 6px; overflow: auto; font-size: 13px; }

/* --- Branding Advance --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.brand img {
    height: 32px;
    width: auto;
    display: block;
}
.brand .brand-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2px;
    color: var(--text);
}
.brand .brand-name .accent { color: var(--advance-orange); }
header.topbar { border-top: 3px solid var(--advance-teal); }
.login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.login-brand img {
    height: 88px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
}
.login-brand .product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.login-brand .product-name .accent { color: var(--advance-orange); }
.login-brand .product-tagline {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}
