/* acw_public.css: the shared base for the auth, error and legal pages
   (theme pass Batch E, 2026-11-12, THEME_AUDIT.md 2.4).

   These pages do not load style.css (it carries the whole app), so the app
   tokens they need are repeated here with the same values; a test keeps each
   one equal to style.css :root. The kit primitives (.ui-btn, .ui-input,
   .ui-field) come from res_ui.css, linked right after this file by
   templates/_public_head.html. Page background, Plus Jakarta Sans, 32px
   controls, the 10px card; errors are state text, never a tinted box. */

:root {
    --primary-color: #1E3A5F;
    --primary-dark: #162D4A;
    --primary-light: #2A4D7A;
    --error-color: #DC2626;
    --bg-page: #EBEEF3;
    --bg-card: #FFFFFF;
    --bg-input: #F5F7FA;
    --bg-hover: #F3F4F6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --border-focus: #1E3A5F;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 10px;
    --radius-control: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body.acw-public {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.pub-card :is(h1, h2, h3, p) { margin: 0; }

/* One centered card on the page background. */
.pub-center { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; }
.pub-card { position: relative; width: 100%; max-width: 420px; padding: 28px 28px 24px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-card); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.pub-card--center { text-align: center; }

.pub-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.pub-brand img { height: 40px; width: auto; display: block; }
.pub-brand .pub-tagline { font-size: 12px; color: var(--text-muted); }

.pub-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600;
    color: var(--text-primary); line-height: 1.3; }
.pub-sub { margin-top: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.pub-head { margin-bottom: 20px; text-align: center; }

.pub-form { display: flex; flex-direction: column; gap: 12px; }
.pub-form .ui-input { width: 100%; }
.pub-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.pub-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.pub-actions--row { flex-direction: row; }
.pub-actions--row > .ui-btn { flex: 1; }
.ui-btn.pub-block { width: 100%; }

.pub-link { color: var(--primary-color); font-weight: 600; text-decoration: none; cursor: pointer; }
.pub-link:hover { text-decoration: underline; }
.pub-center-line { text-align: center; margin-top: 12px; font-size: 12px; }

/* State text: the error says itself in the error ink; a confirmation is
   plain text. No tinted boxes. */
.pub-msg { font-size: 13px; line-height: 1.5; margin-top: 12px; color: var(--text-primary); }
.pub-msg--error { color: var(--error-color); }
.pub-msg[hidden] { display: none; }

/* A quiet key/value box (OAuth consent). */
.pub-detail { padding: 10px 12px; margin-bottom: 16px; background: var(--bg-input);
    border: 1px solid var(--border-color); border-radius: var(--radius-control); }
.pub-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.pub-detail-row .pub-k { color: var(--text-muted); }
.pub-detail-row .pub-v { color: var(--text-primary); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.pub-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 16px 0 6px; }

.pub-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border-color);
    text-align: center; font-size: 12px; color: var(--text-muted); }
.pub-foot a { color: inherit; }

.pub-spinner { width: 18px; height: 18px; border: 2px solid var(--border-color);
    border-top-color: var(--primary-color); border-radius: 50%; animation: pub-spin .7s linear infinite; }
@keyframes pub-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .pub-card { padding: 22px 18px 18px; }
}
