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

body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    background: #f5f7fa;
    color: #1f2937;
}
* { box-sizing: border-box; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #111827; color: #fff; min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 24px; }
.topbar a { color: #fff; }
.brand { font-weight: 700; font-size: 20px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 18px; }
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 48px; }
.user-strip { background: #e5e7eb; padding: 10px 14px; border-radius: 7px; margin-bottom: 22px; font-size: 14px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.narrow { max-width: 650px; }
.form-card { max-width: 720px; }
.form-card label { display: block; margin: 15px 0 6px; font-weight: 600; }
input[type=text], input[type=password], select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: #fff; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.check-row input { width: auto; }
.permission-row { display: flex !important; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee; font-weight: 400 !important; }
.permission-row small { display: block; color: #6b7280; margin-top: 3px; }
.btn { display: inline-block; border: 1px solid #cbd5e1; background: #fff; color: #111827; border-radius: 6px; padding: 9px 14px; cursor: pointer; font-weight: 600; font-family: inherit;}
.btn:hover { text-decoration: none; background: #f3f4f6; }
.btn.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.btn.primary:hover { background: #1e40af; }
.btn.full { width: 100%; margin-top: 18px; }
.actions { display: flex; gap: 10px; margin-top: 22px; }
.alert { padding: 11px 13px; border-radius: 6px; margin: 12px 0; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.badge { display: inline-block; background: #e5e7eb; color: #374151; border-radius: 999px; padding: 5px 10px; font-size: 12px; }
.muted { color: #6b7280; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 9px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; }
.footer { text-align: center; padding: 24px; color: #6b7280; font-size: 13px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eef2f7; }
.login-card { width: 100%; max-width: 410px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-card h1 { margin-top: 0; }
.login-card label { display: block; margin: 15px 0 6px; font-weight: 600; }
@media (max-width: 760px) {
    .topbar { align-items: flex-start; flex-direction: column; padding: 16px 20px; }
    .topbar nav { gap: 12px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
}


/* Central CMS branding */
.brand-link { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-logo { width: 100px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 20px; }
.brand-copy small { margin-top: 4px; font-size: 11px; font-weight: 400; color: #cbd5e1; }

.login-shell { width: 100%; max-width: 410px; }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-logo { display: block; max-width: 150px; max-height: 80px; width: auto; height: auto; margin: 0 auto 14px; object-fit: contain; }
.login-tagline { margin-top: -4px; }
.login-footer { text-align: center; margin-top: 16px; color: #6b7280; font-size: 12px; }

@media (max-width: 760px) {
    .brand-copy small { white-space: normal; }
}
