/* Fuse Building Brain — minimal Phase 1 CSS.
   Production styling lives in Phase 3 with the full UI. */

:root {
    --fuse-blue: #1F4E79;
    --fuse-light: #D5E8F0;
    --grey-900: #1A1A1A;
    --grey-700: #595959;
    --grey-300: #BFBFBF;
    --grey-100: #F5F5F5;
    --green: #2D7A48;
    --red: #B33A3A;
    --amber: #B47A0F;
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--grey-900);
    background: #FAFAFA;
    margin: 0;
    line-height: 1.5;
}

.site-header {
    background: var(--fuse-blue);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.user-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.user-name { font-weight: 600; }
.user-party { opacity: 0.85; }

.link-button {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.site-main {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.site-footer {
    text-align: center;
    color: var(--grey-700);
    padding: 2rem;
    font-size: 0.85rem;
}

/* Auth */
.auth-box {
    max-width: 420px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-box h1 { margin-top: 0; color: var(--fuse-blue); }

.auth-box label {
    display: block;
    margin: 1rem 0;
    font-weight: 500;
}

.auth-box input[type="email"],
.auth-box input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.4rem;
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    font-size: 1rem;
}

.auth-box input:focus {
    outline: 2px solid var(--fuse-blue);
    outline-offset: 1px;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--fuse-blue);
    color: white;
    border-color: var(--fuse-blue);
}

.btn-primary:hover { background: #163d61; }

.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-links a { color: var(--fuse-blue); }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error   { background: #FBE9E9; color: var(--red); border: 1px solid #F0C6C6; }
.alert-success { background: #E5F4EB; color: var(--green); border: 1px solid #C6E0CF; }
.alert-info    { background: var(--fuse-light); color: var(--fuse-blue); border: 1px solid #A8CDDA; }

/* Smoketest */
.check-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.check-table th, .check-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--grey-300);
    text-align: left;
    vertical-align: top;
}

.check-table th { background: var(--fuse-light); color: var(--fuse-blue); }

.status-ok   { color: var(--green); font-weight: 700; }
.status-fail { color: var(--red); font-weight: 700; }

.note { color: var(--grey-700); font-size: 0.85rem; margin-top: 1.5rem; }

/* Errors */
.error-box {
    max-width: 480px;
    margin: 4rem auto;
    text-align: center;
}

.error-box h1 { color: var(--fuse-blue); }
.error-box code { background: var(--grey-100); padding: 0.2rem 0.4rem; border-radius: 3px; }

/* Dashboard */
.dashboard h1 { color: var(--fuse-blue); }
.dashboard ul { background: white; padding: 1rem 1.5rem; border-radius: 6px; list-style: square inside; }
