/* -------- Top bar (shared header fragment) ------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-family: sans-serif;
    font-size: 14px;
}

.topbar-brand {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
}

.topbar-brand:hover {
    color: #1565c0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.topbar-link:hover {
    text-decoration: underline;
}

.topbar-user {
    color: #555;
}

.topbar-logout {
    margin: 0;
}

.topbar-logout button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-family: inherit;
}

.topbar-logout button:hover {
    background: #eee;
    border-color: #999;
}

/* -------- Login form ----------------------------------------------------- */

.auth-body {
    margin: 0;
    background: #fafafa;
    color: #333;
    font-family: sans-serif;
    min-height: 100vh;
}

.auth-card {
    max-width: 360px;
    margin: 80px auto 0;
    background: #fff;
    padding: 28px 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
    margin: 0 0 16px;
    font-size: 22px;
    text-align: center;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-card label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-top: 12px;
}

.auth-card input[type="text"],
.auth-card input[type="password"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.auth-card input:focus {
    outline: none;
    border-color: #1565c0;
}

.auth-card button[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-card button[type="submit"]:hover {
    background: #0e4a8e;
}

.auth-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 0 16px;
}
