* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f8fafc; color: #0f172a; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.08); width: 100%; max-width: 400px; }
.login-card h1 { font-size: 1.25rem; margin: 0 0 1.5rem; }
.login-card label { display: block; margin-bottom: 1rem; font-size: .875rem; font-weight: 500; }
.login-card input { width: 100%; margin-top: .25rem; padding: .5rem .75rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.login-card button { width: 100%; padding: .625rem; background: #004a99; color: white; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.error { color: #dc2626; font-size: .875rem; }
.cms-header { background: #004a99; color: white; padding: .75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.cms-header a { color: white; text-decoration: none; margin-left: 1rem; }
.cms-logo { font-weight: 700; margin-left: 0 !important; }
.cms-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.muted { color: #64748b; font-size: .875rem; }
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.btn-primary, .btn-secondary { padding: .5rem 1rem; border-radius: 6px; border: 0; cursor: pointer; font-weight: 600; }
.btn-primary { background: #004a99; color: white; }
.btn-secondary { background: #e2e8f0; }
.editor-actions { margin-top: 1rem; display: flex; gap: .75rem; align-items: center; }
.field-group { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.field-group label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .875rem; }
.field-group input[type=text], .field-group input[type=url], .field-group textarea { width: 100%; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.list-item { border: 1px dashed #cbd5e1; padding: .75rem; margin-bottom: .5rem; border-radius: 6px; background: #fafafa; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.link-btn { background: none; border: 0; color: white; cursor: pointer; text-decoration: underline; margin-left: 1rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #e2e8f0; }
.media-meta { font-size: .75rem; margin-top: .5rem; word-break: break-all; }
.user-form { background: white; padding: 1rem; border-radius: 8px; max-width: 480px; }
.user-form label { display: block; margin-bottom: .75rem; font-size: .875rem; }
.user-form input, .user-form select { width: 100%; padding: .5rem; margin-top: .25rem; }
